:root{
  --bg:#F5F4F0;
  --ink:#1A1A1A;
  --mid:#7A7A7A;
  --border:#E5E4DF;
  --accent:#FF4D00;

  --pad:80px;
  --nav-band:77px;
  --hero-h:576px;

  --f-display:"Space Grotesk",system-ui,sans-serif;
  --f-body:"Inter",system-ui,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:17px;
  line-height:1.588;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;border-radius:0}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ---------- type ---------- */
.eyebrow{
  font-size:11px;font-weight:500;line-height:1;
  letter-spacing:.88px;text-transform:uppercase;
  color:var(--mid);margin:0 0 16px;
}
.eyebrow--center,.h2--center{text-align:center}
.h2{
  font-family:var(--f-display);font-weight:500;
  font-size:36px;line-height:40px;letter-spacing:-.72px;
  margin:0 0 48px;
}
.lead{
  color:var(--mid);text-align:center;
  max-width:480px;margin:0 auto 48px;
}

/* ---------- intro ---------- */
.intro{
  position:fixed;inset:0;z-index:100;
  background:var(--bg);
  display:grid;place-items:center;
  transition:opacity .5s ease,visibility .5s;
}
.intro__mark{
  height:52px;width:auto;
  opacity:0;transform:translateY(6px);
  transition:opacity .4s ease,transform .4s ease;
}
.intro.is-in .intro__mark{opacity:1;transform:none}
.intro.is-out{opacity:0;visibility:hidden}
.intro.is-out .intro__mark{opacity:0;transform:scale(.55)}

/* ---------- nav ---------- */
.nav{
  position:fixed;top:24px;left:0;right:0;
  margin-inline:auto;width:max-content;
  z-index:60;display:flex;align-items:center;gap:32px;
  padding:12px 24px;border-radius:999px;
  background:rgba(245,244,240,.72);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid var(--border);
  opacity:0;transition:opacity .4s ease .1s;
}
.nav.is-ready,html:not(.js) .nav{opacity:1}
.nav__mark{
  display:flex;align-items:center;text-decoration:none;
}
.nav__mark img{height:15px;width:auto}
.nav__links{display:flex;gap:4px}
.nav__links a{
  position:relative;
  font-size:13px;font-weight:500;letter-spacing:1.04px;
  text-transform:uppercase;text-decoration:none;
  padding:8px 14px;color:var(--ink);
}
.nav__links a::after{
  content:"";position:absolute;left:14px;right:14px;bottom:2px;
  height:2px;background:var(--accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .2s ease;
}
.nav__links a.is-active::after{transform:scaleX(1)}
.nav__toggle{display:none}

/* ---------- hero ---------- */
.hero__pin{height:560vh}
/* The nav pill occupies the top of the frame, so the photo is centred
   in the field below it — not in the raw viewport. That gives equal
   air above the photo and below the caption. */
.hero__stage{
  position:sticky;top:0;height:100svh;
  padding-top:var(--nav-band);
  overflow:hidden;display:flex;align-items:center;
}
.hero__track{
  display:flex;align-items:flex-end;
  will-change:transform;
}
.hero__item{flex:0 0 auto;margin:0}
.hero__item img{
  height:min(576px, 70svh);width:auto;object-fit:contain;
}
.hero__cap{
  margin:16px 0 0;
  font-size:11px;font-weight:500;line-height:1;
  letter-spacing:.88px;text-transform:uppercase;color:var(--mid);
  opacity:0;
}

/* ---------- reveal + image load ---------- */
[data-reveal]{
  opacity:0;transform:translateY(28px);
  transition:opacity 1.1s cubic-bezier(.22,1,.36,1),transform 1.1s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-in{opacity:1;transform:none}

.js .gallery img,.js .about__portrait img,.js .logos img{
  opacity:0;transition:opacity .95s ease;
}
.js .gallery img.is-loaded,.js .about__portrait img.is-loaded,.js .logos img.is-loaded{opacity:1}

/* ---------- sections ---------- */
.section{padding:128px 0}
.section__inner{max-width:1440px;margin:0 auto;padding:0 var(--pad)}

.about{display:flex;gap:96px;align-items:flex-start}
.about__col{flex:0 0 560px}
.about__text{display:flex;flex-direction:column;gap:24px}
.about__text p{margin:0;max-width:540px}
.about__portrait{margin:0;flex:1 1 auto;min-width:0}
.about__portrait img{width:100%;height:auto}

/* ---------- gallery ---------- */
.gallery{
  max-width:1440px;margin:0 auto;padding:0 var(--pad);
  display:flex;gap:24px;align-items:flex-start;
}
.gallery__col{flex:1 1 0;min-width:0}
.gallery figure{margin:0 0 24px}
.gallery figure:last-child{margin-bottom:0}
.gallery img{width:100%;height:auto}

/* ---------- logos ---------- */
.logos{
  list-style:none;margin:0;padding:0;min-height:120px;
  display:flex;flex-wrap:wrap;align-items:center;
  justify-content:space-between;gap:32px;
}
.logos img{width:auto;object-fit:contain}
.logos li:nth-child(1) img{height:51px}
.logos li:nth-child(2) img{height:57px}
.logos li:nth-child(3) img{height:71px}
.logos li:nth-child(4) img{height:74px}
.logos li:nth-child(5) img{height:44px}
.logos li:nth-child(6) img{height:60px}

/* ---------- contact ---------- */
.contact{max-width:480px;margin:0 auto;padding:0 24px}
.form{display:flex;flex-direction:column;gap:8px}
.field{position:relative}
.field input,.field textarea{
  width:100%;font:inherit;font-size:15px;line-height:24px;color:var(--ink);
  background:none;border:0;border-bottom:1px solid var(--border);
  border-radius:0;padding:16px 0;resize:none;
  transition:border-color .2s ease;
}
.field label{
  position:absolute;left:0;top:16px;
  font-size:15px;line-height:24px;color:var(--mid);
  pointer-events:none;transition:transform .2s ease,font-size .2s ease;
  transform-origin:left top;
}
.field input:focus,.field textarea:focus{
  outline:none;border-bottom-color:var(--accent);
}
.field input:focus+label,.field textarea:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:not(:placeholder-shown)+label{
  transform:translateY(-14px) scale(.73);
}
.btn{
  align-self:flex-start;margin-top:32px;cursor:pointer;
  font-family:var(--f-body);font-size:13px;font-weight:500;
  letter-spacing:1.04px;text-transform:uppercase;
  color:var(--ink);background:none;
  border:1px solid var(--ink);border-radius:999px;
  padding:14px 28px;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.btn:hover,.btn:focus-visible{
  background:var(--accent);border-color:var(--accent);color:var(--bg);
}
.form__status{font-size:13px;color:var(--mid);min-height:20px;margin:12px 0 0}
.contact__alt{text-align:center;margin-top:64px}
.contact__alt p{font-size:13px;line-height:16px;color:var(--mid);margin:0 0 8px}
.link-accent{
  font-size:15px;font-weight:500;color:var(--accent);
  text-decoration:underline;text-underline-offset:3px;
}

/* ---------- footer ---------- */
.footer{border-top:1px solid var(--border)}
.footer__inner{
  max-width:1440px;margin:0 auto;padding:32px var(--pad);
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  font-size:13px;line-height:16px;color:var(--mid);
}
.footer__inner p{margin:0}
.footer__links{list-style:none;display:flex;gap:24px;margin:0;padding:0}
.footer__links a{text-decoration:none}
.footer__links a:hover{color:var(--ink)}

/* ---------- mobile ---------- */
@media (max-width:900px){
  :root{--pad:24px;--nav-band:60px}
  body{font-size:16px}
  .h2{font-size:28px;line-height:32px;margin-bottom:32px}
  .section{padding:80px 0}

  /* The pill is the menu. Opening expands it into a rounded panel;
     everything animates on one shared curve so it reads as one object. */
  .nav{
    top:16px;
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:"mark toggle" "links links";
    grid-template-rows:24px auto;
    align-items:center;
    gap:0;
    width:140px;max-height:44px;
    padding:10px 20px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(245,244,240,.78);
    transition:
      width .45s cubic-bezier(.22,1,.36,1),
      max-height .45s cubic-bezier(.22,1,.36,1),
      border-radius .45s cubic-bezier(.22,1,.36,1),
      padding .45s cubic-bezier(.22,1,.36,1),
      background-color .45s ease,
      opacity .4s ease .1s;
  }
  .nav.is-open{
    width:calc(100vw - 32px);
    max-height:340px;
    border-radius:24px;
    padding:10px 20px 24px;
    background:rgba(245,244,240,.94);
  }

  .nav__mark{grid-area:mark;height:24px}
  .nav__mark img{height:15px}
  .intro__mark{height:38px}
  .nav__toggle{grid-area:toggle}
  .nav__links{grid-area:links}

  .nav__links{
    display:flex;flex-direction:column;align-items:flex-start;
    gap:2px;padding-top:20px;
  }
  .nav__links a{
    font-family:var(--f-display);font-weight:500;
    font-size:26px;line-height:1.35;letter-spacing:-.5px;
    text-transform:none;padding:4px 0;
    opacity:0;transform:translateY(10px);
    transition:opacity .35s ease,transform .35s ease;
  }
  .nav.is-open .nav__links a{opacity:1;transform:none}
  .nav.is-open .nav__links a:nth-child(1){transition-delay:.14s}
  .nav.is-open .nav__links a:nth-child(2){transition-delay:.20s}
  .nav.is-open .nav__links a:nth-child(3){transition-delay:.26s}
  .nav__links a::after{
    left:0;right:auto;bottom:2px;width:0;
    transform:none;transition:width .25s ease;
  }
  .nav__links a.is-active::after{transform:none;width:28px}

  /* hamburger to cross */
  .nav__toggle{
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:24px;height:24px;margin-left:20px;align-self:center;
    background:none;border:0;padding:0;cursor:pointer;
  }
  .nav__toggle span{
    display:block;height:1.5px;width:100%;background:var(--ink);
    transition:transform .45s cubic-bezier(.22,1,.36,1);
  }
  .nav.is-open .nav__toggle span:first-child{transform:translateY(3.25px) rotate(45deg)}
  .nav.is-open .nav__toggle span:last-child{transform:translateY(-3.25px) rotate(-45deg)}

  /* photo defines its own box, so captions align to the real image edge */
  .hero__track{align-items:center}
  .hero__item img{
    height:auto;width:auto;
    max-width:calc(100vw - 48px);max-height:68svh;
    object-fit:contain;
  }

  .about{flex-direction:column;gap:48px}
  .about__col{flex:1 1 auto}
  .about__portrait{order:-1;width:100%}
  .gallery{display:block}
  .gallery figure{margin-bottom:16px}
  .logos{
    display:grid;grid-template-columns:repeat(3,1fr);
    gap:44px 20px;justify-items:center;align-items:center;
    min-height:0;
  }
  .logos li{display:flex;align-items:center;justify-content:center}
  .logos li:nth-child(1) img{height:36px}
  .logos li:nth-child(2) img{height:40px}
  .logos li:nth-child(3) img{height:50px}
  .logos li:nth-child(4) img{height:52px}
  .logos li:nth-child(5) img{height:31px}
  .logos li:nth-child(6) img{height:42px}
  .footer__inner{flex-direction:column;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero__pin{height:auto}
  .hero__stage{position:static;height:auto;overflow-x:auto;scroll-snap-type:x mandatory}
  .hero__track{transform:none!important;padding:0 var(--pad)}
  .hero__item{scroll-snap-align:center}
  .hero__cap{opacity:1!important}
  [data-reveal]{opacity:1;transform:none;transition:none}
  .js .gallery img,.js .about__portrait img,.js .logos img{opacity:1}
  .intro{display:none}
}
