:root {
  color-scheme: dark;
  --bg: #100710;
  --bg-deep: #090409;
  --bg-soft: #190c18;
  --panel: #21101f;
  --panel-2: #2a1426;
  --gold: #f2b23f;
  --gold-2: #ffd36f;
  --gold-dark: #b66b12;
  --text: #fffaf4;
  --text-soft: #cfc1ca;
  --text-muted: #94858f;
  --line: rgba(255,255,255,.10);
  --gold-line: rgba(242,178,63,.42);
  --shadow: 0 30px 90px rgba(0,0,0,.42);
  --shell: 1300px;
  --header-height: 82px;
  --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(118,37,81,.18), transparent 32%),
    radial-gradient(circle at 20% 10%, rgba(83,20,59,.15), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: #170a10; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(12,5,12,.88), rgba(12,5,12,.48));
  backdrop-filter: blur(18px) saturate(135%);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(10,4,10,.93);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--gold-2);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: -.035em;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 3px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.desktop-nav a {
  position: relative;
  padding: 29px 0 25px;
  color: #e8dfe5;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 630;
  transition: color .18s ease;
}
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--gold-2); }
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 23px;
  border: 1px solid rgba(242,178,63,.72);
  border-radius: 999px;
  color: var(--gold-2);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 740;
  transition: transform .18s var(--ease), background .18s ease, color .18s ease, box-shadow .18s ease;
}
.contact-link:hover {
  transform: translateY(-2px);
  color: #160b10;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(242,178,63,.18);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.menu-toggle svg { width: 21px; }
.mobile-menu {
  position: fixed;
  z-index: 990;
  inset: var(--header-height) 0 auto;
  padding: 14px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,4,10,.98);
  box-shadow: 0 30px 50px rgba(0,0,0,.3);
}
.mobile-menu a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 680;
}
.mobile-menu a[aria-current="page"] { color: var(--gold-2); }

/* Shared */
.section { position: relative; padding: 106px 0; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 780;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button svg { width: 19px; }
.button:hover { transform: translateY(-3px); }
.button-gold {
  color: #160b10;
  background: linear-gradient(135deg, #ffd16c, #e9a72f);
  box-shadow: 0 16px 38px rgba(230,156,35,.18), inset 0 1px rgba(255,255,255,.5);
}
.button-gold:hover { box-shadow: 0 20px 50px rgba(230,156,35,.28), inset 0 1px rgba(255,255,255,.55); }
.button-outline {
  border-color: rgba(242,178,63,.72);
  color: var(--gold-2);
  background: rgba(20,8,18,.35);
}
.button-outline:hover { background: rgba(242,178,63,.08); }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 760;
}
.arrow-link svg { width: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* Home hero */
.hero {
  position: relative;
  min-height: 675px;
  padding: calc(var(--header-height) + 28px) 0 20px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 75% 48%, rgba(115,36,82,.21), transparent 36%),
    radial-gradient(ellipse at 58% 88%, rgba(215,120,44,.08), transparent 31%),
    linear-gradient(100deg, rgba(8,3,8,.1), transparent 58%);
}
.hero::after {
  position: absolute;
  z-index: -2;
  inset: auto -10% -170px 35%;
  height: 520px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(242,178,63,.08), transparent 68%);
  filter: blur(25px);
}
.hero-lines {
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: 20px;
  width: min(770px, 60vw);
  height: 390px;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='%23c87e32' stroke-opacity='.42'%3E%3Cpath d='M0 245c120-35 207 41 326 8 123-34 177-145 474-97'/%3E%3Cpath d='M0 270c141-31 209 54 340 15 148-44 196-140 460-104'/%3E%3Cpath d='M0 296c153-23 222 55 362 18 166-44 214-124 438-103'/%3E%3Cpath d='M0 321c173-12 242 50 388 21 176-35 232-104 412-100'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .82fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}
.hero-copy { position: relative; z-index: 3; padding-top: 0; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.3rem, 5vw, 4.9rem);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 790;
  white-space: nowrap;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, #ffd677 0%, #f0b13d 62%, #d88924 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-tagline {
  margin: 28px 0 0;
  color: #d9ced5;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 520;
}
.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 525px;
  perspective: 1500px;
}
.logo-float {
  position: relative;
  z-index: 2;
  animation: logoFloat 6.4s ease-in-out infinite;
  transform-origin: center;
}
.logo-card {
  --base-rx: 1deg;
  --base-ry: -12deg;
  --base-rz: -5.5deg;
  --rx: 0deg;
  --ry: 0deg;
  --glare-x: 50%;
  --glare-y: 34%;
  position: relative;
  width: clamp(315px, 29vw, 395px);
  aspect-ratio: .76;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,226,178,.66);
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(58,17,51,.80), rgba(37,10,33,.78));
  box-shadow:
    0 42px 72px rgba(0,0,0,.42),
    0 0 90px rgba(149,54,90,.13),
    inset 0 1px rgba(255,255,255,.12);
  transform: rotateX(calc(var(--base-rx) + var(--rx))) rotateY(calc(var(--base-ry) + var(--ry))) rotateZ(var(--base-rz));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s linear, box-shadow .25s ease;
}
.logo-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255,218,170,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%, transparent 72%, rgba(0,0,0,.18));
  pointer-events: none;
}
.logo-card img {
  position: relative;
  z-index: 3;
  width: 74%;
  height: auto;
  max-width: 74%;
  object-fit: contain;
  object-position: center;
  transform: translateZ(24px);
  filter: drop-shadow(0 20px 28px rgba(0,0,0,.30));
  user-select: none;
}
.logo-card-glow {
  position: absolute;
  z-index: 1;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,173,53,.16), transparent 67%);
  filter: blur(14px);
  transform: translateZ(10px);
}
.logo-floor-shadow {
  position: absolute;
  z-index: 1;
  bottom: 7px;
  width: min(360px, 74%);
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(225,135,64,.23), rgba(0,0,0,.26) 48%, transparent 72%);
  filter: blur(12px);
  animation: shadowFloat 6.4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -13px, 0); }
}
@keyframes shadowFloat {
  0%,100% { transform: scaleX(1); opacity: .88; }
  50% { transform: scaleX(.86); opacity: .62; }
}

/* Featured work */
.featured {
  padding-top: 46px;
  background: linear-gradient(to bottom, transparent, rgba(8,3,8,.34));
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(0,0,0,.22);
  text-decoration: none;
  isolation: isolate;
}
.feature-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(7,3,8,.9), rgba(7,3,8,.05) 64%);
}
.feature-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color .25s ease;
  pointer-events: none;
}
.feature-card img,
.feature-card video {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .65s var(--ease), filter .35s ease;
}
.feature-card-content {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.feature-card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.feature-card-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(242,178,63,.68);
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(13,6,12,.42);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), background .25s ease, color .25s ease;
}
.feature-card-arrow svg { width: 17px; }
.feature-card:hover::after { border-color: rgba(242,178,63,.3); }
.feature-card:hover img,
.feature-card:hover video { transform: scale(1.045); filter: saturate(1.08) brightness(1.04); }
.feature-card:hover .feature-card-arrow { transform: translateX(3px); color: #180c11; background: var(--gold); }
.feature-card.is-disabled { cursor: default; }

/* Vision preview */
.vision-note {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.vision-note-grid {
  display: grid;
  grid-template-columns: .42fr 1.35fr .72fr;
  align-items: start;
  gap: clamp(34px, 6vw, 92px);
}
.vision-note h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}
.vision-note-grid > div p { margin: 0 0 28px; color: var(--text-soft); line-height: 1.75; }

/* Inner pages */
.page-hero {
  padding: calc(var(--header-height) + 105px) 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 28%, rgba(114,38,81,.16), transparent 34%),
    linear-gradient(to bottom, rgba(35,14,31,.32), transparent);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  align-items: end;
  gap: 80px;
}
.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.page-hero-copy { margin: 0 0 8px; color: var(--text-soft); font-size: 1.06rem; line-height: 1.75; }

.principles { background: rgba(255,255,255,.012); }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.principles article {
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(49,20,43,.74), rgba(21,8,20,.62));
}
.principles article > span { color: var(--gold); font-size: .78rem; font-weight: 820; letter-spacing: .14em; }
.principles h2 { margin: 76px 0 18px; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.035em; }
.principles p { margin: 0; color: var(--text-soft); line-height: 1.72; }
.vision-statement { text-align: center; }
.vision-statement blockquote {
  max-width: 1020px;
  margin: 0 auto 40px;
  font-size: clamp(2.3rem, 5.3vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 700;
}

/* Projects page */
.project-library-section { padding-top: 72px; }
.project-library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: linear-gradient(145deg, rgba(46,19,40,.88), rgba(17,7,16,.96));
  text-decoration: none;
  box-shadow: 0 24px 55px rgba(0,0,0,.2);
  transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease;
}
.project-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #190b17;
}
.project-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(13,5,12,.7), transparent 55%);
  pointer-events: none;
}
.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #140914;
  transition: transform .6s var(--ease);
}
.project-card-body { padding: 28px; }
.project-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--gold-2); font-size: .75rem; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.project-card h2 { margin: 18px 0 12px; font-size: 1.8rem; letter-spacing: -.04em; }
.project-card p { margin: 0; color: var(--text-soft); line-height: 1.72; }
.project-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 26px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #bfb0ba; font-size: .68rem; font-weight: 700; }
.project-open { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: .78rem; font-weight: 760; white-space: nowrap; }
.project-open svg { width: 17px; }
.project-card.is-clickable:hover { transform: translateY(-7px); border-color: rgba(242,178,63,.36); box-shadow: 0 34px 70px rgba(0,0,0,.32); }
.project-card.is-clickable:hover .project-card-media img,
.project-card.is-clickable:hover .project-card-media video { transform: scale(1.045); }
.project-empty { grid-column: 1 / -1; padding: 60px 20px; border: 1px solid var(--line); color: var(--text-muted); text-align: center; }

/* Legal pages */
.legal-hero {
  padding: calc(var(--header-height) + 82px) 0 62px;
  border-bottom: 1px solid var(--line);
}
.legal-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.legal-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.2rem); line-height: 1; letter-spacing: -.06em; }
.legal-hero p:not(.eyebrow) { margin: 22px 0 0; color: var(--text-muted); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdf-section { padding: 36px 0 100px; }
.pdf-frame {
  min-height: 820px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a0b18;
  box-shadow: var(--shadow);
}
.pdf-frame iframe { width: 100%; height: 820px; border: 0; background: #fff; }
.pdf-frame > p { display: none; margin: 0; padding: 24px; color: var(--text-soft); }
.pdf-frame > p a { color: var(--gold-2); }

/* Footer */
.site-footer {
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 56px; }
.footer-brand p { margin: 20px 0 0; color: var(--text-muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links span { margin-bottom: 6px; color: var(--text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { color: #d9ced5; text-decoration: none; font-size: .86rem; transition: color .18s ease; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--text-muted);
  font-size: .78rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .contact-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr minmax(330px,.7fr); gap: 48px; }
  .hero h1 { font-size: clamp(3.2rem, 7.4vw, 5.7rem); }
  .logo-stage { min-height: 500px; }
  .vision-note-grid { grid-template-columns: 1fr 2fr; }
  .vision-note-grid > div { grid-column: 2; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .shell { width: min(100% - 32px, var(--shell)); }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 68px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero h1 { margin-inline: auto; font-size: clamp(3rem, 11.5vw, 5rem); white-space: normal; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .logo-stage { min-height: 500px; margin-top: 8px; }
  .logo-card { width: min(370px, 78vw); }
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card img, .feature-card video { min-height: 260px; }
  .vision-note-grid { grid-template-columns: 1fr; }
  .vision-note-grid > div { grid-column: auto; }
  .principles-grid, .project-library { grid-template-columns: 1fr; }
  .principles article { min-height: 250px; }
  .principles h2 { margin-top: 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 46px; }
  .legal-hero-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .section { padding: 78px 0; }
  .brand { font-size: 1.03rem; }
  .brand img { width: 34px; height: 34px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .hero-tagline { margin-top: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .logo-stage { min-height: 430px; }
  .logo-card { width: min(300px, 82vw); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .feature-card, .feature-card img, .feature-card video { min-height: 220px; }
  .page-hero { padding-top: calc(var(--header-height) + 76px); }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .project-card-body { padding: 22px; }
  .project-card h2 { font-size: 1.5rem; }
  .project-card-bottom { align-items: flex-start; flex-direction: column; }
  .legal-actions { width: 100%; }
  .legal-actions .button { flex: 1 1 150px; }
  .pdf-frame, .pdf-frame iframe { height: 640px; min-height: 640px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (hover: none), (pointer: coarse) {
  .logo-float { animation-duration: 6.2s; }
  .logo-card {
    transform: rotateX(var(--base-rx)) rotateY(var(--base-ry)) rotateZ(var(--base-rz)) !important;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* =========================================================
   v6 approved home-reference layout
   ========================================================= */
.brand-mark {
  width: 43px;
  height: 43px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.36));
}
.header-actions { min-width: 43px; }

.hero {
  min-height: 0;
  padding: calc(var(--header-height) + 42px) 0 22px;
}
.hero::before {
  background:
    radial-gradient(ellipse at 73% 43%, rgba(126,39,89,.23), transparent 35%),
    radial-gradient(ellipse at 55% 91%, rgba(215,120,44,.09), transparent 30%),
    linear-gradient(100deg, rgba(8,3,8,.08), transparent 60%);
}
.hero::after { right: -4%; bottom: -205px; left: 37%; }
.hero-lines {
  right: -35px;
  bottom: -26px;
  width: min(800px, 60vw);
  opacity: .32;
}
.hero-grid {
  min-height: 500px;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .78fr);
  align-items: center;
  gap: clamp(52px, 7vw, 104px);
}
.hero-copy { padding-top: 8px; }
.hero h1 {
  max-width: 820px;
  font-size: clamp(3.85rem, 5.45vw, 5.75rem);
  line-height: .97;
  letter-spacing: -.067em;
  white-space: normal;
}
.hero-tagline {
  margin-top: 28px;
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  font-weight: 540;
}
.hero-actions { margin-top: 35px; }

.logo-stage {
  min-height: 500px;
  perspective: 1700px;
}
.logo-float {
  transform-style: preserve-3d;
  animation: logoFloatV6 6.6s ease-in-out infinite;
}
.logo-float::before {
  position: absolute;
  z-index: -1;
  inset: 10px -9px -9px 10px;
  content: "";
  border: 1px solid rgba(255,220,172,.25);
  background: linear-gradient(150deg, rgba(83,27,61,.78), rgba(20,7,19,.93));
  box-shadow: 18px 24px 45px rgba(0,0,0,.28);
  transform: translateZ(-34px);
  pointer-events: none;
}
.logo-card {
  --base-rx: 1.4deg;
  --base-ry: -8deg;
  --base-rz: -1.4deg;
  width: clamp(300px, 25vw, 365px);
  aspect-ratio: .82;
  padding: clamp(38px, 3.5vw, 54px) clamp(34px, 3.2vw, 48px);
  overflow: hidden;
  border-color: rgba(255,225,180,.7);
  border-radius: 2px;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255,216,166,.12), transparent 30%),
    linear-gradient(145deg, rgba(74,25,56,.94), rgba(31,11,29,.98) 62%, rgba(17,6,17,.99));
  box-shadow:
    0 38px 70px rgba(0,0,0,.42),
    0 0 80px rgba(146,48,92,.12),
    inset 0 1px rgba(255,255,255,.13),
    inset 0 -22px 42px rgba(0,0,0,.17);
  transform: rotateX(calc(var(--base-rx) + var(--rx))) rotateY(calc(var(--base-ry) + var(--ry))) rotateZ(var(--base-rz));
}
.logo-card::before { inset: 9px; }
.logo-card::after {
  z-index: 2;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255,218,170,.10), transparent 29%),
    linear-gradient(to top, rgba(0,0,0,.22), transparent 48%);
}
.logo-card img {
  position: relative;
  z-index: 3;
  inset: auto;
  display: block;
  width: 82%;
  height: auto;
  max-width: 310px;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
  transform: translateZ(38px);
  filter: none;
  user-select: none;
}
.logo-card-glow { width: 78%; opacity: .82; }
.logo-card-sheen { z-index: 5; opacity: .42; }
.logo-floor-shadow {
  bottom: 20px;
  width: min(330px, 70%);
  height: 42px;
  animation: shadowFloatV6 6.6s ease-in-out infinite;
}
@keyframes logoFloatV6 {
  0%,100% { transform: translate3d(0,2px,0) rotate(-.25deg); }
  50% { transform: translate3d(0,-11px,0) rotate(.3deg); }
}
@keyframes shadowFloatV6 {
  0%,100% { transform: scaleX(1); opacity: .82; }
  50% { transform: scaleX(.9); opacity: .58; }
}

.featured-home {
  padding: 13px 0 74px;
  background: transparent;
}
.featured-compact-head { margin-bottom: 15px; }
.featured-compact-head .eyebrow { margin: 0; }
.featured-home .featured-grid { gap: 20px; }
.featured-home .feature-card {
  min-height: 0;
  aspect-ratio: 2.08 / 1;
  border-radius: 6px;
}
.featured-home .feature-card img,
.featured-home .feature-card video {
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}
.featured-home .feature-card-content { right: 16px; bottom: 14px; left: 16px; }
.featured-home .feature-card h3 { font-size: 1rem; }
.featured-home .feature-card-arrow { width: 35px; height: 35px; }

@media (max-width:1080px) {
  .hero-grid { grid-template-columns:minmax(0,1.08fr) minmax(300px,.72fr); gap:44px; }
  .hero h1 { font-size:clamp(3.15rem,6.8vw,5.25rem); }
  .logo-stage { min-height:470px; }
  .logo-card { width:min(330px,31vw); }
}
@media (max-width:820px) {
  .hero { padding-top:calc(var(--header-height) + 66px); }
  .hero-grid { min-height:0; grid-template-columns:1fr; }
  .logo-stage { min-height:455px; margin-top:6px; }
  .logo-card { width:min(320px,76vw); }
  .featured-home { padding-top:36px; }
}
@media (max-width:560px) {
  .brand-mark { width:37px; height:37px; }
  .header-actions { min-width:44px; }
  .hero h1 { font-size:clamp(2.75rem,14vw,4.15rem); }
  .logo-stage { min-height:410px; }
  .logo-card { width:min(288px,82vw); padding:32px 27px; }
  .featured-home .feature-card { aspect-ratio:1.8 / 1; }
}
@media (hover:none),(pointer:coarse) {
  .logo-card {
    transform:rotateX(var(--base-rx)) rotateY(var(--base-ry)) rotateZ(var(--base-rz)) !important;
    transition:none;
  }
}


/* =========================================================
   v6.2 reverted plaque + untouched original logo asset
   ========================================================= */
.brand-lockup {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 15px rgba(0,0,0,.32));
}
.site-footer .brand-lockup {
  width: 64px;
  height: 64px;
}

/* Return the hero plaque to the earlier angled presentation. */
.logo-stage {
  min-height: 500px;
  perspective: 1500px;
}
.logo-float {
  animation: logoFloatV62 6.4s ease-in-out infinite;
  transform-origin: center;
}
.logo-float::before {
  position: absolute;
  z-index: -1;
  inset: 10px -8px -8px 10px;
  content: "";
  border: 1px solid rgba(255,220,172,.24);
  background: linear-gradient(150deg, rgba(83,27,61,.74), rgba(20,7,19,.91));
  box-shadow: 18px 24px 45px rgba(0,0,0,.25);
  transform: translateZ(-30px);
  pointer-events: none;
}
.logo-card {
  --base-rx: 1deg;
  --base-ry: -12deg;
  --base-rz: -5.5deg;
  width: clamp(315px, 29vw, 395px);
  aspect-ratio: .76;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,226,178,.66);
  border-radius: 1px;
  background: #2b0e26;
  box-shadow:
    0 42px 72px rgba(0,0,0,.42),
    0 0 90px rgba(149,54,90,.13),
    inset 0 1px rgba(255,255,255,.12);
  transform: rotateX(calc(var(--base-rx) + var(--rx))) rotateY(calc(var(--base-ry) + var(--ry))) rotateZ(var(--base-rz));
  transform-style: preserve-3d;
}
.logo-card::before {
  z-index: 4;
  inset: 8px;
  border-color: rgba(255,255,255,.065);
}
.logo-card::after {
  z-index: 2;
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255,218,170,.12), transparent 28%),
    linear-gradient(to top, rgba(0,0,0,.24), transparent 46%);
}
.logo-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: translateZ(1px);
  filter: none;
  user-select: none;
}
.logo-card-glow {
  width: 80%;
  opacity: .78;
}
.logo-card-sheen {
  z-index: 5;
  opacity: .5;
}
.logo-floor-shadow {
  bottom: 7px;
  width: min(360px, 74%);
  height: 42px;
  animation: shadowFloatV62 6.4s ease-in-out infinite;
}
@keyframes logoFloatV62 {
  0%,100% { transform: translate3d(0, 2px, 0) rotate(-.35deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.25deg); }
}
@keyframes shadowFloatV62 {
  0%,100% { transform: scaleX(1); opacity: .84; }
  50% { transform: scaleX(.88); opacity: .58; }
}

@media (max-width: 1080px) {
  .brand-lockup { width: 54px; height: 54px; }
  .logo-card { width: min(350px, 32vw); }
}
@media (max-width: 820px) {
  .logo-stage { min-height: 470px; }
  .logo-card { width: min(340px, 78vw); }
}
@media (max-width: 560px) {
  .brand-lockup { width: 46px; height: 46px; }
  .site-footer .brand-lockup { width: 56px; height: 56px; }
  .logo-stage { min-height: 420px; }
  .logo-card { width: min(300px, 84vw); padding: 10px; }
}
@media (hover: none), (pointer: coarse) {
  .logo-card {
    transform: rotateX(var(--base-rx)) rotateY(var(--base-ry)) rotateZ(var(--base-rz)) !important;
  }
}


/* v6.4 logo consistency patch */
.brand{display:inline-flex;align-items:center;text-decoration:none;min-width:0;}
.brand span{display:none;}
.header-inner .brand-lockup{display:block;width:auto;height:56px;max-width:220px;object-fit:contain;object-position:left center;filter:drop-shadow(0 7px 15px rgba(0,0,0,.32));}
.site-footer .brand-lockup{display:block;width:auto;height:62px;max-width:240px;object-fit:contain;object-position:left center;filter:drop-shadow(0 7px 15px rgba(0,0,0,.32));}
@media (max-width:1080px){.header-inner .brand-lockup{height:52px;max-width:204px;}.site-footer .brand-lockup{height:58px;max-width:224px;}}
@media (max-width:560px){.header-inner .brand-lockup{height:46px;max-width:176px;}.site-footer .brand-lockup{height:50px;max-width:190px;}}


/* =========================================================
   v6.5 — hero-only transparent logo + one clean glass panel
   ========================================================= */

/* Remove the offset duplicate slab behind the real plaque. */
.logo-float::before {
  display: none !important;
  content: none !important;
}

/* Remove the extra inset rectangle drawn inside the plaque. */
.logo-card::before {
  display: none !important;
  content: none !important;
}

/* Keep one polished glass plaque only. */
.logo-card {
  border: 1px solid rgba(255, 226, 178, .68);
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 218, 170, .10), transparent 29%),
    linear-gradient(145deg, rgba(74, 25, 56, .92), rgba(31, 11, 29, .96) 62%, rgba(17, 6, 17, .98));
  box-shadow:
    0 42px 72px rgba(0, 0, 0, .42),
    0 0 90px rgba(149, 54, 90, .13),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -20px 36px rgba(0, 0, 0, .13);
}

/* Only the hero artwork uses the transparent-background logo. */
.logo-card > img {
  position: relative;
  z-index: 3;
  display: block;
  width: 92%;
  height: auto;
  max-width: none;
  max-height: 82%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform: translateZ(38px);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .22));
  user-select: none;
}

/* The reflection remains on the same single plaque and no longer resembles another box. */
.logo-card::after {
  z-index: 2;
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 226, 192, .10), transparent 27%),
    linear-gradient(112deg, transparent 10%, rgba(255, 255, 255, .035) 38%, transparent 63%),
    linear-gradient(to top, rgba(0, 0, 0, .18), transparent 43%);
  pointer-events: none;
}

@media (max-width: 560px) {
  .logo-card > img {
    width: 90%;
    max-height: 80%;
  }
}

/* =========================================================
   v6.8 — pointer-following hero light
   ========================================================= */
.logo-card > img,
.logo-card > .logo-card-glow {
  pointer-events: none;
}

.logo-card-glow {
  left: var(--glare-x, 50%);
  top: var(--glare-y, 34%);
  width: 64%;
  opacity: .48;
  background:
    radial-gradient(circle,
      rgba(255, 225, 184, .30) 0%,
      rgba(242, 178, 63, .15) 30%,
      rgba(242, 178, 63, .05) 51%,
      transparent 70%);
  filter: blur(10px);
  transform: translate3d(-50%, -50%, 14px);
  will-change: left, top, opacity;
}

.logo-card.is-tilting .logo-card-glow {
  opacity: .88;
}

.logo-card::after {
  background:
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 34%),
      rgba(255, 235, 205, .16) 0%,
      rgba(255, 218, 170, .07) 23%,
      transparent 43%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 28%, transparent 72%, rgba(0,0,0,.18));
}

@media (hover: none), (pointer: coarse) {
  .logo-card-glow {
    left: 50%;
    top: 38%;
    opacity: .52;
  }
}


/* =========================================================
   v6.9 — smooth damped hero tilt
   ========================================================= */
.logo-stage {
  perspective-origin: 50% 50%;
}

.logo-card {
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* JavaScript now performs frame-rate-independent damping. A CSS transform
     transition here would fight that loop and cause the previous stepping. */
  transition: box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}

.logo-card::after,
.logo-card-glow {
  will-change: background-position, left, top, opacity;
}

.logo-card-glow {
  transition: opacity .24s ease;
}
