/* Casa Associates — shared design system. Used by index.html (agency
   homepage + project grid) and project.html (single-project listing). */

:root{
  --bg:            #f4f1e9;
  --surface:       #ffffff;
  --surface-sunk:  #ece7da;
  --ink:            #171b1e;
  --ink-soft:      #454d54;
  --muted:         #5e6672;
  --line:          #ddd5c2;
  --accent:        #a9812e;
  --accent-ink:    #5f470f;
  --accent-soft:   #f1e6c8;
  --navy:          #10161d;
  --navy-soft:     #1c2530;
  --star:          #d9b969;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:            #0d1218;
    --surface:       #161d26;
    --surface-sunk:  #10161e;
    --ink:            #eeeae0;
    --ink-soft:      #c3c0b7;
    --muted:         #8d96a1;
    --line:          #2a323c;
    --accent:        #d9b969;
    --accent-ink:    #f2e5bd;
    --accent-soft:   #23293166;
    --navy:          #070a0e;
    --navy-soft:     #131a22;
    --star:          #e6c987;
  }
}
:root[data-theme="dark"]{
  --bg:            #0d1218;
  --surface:       #161d26;
  --surface-sunk:  #10161e;
  --ink:            #eeeae0;
  --ink-soft:      #c3c0b7;
  --muted:         #8d96a1;
  --line:          #2a323c;
  --accent:        #d9b969;
  --accent-ink:    #f2e5bd;
  --accent-soft:   #23293166;
  --navy:          #070a0e;
  --navy-soft:     #131a22;
  --star:          #e6c987;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:6rem; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  text-wrap:balance;
  margin:0;
  color:var(--ink);
}

p{ margin:0; }
a{ color:inherit; }
img,svg{ display:block; max-width:100%; }

.wrap{
  width:min(1120px, 100% - 3rem);
  margin-inline:auto;
}

/* ---------- NAV ---------- */
.nav{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  display:flex;
  align-items:center;
  padding:1.1rem 0;
  transition:background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom:1px solid transparent;
}
.nav.is-scrolled{
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px);
  border-bottom-color:var(--line);
  padding:0.75rem 0;
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.nav-cta{ flex-shrink:0; }
.nav-toggle{ flex-shrink:0; }
.brand{
  display:flex;
  align-items:baseline;
  flex-shrink:1;
  min-width:0;
  gap:.5rem;
  font-family:var(--font-display);
  font-size:1.15rem;
  letter-spacing:.01em;
  text-decoration:none;
  color:var(--ink);
  transition:opacity .2s ease;
}
.brand:hover, .brand:focus-visible{ opacity:.72; }
.nav.is-scrolled .brand{ color: var(--ink); }
.nav:not(.is-scrolled) .brand{ color:#f4f1e9; }
.brand small{
  font-family:var(--font-mono);
  font-size:.6rem;
  letter-spacing:.14em;
  color:var(--accent-ink);
  text-transform:uppercase;
}
.nav:not(.is-scrolled) .brand small{ color:var(--star); }
.nav-links{
  display:flex;
  align-items:center;
  gap:2rem;
  list-style:none;
  margin:0; padding:0;
  font-size:.85rem;
  letter-spacing:.02em;
}
.nav-links a{
  position:relative;
  text-decoration:none;
  color:var(--ink-soft);
  transition:color .2s ease;
  padding-bottom:.2rem;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; right:100%; bottom:0;
  height:1px;
  background:currentColor;
  transition:right .25s cubic-bezier(.16,.84,.44,1);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after{ right:0; }
.nav:not(.is-scrolled) .nav-links a{ color:#cfd3d8; }
.nav-links a:hover, .nav-links a:focus-visible{ color:var(--accent); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  padding:.4rem;
  margin:0;
  cursor:pointer;
  color:var(--ink);
}
.nav:not(.is-scrolled) .nav-toggle{ color:#f4f1e9; }
.nav-toggle-icon{ width:22px; height:22px; display:block; }
.nav-toggle .icon-close{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-open{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display:block; }
.nav-cta{
  font-family:var(--font-mono);
  font-size:.78rem;
  text-decoration:none;
  border:1px solid var(--accent-ink);
  color:var(--accent-ink);
  padding:.5rem 1rem;
  border-radius:2px;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.nav:not(.is-scrolled) .nav-cta{ border-color:var(--star); color:var(--star); }
.nav-cta:hover, .nav-cta:focus-visible{ background:var(--accent); color:var(--navy); border-color:var(--accent); }
.nav-cta:active{ transform:scale(.97); }

.skip-link{
  position:absolute;
  top:-3rem;
  left:1rem;
  z-index:100;
  background:var(--accent);
  color:var(--navy);
  padding:.75rem 1.25rem;
  border-radius:2px;
  text-decoration:none;
  font-family:var(--font-body);
  font-weight:600;
  transition:top .2s ease;
}
.skip-link:focus{ top:1rem; }

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #1c2836 0%, transparent 55%),
    linear-gradient(175deg, var(--navy) 0%, var(--navy-soft) 60%, #232b25 100%);
}
.hero canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
}
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(0deg, var(--navy) 0%, transparent 42%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  padding-block:8rem 4.5rem;
  width:100%;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--star);
  margin-bottom:1.4rem;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px;
  background:var(--star);
}
.hero h1{
  color:#f6f3ea;
  font-size:clamp(3rem, 9vw, 6.4rem);
  line-height:.96;
  font-weight:500;
}
.hero h1 em{
  font-style:italic;
  font-weight:400;
  color:var(--star);
}
.hero-sub{
  max-width:34rem;
  margin-top:1.5rem;
  color:#cfd3d8;
  font-size:1.08rem;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:1.1rem 2.2rem;
  margin-top:2.6rem;
  padding-top:1.8rem;
  border-top:1px solid #ffffff22;
}
.hero-meta div{ display:flex; flex-direction:column; gap:.3rem; }
.hero-meta .k{
  font-family:var(--font-mono);
  font-size:.65rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#8891a0;
}
.hero-meta .v{ color:#eee9dd; font-size:.95rem; }
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
  margin-top:2.4rem;
}
.btn{
  font-family:var(--font-body);
  font-size:.92rem;
  font-weight:600;
  text-decoration:none;
  padding:.85rem 1.6rem;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  transition:transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid{
  background:var(--accent);
  color:var(--navy);
}
.btn-solid:hover, .btn-solid:focus-visible{ transform:translateY(-2px); box-shadow:0 12px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-solid:active{ transform:translateY(0); box-shadow:0 4px 12px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-outline{
  border:1px solid #ffffff3d;
  color:#f4f1e9;
}
.btn-outline:hover, .btn-outline:focus-visible{ border-color:var(--star); color:var(--star); transform:translateY(-2px); }
.btn-outline:active{ transform:translateY(0); }

/* ---------- SECTION SHELL ---------- */
section{ padding-block:6.5rem; }
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:2rem;
  margin-bottom:3rem;
  flex-wrap:wrap;
}
.section-label{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent-ink);
  display:flex;
  align-items:center;
  gap:.6rem;
}
.section-label::before{ content:""; width:22px; height:1px; background:var(--accent); }
.section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p{ max-width:26rem; color:var(--muted); font-size:.95rem; }

.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible{ opacity:1; transform:none; }

/* Staggered child entrance for grids whose parent carries .reveal — each
   child gets its own delay from a --i index set inline by the renderer, so
   cards/tiles cascade in rather than popping together. */
@keyframes revealUp{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:none; }
}
.usp-grid.reveal .usp-item,
.orbit-grid.reveal .orbit-card,
.gallery-grid.reveal > a,
.project-grid.reveal .project-card{
  opacity:0;
  transform:translateY(16px);
}
.usp-grid.reveal.is-visible .usp-item,
.orbit-grid.reveal.is-visible .orbit-card,
.gallery-grid.reveal.is-visible > a,
.project-grid.reveal.is-visible .project-card{
  animation:revealUp .7s cubic-bezier(.16,.84,.44,1) both;
  animation-delay:calc(var(--i, 0) * 80ms);
}

/* ---------- ABOUT ---------- */
.about{ background:var(--surface); border-block:1px solid var(--line); }
.about-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:3.5rem;
  align-items:start;
}
.stat-block{
  font-family:var(--font-display);
  font-size:clamp(3.4rem, 6vw, 5rem);
  line-height:1;
  color:var(--accent-ink);
}
.stat-block span{ display:block; color:var(--ink); }
.stat-block small{
  display:block;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.08em;
  color:var(--muted);
  margin-top:.6rem;
}
.about-copy p{ color:var(--ink-soft); font-size:1.05rem; }
.about-copy p + p{ margin-top:1.1rem; }
.about-copy strong{ color:var(--ink); font-weight:600; }
.credit-line{
  margin-top:1.8rem;
  padding-top:1.4rem;
  border-top:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:.8rem;
  color:var(--muted);
}

/* ---------- GALLERY ---------- */
.gallery{ background:var(--bg); }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:11rem;
  gap:.6rem;
}
.gallery-grid img{
  width:100%; height:100%;
  object-fit:cover;
  border:1px solid var(--line);
}
.gallery-grid a:nth-child(1){ grid-column:span 2; grid-row:span 2; }
.gallery-grid a{ display:block; overflow:hidden; }
.gallery-grid img{ transition:transform .5s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img{ transform:scale(1.04); }
@media (max-width:760px){
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); grid-auto-rows:9rem; }
  .gallery-grid a:nth-child(1){ grid-column:span 2; grid-row:span 1; height:14rem; }
}

/* Centered hover-reveal "zoom" affordance on each gallery thumbnail —
   signals the gallery links open a lightbox rather than a raw image. */
.gallery-item{ position:relative; }
.gallery-item-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(16,22,29,0);
  opacity:0;
  transition:opacity .3s ease, background .3s ease;
  pointer-events:none;
}
.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay{
  opacity:1;
  background:rgba(16,22,29,.42);
}
.gallery-item-overlay svg{
  width:1.9rem;
  height:1.9rem;
  color:#f4f1e9;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transform:scale(.8);
  transition:transform .3s cubic-bezier(.16,.84,.44,1), color .3s ease;
}
.gallery-item:hover .gallery-item-overlay svg,
.gallery-item:focus-visible .gallery-item-overlay svg{
  transform:scale(1);
  color:var(--star);
}

/* ---------- LIGHTBOX ---------- */
/* Shared overlay built by casaInitLightbox() in assets/site.js. The JS
   toggles the `hidden` attribute to open/close — style off that rather
   than a class, and keep every rule an author rule so the cascade doesn't
   depend on beating the UA [hidden] stylesheet on origin. */
@keyframes lightboxFade{
  from{ opacity:0; }
  to{ opacity:1; }
}
@keyframes lightboxImgIn{
  from{ opacity:0; transform:scale(.97) translateY(6px); }
  to{ opacity:1; transform:none; }
}
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  padding:clamp(1rem, 4vw, 2.5rem);
}
.lightbox:not([hidden]){
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  animation:lightboxFade .25s ease both;
}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,10,14,.94);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.lightbox-stage{
  position:relative;
  z-index:1;
  margin:0;
  max-width:min(92vw, 1200px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.9rem;
}
.lightbox-img{
  max-width:100%;
  max-height:74vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border:1px solid #ffffff22;
  background:var(--navy-soft);
  box-shadow:0 32px 80px -24px rgba(0,0,0,.65);
  animation:lightboxImgIn .35s cubic-bezier(.16,.84,.44,1) both;
}
.lightbox-caption{
  color:#d6d2c6;
  font-size:.9rem;
  text-align:center;
  max-width:38rem;
}
.lightbox-caption:empty{ display:none; }
.lightbox-counter{
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--star);
}
.lightbox-btn{
  position:fixed;
  z-index:2;
  width:2.9rem;
  height:2.9rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  border:1px solid #ffffff33;
  color:#f4f1e9;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.lightbox-btn svg{ width:1.05rem; height:1.05rem; }
.lightbox-btn:hover, .lightbox-btn:focus-visible{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--navy);
}
.lightbox-btn:active{ transform:scale(.92); }
.lightbox-close{ top:1.25rem; right:1.25rem; }
.lightbox-prev{ left:1.25rem; top:50%; margin-top:-1.45rem; }
.lightbox-next{ right:1.25rem; top:50%; margin-top:-1.45rem; }
@media (max-width:640px){
  .lightbox-btn{ width:2.75rem; height:2.75rem; }
  .lightbox-btn svg{ width:.95rem; height:.95rem; }
  .lightbox-close{ top:.75rem; right:.75rem; }
  .lightbox-prev{ left:.5rem; margin-top:-1.375rem; }
  .lightbox-next{ right:.5rem; margin-top:-1.375rem; }
  .lightbox-img{ max-height:64vh; }
}

/* ---------- VIDEO ---------- */
.video-block{
  border:1px solid var(--line);
  background:var(--navy);
  line-height:0;
}
.video-block video{ width:100%; aspect-ratio:1583/888; display:block; }

/* ---------- SPACES ---------- */
.spaces{ background:var(--bg); }
.space-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.75rem;
}
.space-card{
  background:var(--surface);
  border:1px solid var(--line);
  padding:2.6rem 2.2rem;
  display:flex;
  flex-direction:column;
  gap:1.6rem;
  transition:box-shadow .35s ease, border-color .35s ease, transform .35s cubic-bezier(.16,.84,.44,1);
}
.space-card:hover{
  transform:translateY(-3px);
  box-shadow:0 28px 56px -32px rgba(0,0,0,.3);
  border-color:color-mix(in srgb, var(--accent) 35%, var(--line));
}
.space-card .icon{
  width:44px; height:44px;
  color:var(--accent);
  transition:transform .35s cubic-bezier(.16,.84,.44,1);
}
.space-card:hover .icon{ transform:scale(1.08); }
.space-card h3{ font-size:1.6rem; }
.space-tag{
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.space-card p{ color:var(--ink-soft); font-size:.98rem; }
.space-list{
  list-style:none;
  margin:0; padding:0;
  display:flex; flex-direction:column;
  gap:.7rem;
  border-top:1px solid var(--line);
  padding-top:1.4rem;
}
.space-list li{
  display:flex;
  align-items:baseline;
  gap:.7rem;
  font-size:.9rem;
  color:var(--ink-soft);
}
.space-list li::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
  flex:none;
  transform:translateY(-2px);
}
.space-photos{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:.5rem;
}
.space-photos img,
.sub-gallery-grid img{
  transition:filter .3s ease, border-color .3s ease;
}
.space-photos img:hover,
.sub-gallery-grid img:hover{ filter:brightness(1.06); border-color:var(--accent); }
.space-photos img{
  width:100%; height:6rem;
  object-fit:cover;
  border:1px solid var(--line);
}
.sub-gallery{
  border-top:1px solid var(--line);
  padding-top:1.4rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}
.sub-gallery .sg-label{
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}
.sub-gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:.5rem;
}
.sub-gallery-grid img{
  width:100%; height:4.5rem;
  object-fit:cover;
  border:1px solid var(--line);
}

/* ---------- LOCATION ---------- */
.location{ background:var(--navy); color:#e9e6dc; }
.location .section-label{ color:var(--star); }
.location .section-label::before{ background:var(--star); }
.location h2{ color:#f6f3ea; }
.location .section-head p{ color:#9aa1ac; }
.location-map{
  margin-bottom:1px;
  border:1px solid #ffffff17;
  line-height:0;
}
.location-map img{ width:100%; aspect-ratio:942/628; object-fit:cover; max-height:22rem; object-position:center; }
.orbit-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:#ffffff17;
  border:1px solid #ffffff17;
}
.orbit-card{
  background:var(--navy-soft);
  padding:2rem 1.8rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  transition:background .3s ease;
}
.orbit-card:hover{ background:color-mix(in srgb, var(--navy-soft) 82%, var(--accent) 18%); }
.orbit-card h3{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--star);
  margin:0 0 .2rem;
  padding-bottom:.7rem;
  border-bottom:1px solid #ffffff17;
}
.orbit-card ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:.55rem;
}
.orbit-card li{
  font-size:.92rem;
  color:#d6d2c6;
  display:flex;
  justify-content:space-between;
  gap:1rem;
}
.orbit-card li b{
  font-weight:500;
  color:#f2efe6;
}
.drive-strip{
  margin-top:1px;
  background:var(--navy-soft);
  border:1px solid #ffffff17;
  border-top:none;
  padding:1.6rem 1.8rem;
  display:flex;
  flex-wrap:wrap;
  gap:2.2rem;
  justify-content:space-between;
}
.drive-strip div{ display:flex; flex-direction:column; gap:.3rem; }
.drive-strip .v{ font-family:var(--font-display); font-size:1.5rem; color:var(--star); }
.drive-strip .k{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:#8891a0; }

/* ---------- USP STRIP ---------- */
.usp{ background:var(--surface-sunk); border-block:1px solid var(--line); }
.usp-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.usp-item{
  display:flex;
  flex-direction:column;
  gap:.9rem;
  background:var(--surface-sunk);
  padding:2rem 1.8rem 2.2rem;
  border-top:2px solid transparent;
  transition:border-color .3s ease, background .3s ease, transform .3s cubic-bezier(.16,.84,.44,1);
}
.usp-item:hover{
  border-top-color:var(--accent);
  background:var(--surface);
  transform:translateY(-2px);
}
.usp-item .num{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.08em;
  color:var(--accent-ink);
}
.usp-item p{ font-family:var(--font-display); font-size:1.3rem; letter-spacing:-.01em; line-height:1.25; color:var(--ink); text-wrap:balance; }

/* ---------- PROJECT GRID (homepage) ---------- */
.projects{ background:var(--bg); }
.project-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1.75rem;
}
.project-grid:has(> :only-child){
  grid-template-columns:minmax(0, 26rem);
  justify-content:center;
}
.project-card{
  background:var(--surface);
  border:1px solid var(--line);
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  transition:transform .3s cubic-bezier(.16,.84,.44,1), box-shadow .3s ease, border-color .3s ease;
}
.project-card:hover, .project-card:focus-visible{
  transform:translateY(-6px);
  box-shadow:0 24px 48px -24px rgba(0,0,0,.4);
  border-color:color-mix(in srgb, var(--accent) 45%, var(--line));
}
.project-card .cta-arrow{ display:inline-block; transition:transform .25s cubic-bezier(.16,.84,.44,1); }
.project-card:hover .cta-arrow, .project-card:focus-visible .cta-arrow{ transform:translateX(4px); }
.project-card .thumb{
  aspect-ratio:16/10;
  overflow:hidden;
}
.project-card .thumb img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.project-card:hover .thumb img{ transform:scale(1.05); }
.project-card .body{
  padding:1.8rem 1.9rem 2rem;
  display:flex;
  flex-direction:column;
  gap:.9rem;
}
.project-card .tag{
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
.project-card h3{ font-size:1.5rem; }
.project-card p{ color:var(--ink-soft); font-size:.92rem; }
.project-card .meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:1rem;
  margin-top:.4rem;
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--muted);
}
.project-card .meta .cta{ color:var(--accent-ink); font-weight:600; }
@media (max-width:760px){
  .project-grid{ grid-template-columns:1fr; }
}

/* ---------- CONTACT ---------- */
.contact{ background:var(--bg); }
.contact-panel{
  background:var(--navy);
  color:#eee9dd;
  padding:clamp(2.5rem, 5vw, 4.5rem);
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:3rem;
  position:relative;
  overflow:hidden;
}
.contact-panel > *{ min-width:0; }
.contact-panel::before{
  content:"";
  position:absolute;
  top:-40%; right:-10%;
  width:420px; height:420px;
  border-radius:50%;
  background:radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 70%);
  pointer-events:none;
}
.contact-panel h2{ color:#f6f3ea; font-size:clamp(2rem, 4vw, 2.8rem); }
.contact-copy{ color:#b7bcc4; margin-top:1rem; max-width:30rem; font-size:1rem; }
.contact-cta{ margin-top:2.2rem; display:flex; flex-wrap:wrap; gap:1rem; }
.contact-side{
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  position:relative;
  z-index:1;
}
.info-box{
  border:1px solid #ffffff26;
  padding:1.6rem 1.7rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.info-box > div{ display:flex; flex-direction:column; gap:.35rem; }
.info-box .k{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:#8891a0; }
.info-box .v{ font-family:var(--font-mono); font-size:1rem; color:var(--star); overflow-wrap:anywhere; }
.info-box .v a{ text-decoration:none; }
.info-box .v a:hover, .info-box .v a:focus-visible{ text-decoration:underline; }
.info-box .addr{ font-size:.92rem; color:#cfd3d8; line-height:1.55; }
.info-box hr{ border:none; border-top:1px solid #ffffff26; width:100%; margin:0; }

/* ---------- ENQUIRY FORM ---------- */
.enquiry-form{
  margin-top:2.4rem;
  padding-top:2.2rem;
  border-top:1px solid #ffffff26;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.1rem 1.2rem;
  position:relative;
  z-index:1;
}
.enquiry-form .field-full{ grid-column:1 / -1; }
.enquiry-form label{
  display:block;
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#8891a0;
  margin-bottom:.5rem;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea{
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid #ffffff66;
  color:#f4f1e9;
  font-family:var(--font-body);
  font-size:.95rem;
  padding:.5rem .1rem;
  outline:none;
  transition:border-color .2s ease, background .2s ease;
}
.enquiry-form input:hover,
.enquiry-form select:hover,
.enquiry-form textarea:hover{ border-color:#ffffff99; }
.enquiry-form select{ color-scheme:dark; }
.enquiry-form select option{ color:#f4f1e9; background:var(--navy-soft); }
.enquiry-form textarea{ resize:vertical; min-height:3.2rem; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus{
  border-color:var(--star);
  outline:2px solid var(--star);
  outline-offset:2px;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder{ color:#8891a0; }
.enquiry-form label .req{ color:var(--star); margin-left:.15rem; }
.enquiry-form .form-note{
  font-size:.78rem;
  color:#8891a0;
}
.enquiry-form button{
  font-family:var(--font-body);
  font-size:.92rem;
  font-weight:600;
  padding:.85rem 1.6rem;
  border-radius:2px;
  border:none;
  background:var(--accent);
  color:var(--navy);
  cursor:pointer;
  justify-self:start;
  transition:transform .2s ease, box-shadow .2s ease;
}
.enquiry-form button:hover, .enquiry-form button:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.enquiry-form button:active{ transform:translateY(0); box-shadow:0 4px 12px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (max-width: 560px){
  .enquiry-form{ grid-template-columns:1fr; }
}

/* ---------- FOOTER ---------- */
footer{
  padding-block:2.4rem;
  border-top:1px solid var(--line);
}
footer .wrap{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:1rem;
  font-size:.82rem;
  color:var(--muted);
}
footer .brand{ font-size:1rem; color:var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    padding:.5rem 1.5rem 1rem;
    max-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transition:max-height .3s ease, opacity .2s ease;
  }
  .nav.nav-open .nav-links{
    max-height:20rem;
    opacity:1;
    pointer-events:auto;
  }
  .nav-links a{ display:block; padding:.75rem 0; font-size:1rem; }
  .nav.nav-open .nav-links a{ color:var(--ink); }
  .nav.nav-open .nav-links a:hover, .nav.nav-open .nav-links a:focus-visible{ color:var(--accent-ink); }

  .about-grid{ grid-template-columns:1fr; gap:2.2rem; }
  .space-grid{ grid-template-columns:1fr; }
  .orbit-grid{ grid-template-columns:1fr; }
  .usp-grid{ grid-template-columns:1fr 1fr; }
  .contact-panel{ grid-template-columns:1fr; }
  .drive-strip{ flex-direction:column; gap:1.2rem; }
  .space-card{ padding:2rem 1.6rem; }
}
@media (max-width: 600px){
  .nav .wrap{ gap:.6rem; }
  .brand small{ display:none; }
  .nav-cta{ font-size:.7rem; padding:.4rem .6rem; }
}
@media (max-width: 480px){
  .usp-grid{ grid-template-columns:1fr; }
  section{ padding-block:4.5rem; }
  .hero-inner{ padding-top:7rem; }
  .space-photos{ grid-template-columns:repeat(2, 1fr); }
  .space-photos img{ height:5.2rem; }
  .sub-gallery-grid{ grid-template-columns:repeat(2, 1fr); }
  .sub-gallery-grid img{ height:5.2rem; }
}
