/* ============================================================
   ABOUT PAGE — self-contained stylesheet
   ------------------------------------------------------------
   This page doesn't link the main styles.css — everything it
   needs (tokens, nav, the about section, the "view gallery"
   block) is embedded here instead, mirrored from styles.css /
   nav.css so it matches the rest of the site exactly, including
   light/dark theming.

   Pairs with the shared script.js (theme toggle, nav scroll
   state, mobile menu, the client-logo scroller drag/wheel, the
   section-tag typewriter) — load that on this page too; its
   element-existence guards make it safe even though this page
   skips sections like hero/process/testimonials/contact.
   ============================================================ */

/* TOKENS */
:root{
  --font-display:"Bebas Neue","Arial Narrow",Impact,sans-serif;
  --font-body:"Outfit",system-ui,-apple-system,"Segoe UI",sans-serif;

  --shell:1280px;
  --gutter:clamp(1.25rem,4vw,3rem);
  --nav-h:8rem;

  --fs-head:clamp(30px,3.6vw,48px);
  --fs-body:clamp(17px,1.15vw,20px);
  --fs-tag:clamp(3rem,11.5vw,180px);
  --fs-nav:clamp(18px,1.6vw,24px);
  --fs-eyebrow:clamp(15px,1.5vw,21px);
  --fs-social:clamp(13px,1.1vw,16px);

  --ease:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}

:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#000000;
  --surface:#1F1E18;
  --text:#F4F1EA;
  --muted:#9A9588;
  --faint:#6B675D;
  --hairline:#2F2D26;
  --hairline-strong:#4A473D;
  --placeholder:#6E6A5F;
  --glass:rgba(22,21,15,.72);
  --lift:0 22px 44px -20px rgba(0,0,0,.8);
  --fill-image:url("/assets/photos/hero-fill-dark.jpeg");
}

:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F4F1EA;
  --surface:#ECE8DE;
  --text:#16150F;
  --muted:#6E6A60;
  --faint:#A8A396;
  --hairline:#DAD5C8;
  --hairline-strong:#C9C4B7;
  --placeholder:#A39E91;
  --glass:rgba(244,241,234,.78);
  --lift:0 22px 44px -22px rgba(22,21,15,.4);
  --fill-image:url("/assets/photos/hero-fill-light.jpg");
}

/* BASE */
*,*::before,*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scrollbar-color:var(--hairline-strong) var(--bg);
}
html.menu-open{ overflow:hidden; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-weight:300;
  font-size:var(--fs-body);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
}

img{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }

::selection{ background:var(--text); color:var(--bg); }
:focus-visible{ outline:1.5px solid var(--text); outline-offset:3px; }

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

/* theme change: circular reveal from the toggle (view transitions) */
::view-transition-old(root),
::view-transition-new(root){ animation:none; mix-blend-mode:normal; }
::view-transition-old(root){ z-index:1; }
::view-transition-new(root){ z-index:2; }
.theme-fade, .theme-fade *{
  transition:background-color .6s ease, color .6s ease, border-color .6s ease !important;
}

/* SHARED PIECES */
.wrap{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:var(--gutter);
}
.section{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--nav-h) + clamp(1rem,3vh,2.5rem)) 0 clamp(2rem,6vh,4.5rem);
}

/* the section tag — same Bebas as the hero name, at display size */
.label{
  margin:0 0 .28em;
  margin-left:-.035em;                 /* optical: the glyph edge lines up with the copy below */
  font-family:var(--font-display);
  font-weight:600;
  font-size:var(--fs-tag);
  line-height:.9;
  letter-spacing:.012em;
  text-transform:uppercase;
  color:var(--text);
  min-height:.9em;
}
.label .tw-caret{
  display:inline-block;
  width:.05em; height:.6em;
  margin-left:.08em;
  background:currentColor;
  vertical-align:baseline;
  opacity:0;
  transition:opacity .35s ease;
}
.label.is-typing .tw-caret{ opacity:1; }

/* every heading on the page, one treatment — h1 is the page's one primary
   heading (the statement below), h2 covers the rest (like "View Gallery") */
h1, h2{
  margin:0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:var(--fs-head);
  line-height:1.2;
  letter-spacing:-.005em;
  text-transform:capitalize;
  text-wrap:balance;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:1rem 2.1rem;
  border:1px solid var(--text);
  border-radius:999px;
  font-size:.9rem; font-weight:400; letter-spacing:.03em;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .4s var(--ease), color .4s var(--ease),
             border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-solid{ background:var(--text); color:var(--bg); }
.btn-solid:hover{ background:transparent; color:var(--text); }
.btn-ghost{ background:transparent; color:var(--text); }
.btn-ghost:hover{ background:var(--text); color:var(--bg); }

/* SCROLL REVEAL — a focus pull, both directions (script.js toggles .is-in) */
.js [data-reveal]{
  transition-property:opacity, filter, transform;
  transition-duration:1s;
  transition-timing-function:var(--ease);
  transition-delay:var(--rd,0ms);
}
.js [data-reveal]:not(.is-in){
  opacity:0;
  filter:blur(var(--rb,10px));
  transform:translate3d(0,var(--ry,34px),0);
}
.js [data-reveal][data-from="above"]:not(.is-in){
  transform:translate3d(0,calc(var(--ry,34px) * -1),0);
}

/* ============================================================
   NAV — identical to the rest of the site: flush and transparent
   at the top, lifts into a floating glass capsule once scrolled
   ============================================================ */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:50;
  height:var(--nav-h);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:1.5rem;
  padding-inline:var(--gutter);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  transition:opacity 1.1s var(--ease) 1.1s, transform 1.1s var(--ease) 1.1s,
             height .5s var(--ease), top .5s var(--ease), left .5s var(--ease), right .5s var(--ease),
             border-radius .5s var(--ease), background-color .5s var(--ease),
             box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav.is-scrolled{
  top:clamp(.6rem,1.6vh,1.1rem);
  left:clamp(.9rem,3vw,2rem);
  right:clamp(.9rem,3vw,2rem);
  height:7.75rem;
  border-radius:999px;
  background:var(--glass);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:var(--lift);
}
.js:not(.is-loaded) .nav{ opacity:0; transform:translate3d(0,-14px,0); }

.wordmark{
  justify-self:start;
  display:flex; align-items:center;
  text-decoration:none;
}
.wordmark img{
  display:block;
  height:clamp(80px,10vw,112px);
  width:auto;
}

.nav-links{
  display:flex; gap:clamp(1.5rem,3vw,3.25rem);
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  display:block; padding:.4rem 0;
  font-size:var(--fs-nav); font-weight:400;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--text); text-decoration:none;
  transition:color .3s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="true"]{ color:var(--muted); }

.nav-right{
  grid-column:3;
  justify-self:end;
  display:flex; align-items:center; gap:.6rem;
}

.theme-toggle,
.menu-toggle{
  width:42px; height:42px;
  display:grid; place-items:center;
  padding:0;
  background:transparent;
  border:1px solid var(--hairline-strong);
  border-radius:50%;
  color:var(--text);
  cursor:pointer;
  transition:border-color .3s ease, background-color .3s ease;
}
.theme-toggle:hover,
.menu-toggle:hover{ border-color:var(--text); }
.theme-toggle svg{ width:18px; height:18px; transition:transform .9s var(--ease); }
:root[data-theme="light"] .theme-toggle svg{ transform:rotate(180deg); }

.js .theme-toggle{ animation:ring-breathe 3s var(--ease-io) infinite; }
.theme-toggle:hover,
.theme-toggle:focus-visible{ animation-play-state:paused; }
@keyframes ring-breathe{
  0%,100%{ box-shadow:inset 0 0 0 0 var(--text), 0 0 0 0 transparent; border-color:var(--hairline-strong); }
  50%    { box-shadow:inset 0 0 0 2px var(--text), 0 0 0 5px transparent; border-color:var(--text); }
}

.menu-toggle{ display:none; position:relative; }
.menu-toggle span{
  position:absolute; left:50%; top:50%;
  width:16px; height:1px; background:currentColor;
  transition:transform .5s var(--ease);
}
.menu-toggle span:first-child{ transform:translate(-50%,-3px); }
.menu-toggle span:last-child { transform:translate(-50%, 3px); }
.menu-toggle[aria-expanded="true"] span:first-child{ transform:translate(-50%,0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform:translate(-50%,0) rotate(-45deg); }

.menu{
  position:fixed; inset:0; z-index:40;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background:var(--bg);
  clip-path:inset(0 0 100% 0);
  visibility:hidden;
  transition:clip-path .75s var(--ease-io), visibility 0s linear .75s;
}
.menu.is-open{
  clip-path:inset(0 0 0 0);
  visibility:visible;
  transition:clip-path .75s var(--ease-io), visibility 0s;
}
.menu ul{ list-style:none; margin:0; padding:0; }
.menu li{ overflow:hidden; }
.menu a{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(3rem,12vw,5.25rem); line-height:1.02;
  letter-spacing:.01em;
  text-decoration:none;
  color:var(--muted);
  transform:translate3d(0,105%,0);
  transition:transform .8s var(--ease), color .3s ease;
}
.menu a[aria-current="true"], .menu a:hover{ color:var(--text); }
.menu.is-open a{ transform:none; transition-delay:calc(.18s + var(--i) * .05s), 0s; }
.menu-foot{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 2rem;
  font-size:.85rem; color:var(--muted);
}
.menu-foot a{ font:inherit; color:var(--text); transform:none; }

/* ============================================================
   ABOUT — the section itself, unchanged from the homepage
   ============================================================ */
/* extra breathing room above the "About" tag on desktop */
@media (min-width:761px){
  .about{ padding-top:calc(var(--nav-h) + clamp(3.5rem,9vh,7rem)); }
}
.about .meta{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:1.5rem;
  padding-bottom:clamp(1.5rem,4vh,3rem);
  font-size:var(--fs-body); letter-spacing:.02em;
  color:var(--muted);
}
.about .meta .who{ color:var(--text); }

.about .grid{
  display:grid;
  grid-template-columns:1fr auto;
  gap:clamp(2.5rem,5vw,5rem);
  align-items:center;
}
.about .col-copy{ display:flex; flex-direction:column; align-items:flex-start; }
.about .statement{ max-width:20em; }
.about .support{
  margin:1.4rem 0 0;
  max-width:60ch;
  font-size:var(--fs-body); line-height:1.8;
  color:var(--muted);
}
.about .cta-row{ margin-top:2.1rem; }

.about .crest{
  position:relative;
  width:100%;
  height:clamp(340px, calc(100svh - 24rem), 680px);
  aspect-ratio:514/642;
  border-radius:14px;
  overflow:hidden;
  isolation:isolate;
  cursor:pointer;
  background:linear-gradient(155deg,#2a2820 0%,#141310 42%,#050504 100%);
  box-shadow:0 30px 50px -24px rgba(0,0,0,.85);
  transform:perspective(900px) rotateX(var(--tiltX,0deg)) rotateY(var(--tiltY,0deg));
  transition:transform .5s var(--ease-io), box-shadow .6s var(--ease);
}
.about .crest img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;
  padding:16%;
}
.about .crest-shine{
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 68%);
  transform:translateX(-140%) skewX(-18deg);
  pointer-events:none;
  mix-blend-mode:screen;
}
.about .crest.is-shining .crest-shine{
  animation:crest-sweep 1.3s var(--ease-io) forwards;
}
@keyframes crest-sweep{
  to{ transform:translateX(140%) skewX(-18deg); }
}
.about .crest:hover{
  transform:perspective(900px) translateY(-4px) rotateX(6deg) rotateY(-8deg);
}

.about .credit{
  display:flex; justify-content:space-between; gap:1.5rem;
  padding-top:.85rem;
  font-size:var(--fs-body); letter-spacing:.02em; color:var(--muted);
}
.about .credit span:first-child{ color:var(--text); }

/* ============================================================
   FOOTER — big logo left, page links + contact/social/CTA
   alongside it, centered copyright underneath
   ============================================================ */
.site-footer{
  background:var(--bg);
  color:var(--text);
  border-top:1px solid var(--hairline);
  padding-top:clamp(3rem,7vw,5.5rem);
}

.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1.3fr;
  gap:clamp(2.5rem,6vw,5rem);
  padding-bottom:clamp(2.5rem,6vw,4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
}

.footer-brand h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  text-transform: none;
  /* your global h3 style capitalizes/resizes it oddly otherwise */
  color: var(--text);
}

.footer-brand img {
  display: block;
  width: clamp(150px, 18vw, 240px);
  height: auto;
  margin-bottom: .2rem;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35));
}
.footer-brand p{
  margin:0;
  max-width:32ch;
  font-size:var(--fs-body); line-height:1.7;
  color:var(--muted);
}

.footer-col h3,
.footer-contact h3{
  margin:0 0 1.15rem;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.footer-links{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column;
  gap:.75rem;
}
.footer-links a{
  text-decoration:none;
  color:var(--text);
  font-size:var(--fs-body);
  transition:opacity .25s ease;
}
.footer-links a:hover{ opacity:.65; }

.footer-contact{
  display:flex; flex-direction:column; align-items:flex-start;
  gap:1.4rem;
}
.footer-contact address{
  margin:0;
  font-style:normal;
  display:flex; flex-direction:column;
  gap:.55rem;
  font-size:var(--fs-body);
  color:var(--muted);
}
.footer-contact address a{
  align-self:flex-start;
  text-decoration:none;
  color:var(--text);
  transition:color .25s ease;
}
.footer-contact address a:hover{ color:var(--muted); }

.footer-bottom{ border-top:1px solid var(--hairline); }
.footer-bottom .wrap{
  padding-block:clamp(1.25rem,3vh,1.75rem);
  text-align:center;
  font-size:var(--fs-body); color:var(--muted);
}

@media (max-width:900px){
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}

@media (max-width:640px){
  .footer-top{ grid-template-columns:1fr; gap:2.75rem; text-align:center; }
  .footer-brand{ align-items:center; }
  .footer-brand p{ max-width:36ch; }
  .footer-col,
  .footer-contact{ align-items:center; }
  .footer-contact address{ align-items:center; }
  .footer-contact address a{ align-self:center; }
}

/* ============================================================
   GALLERY CTA — "View Gallery", pasted in right under the about section
   ============================================================ */
.gallery-cta{ align-items:center; text-align:center; }
.gallery-cta .block{ display:inline-block; text-decoration:none; color:inherit; }
.gallery-cta .lines{
  margin:0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(4.6rem,16vw,14rem);
  line-height:.86;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.gallery-cta .lines span{ display:block; }
.gallery-cta .filled{
  background-color:var(--text);
  background-image:var(--fill-image);
  background-size:cover;
  background-position:center 60%;
  background-repeat:no-repeat;
  -webkit-background-clip:text;
          background-clip:text;
  color:transparent;
  transition:background-position 1.2s var(--ease);
}
.gallery-cta .block:hover .filled,
.gallery-cta .block:focus-visible .filled{ background-position:center 40%; }
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .gallery-cta .filled{ color:var(--text); background-image:none; }
}
.gallery-cta .open{ margin-top:clamp(1.5rem,3.5vh,2.5rem); }
.gallery-cta .block:hover .open,
.gallery-cta .block:focus-visible .open{ background:var(--text); color:var(--bg); }
.gallery-cta .block:focus-visible{ outline-offset:12px; }

/* RESPONSIVE */
@media (max-width:900px){
  .about .meta{ flex-wrap:wrap; gap:.4rem 1.5rem; }
  .about .meta .role{ display:none; }
  .about .grid{ grid-template-columns:1fr; gap:2.25rem; }
  .about .col-copy{ order:2; }
  .about .statement{ max-width:none; }
.about .crest{ width:100%; height:auto; aspect-ratio:4/3; max-height:52svh; }
.about .crest img{ padding:20%; }
}

@media (max-width:760px){
  .nav-center{ display:none; }
  .menu-toggle{ display:grid; }

  /* mobile: no floating pill — a plain bar, always solid, always sticky */
  .nav,
  .nav.is-scrolled{
    top:0; left:0; right:0;
    height:var(--nav-h);
    border-radius:0;
    background:var(--bg);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    box-shadow:0 1px 0 var(--hairline);
  }
}

@media (max-width:560px){
  .about .crest{ aspect-ratio:1/1; max-height:46svh; }
}

/* the tag is a display element — trim it when the viewport is short */
@media (max-height:920px){ :root{ --fs-tag:clamp(2.75rem,9vw,132px); } }
@media (max-height:760px){ :root{ --fs-tag:clamp(2.5rem,8vw,104px); } }

/* REDUCED MOTION */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0s !important;
  }
  .js [data-reveal],
  .js [data-reveal]:not(.is-in),
  .js:not(.is-loaded) .nav{ opacity:1; filter:none; transform:none; }
  .js .about .portrait img{ transform:none; }
  .label .tw-caret{ animation:none; opacity:0; }
  .theme-toggle{ animation:none; box-shadow:none; }
}
