/* ============================================================
   HAMERUHA INTERIORS — Design tokens
   Deep forest green #063130 / Warm stone #B6AB91 / Soft ivory #E8E1CE
   Supporting: near-black #0B1210 / soft white #FAF8F3
   Type: Rubik Light (display) / Regular (body) / Medium (labels)
   Signature: the tripod-mark line motif recurs as dividers,
   the scroll-progress line, and the loader sketch.
   ============================================================ */
:root{
  --green:#063130;
  --green-light:#0d4442;
  --stone:#B6AB91;
  --stone-light:#c9c0a8;
  --ivory:#E8E1CE;
  --ink:#0b1210;
  --white:#faf8f3;
  --line: rgba(11,18,16,0.12);
  --line-on-dark: rgba(232,225,206,0.18);
  --ease: cubic-bezier(.16,.8,.24,1);
  --dur-s: .4s;
  --dur-m: .7s;
  --dur-l: 1.1s;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1440px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:'Rubik',sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
h1,h2,h3,h4,p{margin:0;}

.font-light{font-weight:300;}
.font-med{font-weight:500;}

.eyebrow{
  font-family:'Rubik',sans-serif;
  font-weight:500;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--stone);
}
.eyebrow.on-light{color:#665d44;}

.h-display{
  font-weight:300;
  line-height:1.04;
  letter-spacing:-.01em;
}
.h-section{
  font-weight:300;
  font-size:clamp(2.1rem,4vw,3.4rem);
  line-height:1.08;
  letter-spacing:-.01em;
}
.body-lg{
  font-size:clamp(1.05rem,1.4vw,1.25rem);
  line-height:1.65;
  font-weight:400;
  color:#2b332f;
}
.body-md{
  font-size:1rem;
  line-height:1.75;
  color:#3a4440;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

/* ---------- Signature divider: tripod line motif ---------- */
.leg-divider{
  width:100%;
  display:flex;
  justify-content:center;
  padding:2px 0;
}
.leg-divider svg{ width:64px; height:20px; opacity:.55; }
.leg-divider.on-dark svg path{ stroke: var(--stone); }
.leg-divider:not(.on-dark) svg path{ stroke: var(--green); }

/* ---------- Scroll progress ---------- */
#scroll-progress{
  position:fixed; top:0; left:0; height:2px; background:var(--stone);
  width:0%; z-index:1200; transition:width .1s linear;
}

/* ---------- Nav ---------- */
#nav{
  position:fixed; top:0; left:0; right:0; z-index:900;
  padding:22px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  transition: background var(--dur-m) var(--ease), padding var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
  background:transparent;
}
#nav.solid{
  background:rgba(6,49,48,.94);
  backdrop-filter:blur(10px);
  padding:14px var(--gutter);
  box-shadow:0 1px 0 rgba(232,225,206,.08);
}
.nav-logo{ display:flex; align-items:center; gap:12px; }
.nav-logo img{ height:34px; width:auto; transition:height var(--dur-m) var(--ease); }
#nav.solid .nav-logo img{ height:28px; }
.nav-logo-text{
  color:var(--ivory);
  font-size:.86rem; letter-spacing:.14em; font-weight:500; text-transform:uppercase;
  line-height:1.2;
}
.nav-logo-text span{ display:block; font-size:.66rem; color:var(--stone); font-weight:400; letter-spacing:.12em; margin-top:1px;}
.nav-links{ display:flex; gap:40px; list-style:none; margin:0; padding:0; }
.nav-links a{
  color:var(--ivory); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; font-weight:500;
  position:relative; padding-bottom:4px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--stone);
  transition:width var(--dur-s) var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ width:100%; }
.nav-links a[aria-current="page"]{ color:var(--stone); }
.nav-cta{
  border:1px solid var(--stone); color:var(--ivory); padding:10px 22px; font-size:.76rem;
  letter-spacing:.12em; text-transform:uppercase; font-weight:500; border-radius:2px;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}
.nav-cta:hover{ background:var(--stone); color:var(--green); }
.nav-burger{ display:none; }

@media (max-width: 920px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .js .nav-burger{
    display:flex; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
  }
  .nav-burger span{ width:24px; height:1.5px; background:var(--ivory); display:block; transition:transform .3s var(--ease), opacity .3s var(--ease); }
  .nav-burger.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2){ opacity:0; }
  .nav-burger.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Mobile menu ---------- */
#mobile-menu{
  position:fixed; inset:76px 0 0; background:var(--green); z-index:950;
  display:flex; flex-direction:column; align-items:flex-start; gap:22px;
  padding:24px var(--gutter) max(32px,env(safe-area-inset-bottom));
  overflow-y:auto; overscroll-behavior:contain;
}
#mobile-menu a{
  color:var(--ivory); font-size:2rem; font-weight:300; letter-spacing:0;
}
#mobile-menu a span{ color:var(--stone); font-size:.9rem; margin-right:14px; font-weight:400;}
#mobile-menu .mm-cta{
  margin-top:20px; border:1px solid var(--stone); color:var(--ivory); padding:12px 26px;
  font-size:.76rem; letter-spacing:.12em; text-transform:uppercase;
}

/* ---------- Page transition ---------- */
.page{
  display:none;
  animation: pageIn .5s var(--ease);
}
.page.active{ display:block; }
@keyframes pageIn{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:1; transform:none; transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.reveal-pending{ opacity:0; transform:translateY(28px); }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-line{ overflow:hidden; }
.reveal-line span{ display:inline-block; transform:translateY(110%); transition:transform .8s var(--ease); }
.reveal-line.in span{ transform:translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; height:100svh; min-height:560px; width:100%;
  overflow:hidden; background:var(--green);
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:70% 20%;
  transform:scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom{ from{transform:scale(1.08);} to{transform:scale(1);} }
.hero::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,49,48,.55) 0%, rgba(6,49,48,.15) 32%, rgba(6,49,48,.35) 68%, rgba(6,49,48,.85) 100%);
}
.hero-content{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:0 var(--gutter) 88px;
  max-width:var(--maxw); margin:0 auto;
}
/* ---------- Signature glyph watermark ----------
   The Ethiopian letter that gave the mark its final form, used once, large,
   as a quiet typographic risk rather than a repeated decoration. */
.glyph-mark{
  position:absolute; pointer-events:none; user-select:none; z-index:0;
  font-family:'Noto Sans Ethiopic','Nyala','Rubik',sans-serif;
  line-height:.8; font-weight:300;
  color:var(--ivory); opacity:.09;
  font-size:clamp(200px,22vw,360px);
}
.glyph-mark.dark{ color:var(--green); opacity:.06; }
.hero-eyebrow{ color:var(--stone); margin-bottom:18px; }
.hero-title{
  color:var(--white);
  font-size:clamp(2.6rem, 7vw, 5.6rem);
  max-width:14ch;
}
.hero-sub{
  color:var(--ivory); max-width:44ch; margin-top:22px; font-size:clamp(1rem,1.4vw,1.15rem); line-height:1.65; opacity:.92;
}
.hero-actions{ display:flex; gap:18px; margin-top:38px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; font-weight:500;
  border-radius:2px; transition:all var(--dur-s) var(--ease);
  border:1px solid transparent;
}
.btn-primary{ background:var(--stone); color:var(--green); }
.btn-primary:hover{ background:var(--ivory); transform:translateY(-2px); }
.btn-outline{ border-color:rgba(232,225,206,.5); color:var(--ivory); }
.btn-outline:hover{ border-color:var(--ivory); background:rgba(232,225,206,.08); transform:translateY(-2px); }
.btn-dark{ background:var(--green); color:var(--ivory); }
.btn-dark:hover{ background:var(--green-light); transform:translateY(-2px); }

.scroll-indicator{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--ivory); opacity:.75; font-size:.66rem; letter-spacing:.24em; text-transform:uppercase;
}
.scroll-indicator .line{ width:1px; height:34px; background:linear-gradient(var(--stone), transparent); animation:scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine{ 0%{opacity:0; transform:scaleY(0); transform-origin:top;} 40%{opacity:1; transform:scaleY(1); transform-origin:top;} 100%{opacity:0; transform:scaleY(1); transform-origin:bottom;} }

/* Let phone heroes grow with their text, including larger accessibility fonts.
   A fixed viewport height can push the introduction underneath the header. */
@media (max-width:920px){
  #nav, #nav.solid{ padding:14px var(--gutter); }
  .hero{ display:flex; flex-direction:column; height:auto; min-height:100svh; }
  .hero-content{
    flex:1 0 auto; width:100%; height:auto; min-height:0;
    padding:112px var(--gutter) 32px;
  }
  .hero-eyebrow{ line-height:1.5; }
  .hero-actions{ margin-top:28px; gap:12px; }
  .hero-media img{ animation:none; transform:none; }
  .scroll-indicator{
    position:relative; left:auto; bottom:auto; transform:none; flex:none;
    padding:0 var(--gutter) 20px; text-align:center;
  }
  .scroll-indicator .line{ height:24px; }
}
@media (max-width:620px){
  .hero-title{
    font-size:clamp(2.2rem,10vw,3.25rem); max-width:16ch;
    text-wrap:balance; overflow-wrap:break-word;
  }
  .hero-actions{ display:grid; grid-template-columns:minmax(0,1fr); }
  .hero-actions .btn{ width:100%; min-height:48px; justify-content:center; text-align:center; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section{ padding:clamp(64px,10vw,140px) 0; }
.section.dark{ background:var(--green); color:var(--ivory); }
.section.stone{ background:var(--ivory); position:relative; overflow:hidden; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:40px;
  margin-bottom:clamp(40px,6vw,80px); flex-wrap:wrap;
}
.section-head p{ max-width:36ch; }
.dark .body-md, .dark .body-lg{ color:rgba(232,225,206,.82); }

/* ---------- Selected Projects (asymmetric editorial grid) ---------- */
.proj-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:clamp(14px,2vw,28px); }
.pcard{
  display:block;
  position:relative; overflow:hidden; border-radius:2px; cursor:pointer;
  background:#ddd;
}
.pcard .pc-img{ width:100%; height:100%; object-fit:cover; transition:transform 1s var(--ease); }
.pcard:hover .pc-img{ transform:scale(1.055); }
.pcard::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(6,49,48,.82) 0%, rgba(6,49,48,0) 45%); transition:background var(--dur-m) var(--ease); }
.pcard:hover::after{ background:linear-gradient(0deg, rgba(6,49,48,.88) 0%, rgba(182,171,145,.14) 42%, rgba(6,49,48,0) 72%); }
.pc-info{ position:absolute; left:0; right:0; bottom:0; padding:26px 28px; z-index:2; }
.pc-info::after{
  content:''; display:block; width:0; height:1px; background:var(--stone);
  margin-top:12px; transition:width var(--dur-m) var(--ease);
}
.pcard:hover .pc-info::after{ width:44px; }
.pc-cat{ color:var(--stone); font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; font-weight:500; }
.pc-title{ color:var(--white); font-size:clamp(1.2rem,2vw,1.7rem); font-weight:300; margin-top:6px; }
.pc-arrow{
  position:absolute; top:24px; right:24px; z-index:2; width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(232,225,206,.5); display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translate(-6px,6px); transition:all var(--dur-s) var(--ease);
}
.pcard:hover .pc-arrow{ opacity:1; transform:translate(0,0); background:rgba(232,225,206,.12); }
.pc-arrow svg{ width:14px; height:14px; }

/* Portrait artwork keeps its complete layout within the project card. */
.pcard.pcard--visual{ display:flex; flex-direction:column; background:var(--green); }
.pcard--visual > picture{ display:block; flex:1; min-height:0; }
.pcard--visual .pc-img{ object-fit:contain; }
.pcard--visual .pc-info{ position:static; padding:16px 24px; }
.pcard--visual::after{ display:none; }
.pcard--visual:hover .pc-img{ transform:none; }

.span-7{ grid-column:span 7; aspect-ratio:16/11; }
.span-5{ grid-column:span 5; aspect-ratio:16/11; }
.span-4{ grid-column:span 4; aspect-ratio:4/5; }
.span-8{ grid-column:span 8; aspect-ratio:21/10; }
.span-6{ grid-column:span 6; aspect-ratio:4/5; }
.span-12{ grid-column:span 12; aspect-ratio:21/8; }
@media (max-width:820px){
  .proj-grid > *{ grid-column:span 12 !important; aspect-ratio:4/3 !important; }
}

/* ---------- Studio philosophy strip ---------- */
.philosophy{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,6vw,90px); align-items:center;
}
.philosophy-num{ color:var(--stone); font-size:.75rem; letter-spacing:.2em; }
@media (max-width:820px){ .philosophy{ grid-template-columns:1fr; } }

/* ---------- Services overview ---------- */
.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.svc-cell{ background:var(--white); padding:clamp(28px,3vw,44px); transition:background var(--dur-s); }
.svc-cell:hover{ background:var(--ivory); }
.svc-num{ font-size:.72rem; color:#665d44; letter-spacing:.15em; }
.svc-name{ font-size:clamp(1.15rem,1.6vw,1.4rem); font-weight:400; margin:14px 0 12px; }
.svc-desc{ font-size:.92rem; line-height:1.6; color:#5a6560; }
@media (max-width:820px){ .svc-grid{ grid-template-columns:1fr; } }

/* ---------- Process (horizontal desktop / vertical mobile) ---------- */
.process-track{ display:grid; grid-template-columns:repeat(6,1fr); gap:0; position:relative; }
.process-track::before{
  content:''; position:absolute; top:13px; left:0; right:0; height:1px; background:var(--line-on-dark);
}
.p-step{ padding-top:44px; position:relative; padding-right:20px; }
.p-step::before{
  content:''; position:absolute; top:6px; left:0; width:14px; height:14px; border-radius:50%;
  background:var(--green); border:2px solid var(--stone);
}
.p-step-num{ color:var(--stone); font-size:.7rem; letter-spacing:.16em; }
.p-step-name{ font-size:1.15rem; font-weight:400; margin:10px 0 8px; color:var(--white); }
.p-step-desc{ font-size:.85rem; color:rgba(232,225,206,.7); line-height:1.55; }
@media (max-width:920px){
  .process-track{ grid-template-columns:1fr; gap:34px; }
  .process-track::before{ top:0; bottom:0; left:6px; right:auto; width:1px; height:auto; }
  .p-step{ padding-top:0; padding-left:34px; padding-right:0; }
  .p-step::before{ top:4px; left:0; }
}

/* ---------- Brand story ---------- */
.brand-story{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(30px,6vw,90px); align-items:center; }
.brand-story .mark-wrap{ display:flex; justify-content:center; }
.brand-story .mark-wrap img{ width:min(220px,60%); opacity:.92; }
@media (max-width:820px){ .brand-story{ grid-template-columns:1fr; } .brand-story .mark-wrap{ order:-1; } }

/* ---------- Contact CTA band ---------- */
.cta-band{
  background:var(--green); color:var(--ivory); text-align:center;
  padding:clamp(70px,10vw,130px) var(--gutter);
}
.cta-band h2{ max-width:16ch; margin:0 auto; }
.cta-band .btn{ margin-top:36px; }

/* ---------- Footer ---------- */
footer{ background:var(--ink); color:rgba(232,225,206,.72); padding:56px var(--gutter) 28px; }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:40px; border-bottom:1px solid rgba(232,225,206,.12); }
.footer-logo{ display:flex; align-items:center; gap:12px; }
.footer-logo img{ height:30px; width:auto; }
.footer-logo-text{ color:var(--ivory); font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; }
.footer-links{ display:flex; gap:50px; flex-wrap:wrap; }
.footer-col h4{ color:var(--stone); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; font-weight:500; margin-bottom:14px; }
.footer-col a, .footer-col p{ display:block; font-size:.88rem; color:rgba(232,225,206,.72); margin-bottom:8px; }
.footer-col a:hover{ color:var(--stone); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:24px; font-size:.76rem; color:rgba(232,225,206,.72); flex-wrap:wrap; gap:10px; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-hero{ padding:clamp(140px,16vw,200px) 0 40px; background:var(--ivory); }
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-top:34px; }
.filter-chip{
  padding:10px 20px; border:1px solid rgba(11,18,16,.18); border-radius:20px;
  font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; font-weight:500;
  transition:all var(--dur-s) var(--ease); background:transparent; color:var(--ink);
}
.filter-chip:hover{ border-color:var(--green); }
.filter-chip.active{ background:var(--green); border-color:var(--green); color:var(--ivory); }
.projects-gallery{ padding:50px 0 120px; background:var(--ivory); }
.pg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px); }
.pg-item{ display:none; }
.pg-item.show{ display:block; animation:pageIn .5s var(--ease); }
@media (max-width:980px){ .pg-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .pg-grid{ grid-template-columns:1fr; } }

.creative-work{ padding:80px 0 120px; background:var(--white); }
.cw-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.cw-item{ aspect-ratio:3/4; overflow:hidden; border-radius:2px; }
.cw-item img{ width:100%; height:100%; object-fit:contain; transition:transform .6s var(--ease); }
.cw-item:hover img{ transform:scale(1.06); }
@media (max-width:820px){ .cw-grid{ grid-template-columns:repeat(2,1fr); } }

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.pd-hero{ position:relative; height:82vh; min-height:460px; overflow:hidden; background:var(--green); }
.pd-hero img{ width:100%; height:100%; object-fit:cover; }
.pd-hero::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(6,49,48,.9), rgba(6,49,48,.05) 55%); }
.pd-hero-content{ position:absolute; left:0; right:0; bottom:0; padding:56px var(--gutter); z-index:2; max-width:var(--maxw); margin:0 auto; }
.pd-hero-content .eyebrow{ margin-bottom:14px; }
.pd-hero-content h1{ color:var(--white); font-size:clamp(2.2rem,5vw,4rem); max-width:20ch; }
.pd-hero.pd-hero--visual{
  display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(24px,5vw,72px);
  height:auto; min-height:620px; padding:130px var(--gutter) 64px;
}
.pd-hero--visual > picture{ display:block; grid-column:2; grid-row:1; }
.pd-hero--visual img{ width:100%; height:auto; max-height:540px; object-fit:contain; }
.pd-hero--visual::after{ display:none; }
.pd-hero--visual .pd-hero-content{ position:static; grid-column:1; grid-row:1; padding:0; width:100%; }
@media(max-width:820px){
  .pd-hero.pd-hero--visual{ grid-template-columns:1fr; min-height:0; padding-top:120px; }
  .pd-hero--visual > picture{ grid-column:1; grid-row:2; }
  .pd-hero--visual img{ max-height:420px; }
}
.pd-body{ padding:clamp(60px,8vw,100px) 0; }
.pd-desc-row{ display:grid; grid-template-columns:1fr 1.6fr; gap:clamp(30px,6vw,80px); margin-bottom:60px; }
@media (max-width:820px){ .pd-desc-row{ grid-template-columns:1fr; } }
.pd-meta-list{ display:flex; flex-direction:column; gap:18px; }
.pd-meta-item span{ display:block; }
.pd-meta-item .k{ font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:#665d44; margin-bottom:6px; }
.pd-meta-item .v{ font-size:.98rem; color:var(--ink); }

.pd-gallery{ display:grid; grid-template-columns:repeat(12,1fr); gap:clamp(14px,2vw,24px); margin-bottom:20px; }
.pd-gallery img{ width:100%; height:100%; object-fit:cover; border-radius:2px; }
.pd-drawings{ margin-top:80px; }
.pd-drawings .pd-gallery img{ object-fit:contain; background:#fff; border:1px solid var(--line); padding:10px; }

.pd-nav{
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  padding:44px var(--gutter); border-top:1px solid var(--line); background:var(--ivory);
}
.pd-nav-link{ display:flex; align-items:center; gap:14px; }
.pd-nav-link .lbl{ font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:#665d44; display:block; margin-bottom:4px; }
.pd-nav-link .ttl{ font-size:1.1rem; font-weight:400; }
.pd-nav-link.next{ text-align:right; flex-direction:row-reverse; }

.pd-cta{ text-align:center; padding:70px var(--gutter); }
.pd-cta .btn{ margin-top:24px; }

/* ============================================================
   STUDIO PAGE
   ============================================================ */
.studio-hero{ padding:clamp(150px,18vw,220px) 0 clamp(60px,8vw,100px); background:var(--ivory); }
.studio-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:clamp(30px,6vw,90px); align-items:start; }
.studio-portrait{ position:sticky; top:110px; }
.studio-portrait img{ width:100%; border-radius:2px; filter:saturate(.92) contrast(1.02); }
.studio-portrait-cap{ margin-top:18px; font-size:.8rem; color:#665d44; letter-spacing:.05em; }
@media (max-width:920px){ .studio-grid{ grid-template-columns:1fr; } .studio-portrait{ position:static; max-width:340px; } }

.cap-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px 40px; margin-top:14px; }
.cap-list li{ list-style:none; padding:14px 0; border-bottom:1px solid var(--line); font-size:.98rem; display:flex; align-items:center; gap:12px; }
.cap-list li::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--stone); flex:none; }
@media (max-width:620px){ .cap-list{ grid-template-columns:1fr; } }

.software-strip{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.soft-pill{ padding:8px 16px; border:1px solid var(--line); border-radius:20px; font-size:.8rem; color:#5a6560; }

.edu-item{ display:flex; gap:24px; padding:20px 0; border-bottom:1px solid var(--line); }
.edu-item .yr{ font-size:.82rem; color:#665d44; min-width:120px; letter-spacing:.05em; }
.edu-item .yr b{ color:#665d44; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-hero{ padding:clamp(150px,18vw,220px) 0 clamp(50px,8vw,90px); background:var(--ivory); }
.svc-detail-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(18px,2vw,26px); }
.svc-detail{ border:1px solid var(--line); padding:clamp(30px,3vw,44px); border-radius:2px; transition:border-color var(--dur-s), transform var(--dur-s); }
.svc-detail:hover{ border-color:var(--stone); transform:translateY(-4px); }
.svc-detail .n{ font-size:.72rem; color:#665d44; letter-spacing:.16em; }
.svc-detail h3{ font-size:1.4rem; font-weight:400; margin:16px 0 12px; }
.svc-detail p{ font-size:.95rem; line-height:1.65; color:#5a6560; }
@media (max-width:820px){ .svc-detail-grid{ grid-template-columns:1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero{ padding:clamp(150px,18vw,220px) 0 clamp(50px,8vw,90px); background:var(--green); color:var(--ivory); }
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:clamp(30px,6vw,90px); padding-top:clamp(60px,8vw,100px); padding-bottom:clamp(60px,8vw,100px); align-items:start; }
@media (max-width:920px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info-item{ display:flex; align-items:flex-start; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.contact-info-item .ic{ width:38px; height:38px; border-radius:50%; border:1px solid var(--stone); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-info-item .ic svg{ width:16px; height:16px; stroke:var(--green); }
.contact-info-item .k{ font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:#665d44; margin-bottom:4px; }
.contact-info-item .v{ font-size:1.02rem; }
.contact-info-item a:hover{ color:#665d44; }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:620px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#665d44; font-weight:500; }
.field input, .field select, .field textarea{
  border:none; border-bottom:1px solid var(--line); background:transparent; padding:10px 2px;
  font-family:'Rubik',sans-serif; font-size:.98rem; color:var(--ink); outline:none;
  transition:border-color var(--dur-s);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--green); }
.field textarea{ resize:vertical; min-height:110px; }
.field.full{ grid-column:1/-1; }
.form-note{ font-size:.82rem; color:#665d44; margin-top:18px; line-height:1.6; }
.form-success{
  display:none; padding:20px 22px; border:1px solid var(--green); border-radius:2px; margin-top:20px;
  background:var(--ivory); font-size:.92rem; line-height:1.6;
}
.form-success.show{ display:block; animation:pageIn .5s var(--ease); }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--stone); outline-offset:3px;
}

/* ---------- lazy fade ---------- */
img[loading="lazy"]{ background:#e5e0d2; }

/* ---------- misc ---------- */
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tag{ font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:#665d44; border:1px solid var(--line); padding:5px 10px; border-radius:20px; }

/* Accessible controls and static-page enhancements. */
[hidden]{ display:none !important; }
picture{ display:contents; }
button:disabled{ cursor:not-allowed; opacity:.65; }
:target{ scroll-margin-top:96px; }
.skip-link{ position:fixed; top:8px; left:12px; z-index:2000; background:var(--ivory); color:var(--green); padding:12px 18px; transform:translateY(-180%); }
.skip-link:focus{ transform:none; }
#app:focus{ outline:none; }
#nav:has(+ #mobile-menu:not([hidden])), body.menu-open #nav{ background:var(--green); padding-top:14px; padding-bottom:14px; }
.nav-burger{ min-width:44px; min-height:44px; justify-content:center; align-items:center; }
@media(max-width:920px){
  html:not(.js) #nav{ position:relative; flex-wrap:wrap; gap:18px; background:var(--green); }
  html:not(.js) .nav-links{ display:flex; flex-wrap:wrap; gap:14px 22px; width:100%; }
  html:not(.js) .nav-links a{ display:inline-block; padding:8px 0; }
  #mobile-menu{ top:72px; }
}
@media(max-height:500px){ #mobile-menu{ gap:14px; padding-top:16px; } #mobile-menu a{ font-size:1.5rem; } }
.filter-chip{ display:inline-flex; align-items:center; min-height:44px; }
.result-count{ margin-top:18px; color:#5a6560; }
.gallery-hint{ color:#5a6560; margin-bottom:20px; }
.gallery-image{ display:block; overflow:hidden; border-radius:2px; background:var(--ivory); }
.pd-gallery{ align-items:start; }
.pd-gallery .gallery-image{ aspect-ratio:auto; }
.pd-gallery .gallery-image img{ height:auto; object-fit:contain; }
.drawing{ margin:0; display:flex; flex-direction:column; gap:14px; aspect-ratio:auto; }
.drawing a{ display:block; background:white; }
.pd-drawings .pd-gallery img{ height:auto; }
.drawing figcaption{ font-size:.94rem; }
.related-project{ margin-top:40px; }
.cw-item{ background:#fff; }
@media(max-width:820px){ .pd-gallery > *{ grid-column:1/-1; } .pd-gallery{ gap:24px; } }
@media(max-width:480px){ .cw-grid{ grid-template-columns:1fr; } }
.text-link{ display:inline-block; color:var(--green); text-decoration:underline; text-underline-offset:4px; padding:10px 0; }
.service-deliverables{ margin-top:18px; }
.svc-detail .text-link{ margin-right:22px; font-size:.92rem; }
.form-title{ font-size:1.8rem; margin-bottom:16px; }
#inquiryHelp{ margin-bottom:28px; }
.form-note a{ text-decoration:underline; }
#draftPreview{ margin-top:24px; padding:22px; background:var(--ivory); border:1px solid var(--line); }
#draftPreview label{ display:block; margin-bottom:12px; }
#draftMessage{ box-sizing:border-box; width:100%; resize:vertical; padding:14px; font:inherit; line-height:1.6; border:1px solid #7d7355; background:var(--white); color:var(--ink); }
.draft-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.btn-secondary{ border:1px solid var(--green); color:var(--green); }
.contact-info-item .v{ overflow-wrap:anywhere; }
.contact-grid > *, .studio-grid > *{ min-width:0; }
.field input,.field select,.field textarea{ min-width:0; max-width:100%; }
.missing-page{ padding-top:150px; min-height:65vh; }
.missing-page p{ margin:24px 0; }
.missing-page .text-link{ margin-left:24px; }
body.viewer-open{ overflow:hidden; }
#imageViewer{ border:0; border-radius:4px; margin:auto; padding:18px; width:min(1200px,96vw); max-width:96vw; max-height:94dvh; background:var(--ink); color:var(--ivory); overflow:auto; }
#imageViewer::backdrop{ background:rgba(0,0,0,.88); }
#imageViewer figure{ margin:16px 0; }
#imageViewer img{ display:block; max-width:100%; width:auto; height:auto; max-height:68dvh; object-fit:contain; margin:auto; }
#imageViewer figcaption{ margin-top:14px; line-height:1.5; }
.viewer-bar,.viewer-controls{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.viewer-bar a{ text-decoration:underline; }
#imageViewer button{ border:1px solid var(--stone); background:var(--green); color:var(--ivory); padding:10px 16px; min-height:44px; font:inherit; }
@media(prefers-reduced-motion:reduce){ .reveal.reveal-pending{ opacity:1; transform:none; } }
@media print{ #nav,#mobile-menu,#scroll-progress,.skip-link,.hero-actions,#imageViewer{ display:none !important; } .reveal{ opacity:1 !important; transform:none !important; } .hero,.pd-hero{ height:auto; min-height:0; } }
