/* ARCHIE HOME SERVICES — portfolio gallery
   Palette: plaster walls, ink, brass plaques. */

:root {
  --plaster: #f4f2ec;
  --plaster-deep: #eae6dc;
  --ink: #191712;
  --ink-soft: #57503f;
  --line: #d8d2c2;
  --brass: #8a6d3f;
  --brass-deep: #6f5731;
  --white: #fdfcf9;
  --shadow: 0 1px 2px rgba(25, 23, 18, .08), 0 12px 32px -14px rgba(25, 23, 18, .28);
  --shadow-lift: 0 2px 4px rgba(25, 23, 18, .1), 0 22px 44px -16px rgba(25, 23, 18, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- header ---------- */
.site-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 20;
}
.page-home .site-head {
  position: fixed; top: 0; left: 0; right: 0;
  border-bottom: 1px solid rgba(244,242,236,.18);
  background: linear-gradient(rgba(10,9,7,.35), transparent);
  backdrop-filter: blur(2px);
}
.page-home .site-head .wordmark,
.page-home .site-head .head-nav a { color: #f4f2ec; }
.wordmark {
  font-family: "Marcellus", serif;
  font-size: 20px; letter-spacing: .22em;
}
.wordmark span { color: var(--ink-soft); font-size: 13px; letter-spacing: .28em; }
.head-nav { display: flex; gap: 26px; font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.head-nav a:hover { color: var(--brass-deep); }
.page-home .head-nav a:hover { color: #e3c98e; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) 40px; }

.hero { padding: clamp(48px, 9vh, 96px) 0 clamp(36px, 6vh, 64px); text-align: center; }
.hero-home {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px clamp(20px, 5vw, 64px) 40px;
  background: radial-gradient(120% 90% at 50% 10%, #221f18 0%, #17150f 60%, #0f0e0a 100%);
  color: #f4f2ec;
}
.hero-home .eyebrow { color: #cbb083; }
.hero-home h1 { color: #f8f5ec; }
.hero-home .hero-sub { color: #cfc7b4; }
.scroll-cue {
  margin-top: 54px; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: #b8ac8c;
  padding-bottom: 22px;
}

/* ---------- hero showcase (rotating pair of featured project covers) ---------- */
.showcase { width: 100%; max-width: 1100px; margin: 44px auto 0; }
.showcase-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 30px); }
.showcase-slot { display: block; text-align: center; }
.showcase-slot .frame {
  overflow: hidden; background: var(--white); padding: 8px; position: relative;
}
.showcase-slot .frame img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  transition: opacity .6s ease, transform 6s ease;
}
.showcase-slot .frame img.swap { opacity: 0; }
.showcase-slot:hover .frame img { transform: scale(1.03); }
.showcase-slot .plaque { margin-top: 12px; }
.showcase-slot .plaque-sub { opacity: .8; }
.showcase-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px;
}
.showcase-controls button {
  background: none; border: 1px solid rgba(244,242,236,.4); color: #f4f2ec;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px;
  font-family: Georgia, serif; line-height: 1; transition: background .2s, border-color .2s;
}
.showcase-controls button:hover { background: rgba(244,242,236,.14); border-color: rgba(244,242,236,.7); }
.sc-dots { display: flex; gap: 2px; }
.sc-dot {
  width: 24px; height: 24px; padding: 0; border: 0; cursor: pointer; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.sc-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(244,242,236,.28); transition: background .2s, transform .2s;
}
.sc-dot.active::before { background: #d8bd85; transform: scale(1.3); }
@media (max-width: 620px) {
  .showcase-pair { grid-template-columns: 1fr; }
  .showcase-slot:nth-child(2) { display: none; }  /* one photo on small screens */
}
@media (prefers-reduced-motion: reduce) {
  .showcase-slot .frame img { transition: opacity .2s ease; }
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0;
  background: linear-gradient(#b8ac8c, transparent);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop { 0% { opacity: 0; transform: translateY(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; opacity: .5; } }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass-deep);
}
.hero h1 {
  margin: 0;
  font-family: "Marcellus", serif; font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: .06em; line-height: 1.08;
}
.hero-sub { margin: 18px auto 0; max-width: 52ch; color: var(--ink-soft); font-size: 15.5px; }
.hero-cat { padding-top: clamp(20px, 4vh, 44px); }

.crumbs { padding-top: 28px; font-size: 13px; letter-spacing: .1em; color: var(--ink-soft); }
.crumbs a:hover { color: var(--brass-deep); }

.empty { text-align: center; color: var(--ink-soft); padding: 60px 0 120px; }

/* ---------- Hall sections (homepage, full-screen, parallax) ---------- */
.halls { display: block; }
.hall-section {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hall-bg {
  position: absolute; inset: -8% -8%;
  background-size: cover; background-position: center;
  background-color: #2a2620;
  will-change: transform;
  transform: translateY(0);
}
.hall-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,11,8,.62) 0%, rgba(12,11,8,.42) 45%, rgba(12,11,8,.72) 100%);
}
.hall-content { position: relative; z-index: 2; color: #f8f5ec; padding: 0 24px; }
.hall-content .eyebrow { color: #d8bd85; }
.hall-content h2 {
  margin: 0; font-family: "Marcellus", serif; font-weight: 400;
  font-size: clamp(30px, 5vw, 52px); letter-spacing: .05em; line-height: 1.12;
}
.hall-count { margin: 16px 0 0; font-size: 13.5px; letter-spacing: .06em; color: #d8d2c0; }
.hall-enter {
  display: inline-block; margin-top: 34px;
  padding: 12px 30px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid rgba(244,242,236,.55); color: #f4f2ec;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hall-enter:hover { background: #f4f2ec; color: #191712; border-color: #f4f2ec; }

/* ---------- Hall hero band (on the hall/project listing page) ---------- */
.hero-hall {
  position: relative; overflow: hidden; text-align: left;
  min-height: 46vh; min-height: 46svh; display: flex; align-items: flex-end;
  margin: 0 calc(-1 * clamp(20px, 5vw, 64px)) clamp(32px, 5vh, 56px);
  padding: 0 clamp(20px, 5vw, 64px) 44px;
}
.hero-hall .hall-bg { inset: 0; }
.hero-hall .hall-veil { background: linear-gradient(0deg, rgba(12,11,8,.78) 0%, rgba(12,11,8,.15) 60%); }
.hall-content-sm { position: relative; z-index: 2; color: #f8f5ec; }
.hall-content-sm .eyebrow { color: #d8bd85; }
.hall-content-sm h1 {
  margin: 0; font-family: "Marcellus", serif; font-weight: 400;
  font-size: clamp(30px, 5vw, 48px); letter-spacing: .05em;
}
.hall-content-sm .hero-sub { color: #e2ddc9; margin-top: 10px; }

/* ---------- scroll-reveal (used on category/hall cards and photo grids) ---------- */
.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hall-bg { transform: none !important; }
}

/* ---------- frames & plaques (signature) ---------- */
.frame {
  margin: 0;
  background: var(--white);
  padding: 10px;                    /* the mat around every photo */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.plaque {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px 10px;
  background: linear-gradient(160deg, #cbb083, #a98c5a 55%, #93753f);
  color: #2c2413;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.22), 0 1px 3px rgba(25,23,18,.25);
  border-radius: 1px;
  text-align: center;
}
.plaque-title {
  font-family: "Marcellus", serif;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.plaque-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .78; }

/* ---------- category cards ---------- */
.grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.grid-main { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid-more { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: clamp(20px, 3vw, 32px); }

.card { display: block; text-align: center; }
.card .frame { overflow: hidden; }
.card img { width: 100%; object-fit: cover; transition: transform .6s ease; }
.card-big img { aspect-ratio: 4 / 3; }
.card-small img { aspect-ratio: 3 / 2; }
.card:hover .frame { box-shadow: var(--shadow-lift); }
.card:hover img { transform: scale(1.025); }
.card-small .plaque { padding: 7px 14px 8px; }
.card-small .plaque-title { font-size: 12.5px; }
.card-small .plaque-sub { font-size: 10px; }

.more { margin-top: clamp(56px, 9vh, 96px); }
.rule-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px;
  margin: 0 0 clamp(28px, 4vh, 44px);
  font-family: "Marcellus", serif; font-weight: 400;
  font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.rule-head::before, .rule-head::after { content: ""; height: 1px; background: var(--line); }

/* ---------- category page: masonry ---------- */
.masonry { columns: 3 320px; column-gap: 28px; padding-bottom: 30px; }
.shot { break-inside: avoid; margin: 0 0 28px; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; transition: opacity .3s ease; }
.shot:hover img { opacity: .93; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 18, 13, .94);
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: min(92vw, 1800px); max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: #222;
}
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  background: none; color: #efe9da;
  font-size: 40px; line-height: 1; padding: 18px;
  opacity: .75; transition: opacity .2s;
  font-family: Georgia, serif;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 16px; font-size: 34px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #cfc7b4; font-size: 12px; letter-spacing: .3em;
}

/* ---------- footer ---------- */
.site-foot {
  margin-top: clamp(60px, 10vh, 110px);
  border-top: 1px solid var(--line);
  background: var(--plaster-deep);
  padding: clamp(44px, 7vh, 72px) clamp(20px, 5vw, 64px) 56px;
  text-align: center;
}
.foot-plaque { margin-top: 0; }
.contacts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 44px; margin-top: 30px;
  font-size: 15px;
}
.contacts a { display: inline-flex; align-items: baseline; gap: 10px; }
.contacts a:hover { color: var(--brass-deep); }
.c-label {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}
.foot-site {
  display: inline-block; margin-top: 34px;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.foot-site:hover { color: var(--brass-deep); border-color: var(--brass); }

@media (max-width: 560px) {
  .head-nav a:first-child { display: none; }
  .masonry { columns: 2 150px; column-gap: 14px; }
  .shot { margin-bottom: 14px; }
  .frame { padding: 6px; }
  .hero-home { padding-top: 84px; }
  .hall-content h2 { font-size: clamp(26px, 8vw, 38px); }
  .hall-enter { padding: 11px 24px; }
  /* bigger, thumb-friendly lightbox controls */
  .lb-prev, .lb-next { font-size: 46px; padding: 22px 14px; }
  .lb-close { font-size: 40px; padding: 14px; }
  .contacts { gap: 12px 26px; font-size: 14px; }
}

/* very narrow phones: shorten the wordmark so it never collides with the nav */
@media (max-width: 400px) {
  .wordmark span { display: none; }
  .wordmark { font-size: 18px; letter-spacing: .18em; }
}

/* tablets: keep the 2-up showcase but ease the gutters */
@media (min-width: 621px) and (max-width: 1024px) {
  .showcase { max-width: 92vw; }
  .grid-more { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
}

/* safety net: parallax insets should never produce a horizontal scrollbar */
body { overflow-x: hidden; }
