/* ==========================================================================
   CRUPIN — Design system
   ========================================================================== */

:root {
  --ink:        #0B1226;
  --ink-2:      #121B36;
  --navy:       #1B2951;
  --navy-lift:  #2B3B6C;

  --paper:      #EDEEF0;
  --paper-hi:   #FFFFFF;
  --paper-sink: #E3E5E9;

  --slate:      #5D6684;
  --slate-soft: #8189A2;

  --green:      #4CAF6E;
  --green-deep: #2E7A4B;

  --line:       rgba(11, 18, 38, .13);
  --line-soft:  rgba(11, 18, 38, .07);
  --line-dark:  rgba(255, 255, 255, .15);
  --line-dark-soft: rgba(255, 255, 255, .08);

  --display: 'Familjen Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:   1440px;
  --gutter: clamp(20px, 4.6vw, 76px);
  --nav-h:  84px;
  --nav-h-sm: 62px;

  --e-out:    cubic-bezier(.23, 1, .32, 1);
  --e-in-out: cubic-bezier(.77, 0, .175, 1);
  --e-curtain: cubic-bezier(.72, 0, .18, 1);

  --bear-top: 64%;
  --bear-bot: 36%;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--green); color: var(--ink); }

/* ==========================================================================
   Type primitives
   ========================================================================== */
.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.label--onDark { color: var(--slate-soft); }
.label--accent { color: var(--green-deep); }
.label--accent.label--onDark { color: var(--green); }

.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: .98;
  text-wrap: balance;
}
.h-xl { font-size: clamp(3.2rem, 8.4vw, 8.2rem); }
.h-lg { font-size: clamp(2.4rem, 5.4vw, 4.9rem); line-height: 1.02; }
.h-md { font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.08; letter-spacing: -.022em; }
.h-sm { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }

.lede {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.35vw, 2.1rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

.body-txt {
  font-size: clamp(.98rem, 1.05vw, 1.075rem);
  line-height: 1.68;
  color: var(--slate);
  text-wrap: pretty;
}
.onDark .body-txt, .body-txt--onDark { color: rgba(255, 255, 255, .68); }

.accent { color: var(--green-deep); }
.onDark .accent, .accent--onDark { color: var(--green); }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(88px, 12vw, 176px);
}
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section + .section { padding-top: 0; }

.spec {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.spec__rail { position: static; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.wrap > .rule { margin-inline: 0; }
.onDark .rule, .rule--onDark { background: var(--line-dark-soft); }

.onDark { background: var(--ink); color: #fff; }

/* ==========================================================================
   Page-transition curtain
   ========================================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  will-change: transform;
}
.js .curtain { transform: translate3d(0, 0, 0); }

.curtain__mark {
  width: 46px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .4s ease, transform .6s var(--e-out);
}
.js .curtain__mark { opacity: 1; transform: none; transition-delay: .1s; }

.curtain.is-out {
  transform: translate3d(0, -100%, 0);
  transition: transform .82s var(--e-curtain);
}
.curtain.is-out .curtain__mark {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .22s ease, transform .5s var(--e-out);
}
.curtain.is-in {
  transform: translate3d(0, 0, 0);
  transition: transform .58s var(--e-curtain);
}
.curtain.is-in .curtain__mark { opacity: 1; transform: none; transition-delay: .16s; }
.curtain.is-done { display: none; }

/* ==========================================================================
   Reveals
   ========================================================================== */
.js [data-r] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity .7s var(--e-out) calc(var(--i, 0) * 70ms),
    transform .9s var(--e-out) calc(var(--i, 0) * 70ms);
}
.js [data-r].is-in { opacity: 1; transform: none; }

.rise { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.rise > span { display: block; }
.js .rise > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1s var(--e-out) calc(var(--i, 0) * 90ms);
}
.js .is-in .rise > span,
.js .rise.is-in > span { transform: none; }

.js [data-veil] { clip-path: none; }
.js [data-veil] img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--e-out), transform 1.2s var(--e-out);
}
.js [data-veil].is-in img { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--e-out), transform .45s var(--e-out), background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%;
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav.is-stuck {
  height: var(--nav-h-sm);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav.is-stuck.nav--onDark {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom-color: var(--line-dark-soft);
}
.nav.is-away { transform: translate3d(0, -100%, 0); }

.nav--onDark { color: #fff; }

.is-menu-open .nav { color: #fff; }
.is-menu-open .nav.is-stuck {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark, .lockup__mark, .curtain__mark { flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; transition: transform .6s var(--e-out); }
.brand:hover .brand__mark { transform: rotate(-38deg); }
.brand__word {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .12em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  padding-block: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .32s var(--e-out);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after { clip-path: inset(0 0 0 0); }
.nav__link[aria-current='page'] { color: var(--green-deep); }
.nav--onDark .nav__link[aria-current='page'] { color: var(--green); }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--e-out), opacity .2s ease;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.is-menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.is-menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--e-curtain), visibility 0s linear .5s;
  visibility: hidden;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .5s var(--e-curtain), visibility 0s linear 0s;
}

.menu__link {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-dark-soft);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .5s var(--e-out), transform .6s var(--e-out);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .12s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .17s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .27s; }

.menu__foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  background: var(--navy);
  color: #fff;
  transition: transform .16s ease-out, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:active { transform: scale(.975); }
.btn svg { flex-shrink: 0; transition: transform .34s var(--e-out); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding-inline: 25px;
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--onDark { background: var(--green); color: var(--ink); }
.btn--onDark:hover { background: #5cc37e; }
.btn--ghost.btn--onDark {
  background: transparent; color: #fff; border-color: var(--line-dark);
}
.btn--ghost.btn--onDark:hover { background: #fff; color: var(--ink); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-weight: 500;
  padding-bottom: 3px;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transition: opacity .25s ease, transform .38s var(--e-out);
  transform-origin: left;
}
.tlink:hover::after { opacity: 1; }
.tlink svg { transition: transform .34s var(--e-out); }
.tlink:hover svg { transform: translateX(4px); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  transition: color .25s ease;
}
.backlink svg { transition: transform .34s var(--e-out); }
.backlink:hover { color: #fff; }
.backlink:hover svg { transform: translateX(-4px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--nav-h) + 40px) clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: #fff;
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
  transform: scale(1.1);
  animation: heroSettle 2.4s var(--e-out) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,38,.72) 0%, rgba(11,18,38,.28) 42%, rgba(11,18,38,.94) 100%),
    linear-gradient(90deg, rgba(11,18,38,.66) 0%, rgba(11,18,38,0) 62%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__head { max-width: 16ch; margin-top: 22px; }
.hero__foot {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero__sub { max-width: 46ch; color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Lede statement block
   ========================================================================== */
.thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: end;
}
.thesis__body { max-width: none; }
.thesis__note { margin-top: 0; max-width: 40ch; }

/* ==========================================================================
   Principles / pillars
   ========================================================================== */
.tenets, .pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 72px);
}
.tenet, .pillar {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px) clamp(40px, 5vw, 64px);
  transition: background-color .4s ease;
}
.tenet:hover, .pillar:hover { background: var(--paper-hi); }
.tenet__title, .pillar h3 { margin-block: 20px 12px; }
.tenet__arc, .pillar .tenet__arc { width: 26px; height: 26px; color: var(--green-deep); }

.tenet__arc circle { transition: stroke-dashoffset 1.1s var(--e-out) var(--d, 0s); }
.js .tenet[data-r] .tenet__arc circle,
.js .pillar[data-r] .tenet__arc circle {
  stroke-dasharray: 61 21;
  stroke-dashoffset: 82;
  transition: stroke-dashoffset 1.1s var(--e-out) calc(var(--i, 0) * 70ms + 220ms);
}
.js .tenet[data-r].is-in .tenet__arc circle,
.js .pillar[data-r].is-in .tenet__arc circle { stroke-dashoffset: 0; }

.onDark .tenets, .onDark .pillars { background: var(--line-dark-soft); border-color: var(--line-dark-soft); }
.onDark .tenet, .onDark .pillar { background: var(--ink); }
.onDark .tenet:hover, .onDark .pillar:hover { background: var(--ink-2); }
.onDark .tenet__arc, .onDark .pillar .tenet__arc { color: var(--green); }

/* ==========================================================================
   Signature — the bearing split
   ========================================================================== */
.split {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: var(--ink);
  isolation: isolate;
  overflow: clip;
}
.split__half {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path .9s var(--e-in-out);
}
.split__half--b { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }

.split.is-in .split__half--a { clip-path: polygon(0 0, var(--bear-top) 0, var(--bear-bot) 100%, 0 100%); }
.split.is-in .split__half--b { clip-path: polygon(var(--bear-top) 0, 100% 0, 100% 100%, var(--bear-bot) 100%); }

.split.is-in.on-a .split__half--a { clip-path: polygon(0 0, 78% 0, 50% 100%, 0 100%); }
.split.is-in.on-a .split__half--b { clip-path: polygon(78% 0, 100% 0, 100% 100%, 50% 100%); }
.split.is-in.on-b .split__half--a { clip-path: polygon(0 0, 50% 0, 22% 100%, 0 100%); }
.split.is-in.on-b .split__half--b { clip-path: polygon(50% 0, 100% 0, 100% 100%, 22% 100%); }

.split__seam {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--green);
  pointer-events: none;
  clip-path: polygon(50% 0, calc(50% + 1.5px) 0, calc(50% + 1.5px) 100%, 50% 100%);
  transition: clip-path .9s var(--e-in-out), opacity .5s ease;
  opacity: 0;
}
.split.is-in .split__seam {
  opacity: 1;
  clip-path: polygon(var(--bear-top) 0, calc(var(--bear-top) + 1.5px) 0, calc(var(--bear-bot) + 1.5px) 100%, var(--bear-bot) 100%);
}
.split.is-in.on-a .split__seam { clip-path: polygon(78% 0, calc(78% + 1.5px) 0, calc(50% + 1.5px) 100%, 50% 100%); }
.split.is-in.on-b .split__seam { clip-path: polygon(50% 0, calc(50% + 1.5px) 0, calc(22% + 1.5px) 100%, 22% 100%); }

.split__media { position: absolute; inset: 0; }
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--e-out), opacity .6s ease;
  opacity: .85;
}
.split__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(11,18,38,.9) 0%, rgba(11,18,38,.42) 52%, rgba(11,18,38,.16) 100%);
}
.split__half--b .split__media::after {
  background: linear-gradient(338deg, rgba(11,18,38,.9) 0%, rgba(11,18,38,.42) 52%, rgba(11,18,38,.16) 100%);
}
.split__half:hover .split__media img { transform: scale(1.1); opacity: 1; }
.split.on-b .split__half--a .split__media img,
.split.on-a .split__half--b .split__media img { opacity: .5; }

.split__content {
  position: absolute;
  z-index: 2;
  max-width: 30ch;
  padding: clamp(28px, 4vw, 64px);
}
.split__content .label { margin-bottom: 2px; color: rgba(255, 255, 255, .74); }
.split__half--a .split__content { top: calc(var(--nav-h) + 8px); left: var(--gutter); }
.split__half--b .split__content { bottom: clamp(40px, 6vw, 88px); right: var(--gutter); text-align: right; }
.split__half--b .split__content .tlink { flex-direction: row; }

.split__name {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  margin-block: 16px 14px;
}
.split__tag { color: rgba(255, 255, 255, .8); margin-bottom: 26px; }

/* ==========================================================================
   Feature (division) blocks
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(80px, 10vw, 150px);
  padding-inline: var(--gutter);
  max-width: var(--wrap);
  margin-inline: auto;
}
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; overflow: hidden; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__body { max-width: 46ch; }

.lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lockup img { width: 34px; }
.lockup__mark { color: var(--navy); }
.onDark .lockup__mark { color: #fff; }
.lockup__text { display: flex; flex-direction: column; line-height: 1.15; }
.lockup__a { font-family: var(--display); font-weight: 600; letter-spacing: .1em; font-size: 15px; }
.lockup__b { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); }
.onDark .lockup__b { color: var(--green); }

.feature__quote { margin-bottom: 22px; }
.feature__cta { margin-top: 32px; }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement {
  position: relative;
  padding-block: clamp(110px, 15vw, 210px);
  overflow: clip;
}
.statement__arc {
  position: absolute;
  top: 50%; left: 50%;
  width: min(58vw, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: currentColor;
  opacity: .06;
  pointer-events: none;
}
.statement__text { position: relative; text-align: center; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 20px);
  padding-inline: var(--gutter);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 56px);
}
.gallery__col { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.gallery figure { overflow: hidden; }
.gallery__col figure { min-height: 0; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery > figure img { aspect-ratio: 3 / 4; }
.gallery__col figure img { aspect-ratio: auto; height: 100%; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__head { max-width: 18ch; }
.contact__rows { margin-top: clamp(44px, 6vw, 76px); border-top: 1px solid var(--line-dark-soft); }
.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  color: #fff;
  border-bottom: 1px solid var(--line-dark-soft);
  transition: padding-inline-start .4s var(--e-out), color .3s ease;
}
.contact__row:hover { padding-inline-start: 14px; }
.contact__row-mail {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .3s ease;
}
.contact__row:hover .contact__row-mail { color: var(--green); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark-soft);
}
.footer__lead { max-width: 34ch; display: grid; gap: 18px; justify-items: start; }
.footer__blurb { font-size: 14px; line-height: 1.6; }
.footer__nav { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 88px); }
.footer__col { display: grid; gap: 12px; }
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, .72); transition: color .25s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.footer__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__divider { width: 1px; height: 12px; background: var(--line-dark); }
.footer__credit {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.footer__credit-by { color: var(--slate-soft); }
.footer__credit-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 2px;
}
.footer__credit-name::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .32s var(--e-out);
}
.footer__credit:hover .footer__credit-name { color: var(--green); }
.footer__credit:hover .footer__credit-name::after { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .spec { grid-template-columns: 1fr; }
  .tenets, .pillars { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .thesis { grid-template-columns: 1fr; }
  .thesis__note { margin-top: 22px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .split { height: auto; min-height: 0; }
  .split__half {
    position: relative;
    inset: auto;
    clip-path: none !important;
    min-height: 62svh;
    display: flex;
  }
  .split__seam { display: none; }
  .split__content {
    position: relative;
    inset: auto !important;
    align-self: flex-end;
    text-align: left !important;
    padding: var(--gutter);
    max-width: none;
  }
  .split__half--b .split__content .tlink { flex-direction: row; }
  .split__media img { opacity: .42 !important; }

  .gallery { grid-template-columns: 1fr; }
  .gallery > figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .contact__row { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-r] { transform: none; }
  .js .rise > span { transform: none; }
  .js [data-veil] img { clip-path: none; }
  .split__half { clip-path: none !important; }
  .split { height: auto; }
  .split__half { position: relative; inset: auto; min-height: 60svh; display: flex; }
  .split__content { position: relative; inset: auto !important; align-self: flex-end; }
  .split__seam { display: none; }
  .tenet__arc circle, .pillar .tenet__arc circle { stroke-dashoffset: 0; }
  .hero__bg img { animation: none; transform: none; }
}

/* No-JS */
html:not(.js) .curtain { display: none; }
