/* CLIS — Creating Life In Spaces
   Brand: sage #718385, white mark, Julius Sans One wordmark (from the Figma cover). */

:root {
  --sage: #718385;
  --sage-deep: #617476;
  --sage-soft: #a9b6b6;
  --ink: #1b2425;
  --ink-2: #263233;
  --bone: #f2eee7;
  --stone: #e7e1d6;
  --mustard: #d6a646;
  --wa: #25d366;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-brand: "Julius Sans One", "Hanken Grotesk", sans-serif;
  --f-sign: "Mrs Saint Delafield", cursive;

  --pad: clamp(18px, 3.2vw, 44px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, address { margin: 0; padding: 0; font: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--sage); color: #fff; }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

.wrap { padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Brand pieces ---------- */
.mark {
  display: inline-block;
  width: 34px;
  aspect-ratio: 154.533 / 122.339;
  background: currentColor;
  -webkit-mask: url("../assets/brand/clis-mark.svg") center / contain no-repeat;
  mask: url("../assets/brand/clis-mark.svg") center / contain no-repeat;
  flex: none;
}
.mark--lg { width: clamp(54px, 6vw, 84px); }
.mark--xl { width: clamp(96px, 13vw, 156px); }

.wordmark {
  font-family: var(--f-brand);
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: .04em;
}
.wordmark b { font-weight: inherit; }
.wordmark--sm { font-size: .62rem; letter-spacing: .06em; }

.eyebrow {
  font-family: var(--f-brand);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  padding: .14em .62em .1em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-brand);
  font-size: .68rem;
  letter-spacing: .06em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.tag-row { display: flex; align-items: center; gap: 10px; }

.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.6vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 60;
}
.display em { font-variation-settings: "SOFT" 100; letter-spacing: -.04em; }
.display--sm { font-size: clamp(2.3rem, 4.6vw, 4.4rem); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: .95rem;
}
.link > span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .5s var(--ease);
}
.link:hover > span:first-child { background-size: 0 1px; background-position: 100% 100%; }
.link__dot, .talk__dot {
  display: grid;
  place-items: center;
  width: 30px; height: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  transition: transform .5s var(--ease);
}
.link__dot svg, .talk__dot svg { width: 12px; height: 12px; }
.link:hover .link__dot, .talk:hover .talk__dot { transform: translateX(5px); }
.link--light .link__dot, [data-theme="dark"] .link__dot, [data-theme="sage"] .link__dot { background: var(--bone); color: var(--ink); }

/* ---------- Opening curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--sage);
  color: #fff;
  animation: curtain-up 1s var(--ease-io) 1.55s forwards;
}
.curtain__lockup {
  display: flex; align-items: flex-end; gap: clamp(16px, 2.6vw, 34px);
  animation: lockup-in .9s var(--ease) .1s both;
}
.curtain .wordmark { padding-bottom: .1em; }
@keyframes lockup-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes curtain-up {
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
.curtain { clip-path: inset(0 0 0 0); }

.curtain::before, .process::before, .footer::before, .statement::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/brand/grain.png") 0 0 / 220px;
  opacity: .08;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--pad);
  color: #fff;
  transition: color .4s ease;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header[data-tone="light"] { color: var(--ink); }
.site-header__left, .site-header__right {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(27, 36, 37, .22);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background .4s ease;
}
.site-header[data-tone="light"] .site-header__left,
.site-header[data-tone="light"] .site-header__right { background: rgba(242, 238, 231, .72); }
.site-header__left { display: flex; align-items: center; gap: 6px; justify-self: start; }
.site-header__tz { font-family: var(--f-brand); font-size: .68rem; letter-spacing: .1em; margin-left: 4px; }
.site-header__right { display: flex; align-items: center; justify-self: end; gap: clamp(14px, 2vw, 28px); padding-left: 18px; }
.nav-link { font-size: .9rem; font-weight: 500; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.talk { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.talk > span:first-child { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.talk__dot { background: #fff; color: var(--ink); }
.site-header[data-tone="light"] .talk__dot { background: var(--ink); color: var(--bone); }

.logo-chip {
  display: flex; align-items: flex-end; gap: 9px;
  padding: 9px 13px 8px;
  background: var(--sage);
  color: #fff;
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(27, 36, 37, .18);
  transition: transform .5s var(--ease);
}
.logo-chip:hover { transform: translateY(-2px); }
.logo-chip .mark { width: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  perspective: 1400px;
}
.hero__stage {
  position: absolute; inset: 0;
  transform: scale(1.07) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.hero__slide { position: absolute; inset: 0; visibility: hidden; z-index: 1; }
.hero__slide.is-active { visibility: visible; z-index: 2; }
.hero__slide.is-entering { visibility: visible; z-index: 3; animation: arch-in 1.7s var(--ease-io) both; }
.hero__slide img, .hero__slide video, .hero__slide picture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__slide img { animation: none; }
.hero__slide.is-active img, .hero__slide.is-entering img { animation: drift 9s linear both; }
.hero__slide video { opacity: 0; transition: opacity .8s ease; }
.hero__slide video.is-playing { opacity: 1; }
/* each project arrives through an arch, the shape inside the CLIS mark */
@keyframes arch-in {
  0%   { clip-path: inset(100% 39% 0 39% round 50vw 50vw 0 0); }
  42%  { clip-path: inset(16% 31% 0 31% round 50vw 50vw 0 0); }
  100% { clip-path: inset(0 0 0 0 round 0 0 0 0); }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero__shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 28, 29, .46) 0%, rgba(20, 28, 29, 0) 26%),
    linear-gradient(0deg, rgba(20, 28, 29, .78) 0%, rgba(20, 28, 29, .18) 46%, rgba(20, 28, 29, 0) 66%);
}
.hero__content {
  position: absolute; z-index: 5;
  left: var(--pad); right: var(--pad);
  bottom: clamp(26px, 5.5vh, 60px);
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: clamp(12px, 2vh, 22px); animation: fade-up 1s var(--ease) 2.1s both; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 10.4vw, 10.4rem);
  line-height: .9;
  letter-spacing: -.045em;
  font-variation-settings: "SOFT" 70;
}
.hero__title em { font-variation-settings: "SOFT" 100; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; animation: rise 1.25s var(--ease) both; animation-delay: 1.95s; }
.line:nth-child(2) > span { animation-delay: 2.08s; }
@keyframes rise { from { transform: translateY(112%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.hero__reel {
  position: absolute; z-index: 5;
  right: var(--pad);
  bottom: clamp(30px, 6.2vh, 66px);
  width: min(300px, 26vw);
  display: grid; gap: 10px;
  animation: fade-up 1s var(--ease) 2.3s both;
}
.hero__count { display: flex; gap: 6px; }
.hero__caption { display: grid; gap: 2px; min-height: 3.1em; }
.hero__caption strong { font: 400 1.35rem/1.15 var(--f-display); letter-spacing: -.01em; }
.hero__caption span { font-size: .84rem; opacity: .82; }
.hero__caption.is-swapping > * { animation: fade-up .7s var(--ease) both; }
.hero__ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.hero__ticks i { position: relative; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__ticks i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__ticks i.is-done::after { transform: scaleX(1); }
.hero__ticks i.is-on::after { animation: tick var(--tick, 6s) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; z-index: 5; right: var(--pad); top: 50%;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-brand); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  animation: fade-up 1s var(--ease) 2.5s both;
}
.hero__scroll i { width: 1px; height: 34px; background: rgba(255, 255, 255, .4); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Statement ---------- */
.statement {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bone);
  padding-block: clamp(96px, 15vw, 220px);
}
.statement__pattern {
  position: absolute; right: -6%; top: -18%; height: 136%; width: auto; max-width: none;
  opacity: .55; pointer-events: none;
}
.statement__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.statement__grid > .eyebrow { grid-column: 1 / span 3; padding-top: .7em; color: var(--sage-soft); }
.statement__grid > div { grid-column: 5 / span 7; }
.statement__text {
  font: 300 clamp(1.5rem, 3.15vw, 3.05rem)/1.16 var(--f-display);
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 60;
  margin-bottom: clamp(26px, 4vw, 48px);
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 90px);
}
.section-head > .display { grid-column: 1 / span 7; }
.section-head__aside { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.section-head__aside p { max-width: 38ch; }

/* ---------- Founder ---------- */
.founder { padding-block: clamp(84px, 11vw, 170px) clamp(70px, 9vw, 130px); }
.founder .tag-row { margin-bottom: 22px; }
.founder__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.founder__portrait { grid-column: 1 / span 5; position: sticky; top: 92px; }
.founder__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); border-radius: 2px; }
.founder__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.founder__portrait:hover .founder__frame img { transform: scale(1); }
.founder__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20, 28, 29, .72), rgba(20, 28, 29, 0) 42%);
}
.founder__portrait figcaption {
  position: absolute; left: clamp(16px, 2vw, 26px); right: clamp(16px, 2vw, 26px); bottom: clamp(14px, 2vw, 24px);
  display: grid; color: #fff;
}
.founder__role { font-size: .86rem; opacity: .85; }
.founder__name { font-size: 1.12rem; font-weight: 500; }
.founder__sign {
  font: 400 clamp(3rem, 5vw, 4.6rem)/.8 var(--f-sign);
  margin-top: 10px; transform: rotate(-4deg); transform-origin: left;
}
.founder__story { grid-column: 7 / span 6; display: grid; gap: 22px; padding-top: 6px; }
.founder__story > p:not(.lede) { max-width: 54ch; color: #3d4a4b; }
.lede {
  font: 300 clamp(1.4rem, 2.25vw, 2.1rem)/1.2 var(--f-display);
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 60;
}
.timeline { margin-top: clamp(18px, 3vw, 40px); border-bottom: 1px solid rgba(27, 36, 37, .16); }
.timeline li {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(27, 36, 37, .16);
}
.timeline__n { font: italic 300 1.25rem/1.2 var(--f-display); color: var(--sage-deep); }
.timeline h3 { font-family: var(--f-brand); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.timeline p { color: #4b5859; max-width: 48ch; }

/* ---------- Band ---------- */
.band { padding-block: clamp(70px, 10vw, 150px); text-align: center; border-top: 1px solid rgba(27, 36, 37, .12); }
.band__kicker { font-weight: 500; font-size: clamp(1.05rem, 2.5vw, 2.2rem); letter-spacing: -.01em; margin-bottom: .35em; }
.band__line {
  font: 300 clamp(1.6rem, 3.9vw, 3.7rem)/1.08 var(--f-display);
  letter-spacing: -.028em; font-variation-settings: "SOFT" 70;
  max-width: 22ch; margin-inline: auto;
}

/* ---------- Projects: sticky stack ---------- */
.projects { position: relative; background: var(--ink); }
.project {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 540px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.project + .project { box-shadow: 0 -34px 70px rgba(10, 14, 15, .45); }
.project__media {
  position: absolute; inset: 0;
  transform: scale(calc(1.03 + var(--cover, 0) * .07));
  filter: brightness(calc(1 - var(--cover, 0) * .55));
  will-change: transform, filter;
}
.project__media picture, .project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__media img { transform: translateY(calc((1 - var(--enter, 1)) * -7%)) scale(1.08); }
.project::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 28, 29, .4), rgba(20, 28, 29, 0) 24%),
    linear-gradient(0deg, rgba(20, 28, 29, .84), rgba(20, 28, 29, .24) 44%, rgba(20, 28, 29, 0) 64%);
}
.project__info {
  position: absolute; z-index: 2;
  left: var(--pad); right: var(--pad); bottom: clamp(28px, 6.5vh, 70px);
  display: grid; grid-template-columns: 1fr minmax(260px, 31%);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.project__count { display: flex; gap: 6px; margin-bottom: 14px; }
.project__title {
  font: 300 clamp(2.7rem, 7.2vw, 7.2rem)/.94 var(--f-display);
  letter-spacing: -.04em; font-variation-settings: "SOFT" 70;
  margin-bottom: 18px;
}
.project__meta { font-size: .9rem; line-height: 1.4; opacity: .88; }
.project__note { position: relative; display: grid; gap: 14px; justify-items: start; }
.project__mark { font: 400 3.2rem/.5 var(--f-display); height: 18px; }
.project__note p { font-size: 1.02rem; line-height: 1.42; }
.project__note footer { font-size: .8rem; line-height: 1.35; font-weight: 500; }
.project__note footer span { font-weight: 400; opacity: .75; }
.project__note .link { font-size: .86rem; margin-top: 4px; }

/* ---------- Services ---------- */
.services { position: relative; background: var(--ink); color: var(--bone); padding-block: clamp(80px, 11vw, 160px); }
.services .tag-row { margin-bottom: 26px; color: var(--sage-soft); }
.services__list { border-bottom: 1px solid rgba(242, 238, 231, .16); }
.service {
  display: grid; grid-template-columns: 5rem minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px; align-items: baseline;
  padding: clamp(20px, 2.8vw, 38px) 0;
  border-top: 1px solid rgba(242, 238, 231, .16);
  transition: opacity .45s ease, padding-left .6s var(--ease);
}
.service__n { font-family: var(--f-brand); font-size: .74rem; letter-spacing: .14em; color: var(--sage-soft); }
.service__name {
  font: 300 clamp(2.3rem, 6.4vw, 6rem)/.98 var(--f-display);
  letter-spacing: -.04em; font-variation-settings: "SOFT" 70;
  transition: font-variation-settings .6s var(--ease), color .4s ease;
}
.service__text { max-width: 40ch; color: rgba(242, 238, 231, .78); }
@media (hover: hover) and (pointer: fine) {
  .services__list:hover .service { opacity: .38; }
  .services__list .service:hover { opacity: 1; padding-left: 18px; }
  .service:hover .service__name { font-style: italic; font-variation-settings: "SOFT" 100; color: #fff; }
}
.service-preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 240px; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0; overflow: hidden;
  pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.86);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.service-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.service-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process {
  position: relative; overflow: hidden;
  background: var(--sage-deep);
  color: #fff;
  padding-block: clamp(84px, 11vw, 170px);
}
.process__pattern {
  position: absolute; left: -8%; bottom: -30%; height: 120%; width: auto; max-width: none;
  opacity: .5; transform: scaleX(-1); pointer-events: none;
}
.process .wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { display: grid; gap: 14px; align-content: start; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .42); justify-items: start; }
.step h3 { font: 300 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 var(--f-display); letter-spacing: -.02em; margin-top: clamp(16px, 4vw, 64px); }
.step p { color: rgba(255, 255, 255, .9); max-width: 32ch; }

/* ---------- In good company ---------- */
.company { padding-block: clamp(84px, 11vw, 160px); overflow: hidden; }
.company__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.company__copy { grid-column: 1 / span 5; display: grid; gap: 22px; }
.company__copy p { max-width: 42ch; color: #3d4a4b; }
.company__wall {
  grid-column: 7 / span 6;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  height: clamp(380px, 46vw, 620px);
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.logo-col { min-height: 0; }
.logo-track { display: grid; gap: 14px; padding-bottom: 14px; animation: col-up var(--dur, 40s) linear infinite; }
.logo-col--rev .logo-track { animation-direction: reverse; }
.company__wall:hover .logo-track { animation-play-state: paused; }
@keyframes col-up { to { transform: translateY(-50%); } }
.logo-col:not(:has(.logo-track)) { display: grid; gap: 14px; align-content: start; }
.logo-tile {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--stone);
  color: rgba(27, 36, 37, .42);
  font-family: var(--f-brand); font-size: clamp(.62rem, .95vw, .82rem); letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px;
}
.glyph { display: block; background: currentColor; flex: none; }
.glyph--arch { width: 20px; height: 26px; border-radius: 10px 10px 0 0; }
.glyph--dot { width: 22px; height: 22px; border-radius: 50%; }
.glyph--half { width: 28px; height: 14px; border-radius: 14px 14px 0 0; }
.glyph--bar { width: 9px; height: 26px; box-shadow: 13px 0 0 currentColor; margin-right: 13px; }

/* ---------- Journal ---------- */
.journal { padding-block: clamp(40px, 6vw, 90px) clamp(84px, 11vw, 160px); }
.journal__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 54px); }
.journal__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: start; }
.post { display: grid; background: var(--stone); border-radius: 2px; overflow: hidden; }
.post__img { overflow: hidden; aspect-ratio: 4 / 3; }
.post--lead .post__img { aspect-ratio: 16 / 9.6; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 16px 16px 22px; display: grid; gap: 12px; }
.post__date { display: flex; gap: 5px; }
.post h3 { font-weight: 500; font-size: 1.02rem; line-height: 1.3; max-width: 30ch; }
.post--lead h3 { font-size: 1.2rem; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; justify-items: end; overflow: hidden; padding: 120px var(--pad); }
.cta__media, .cta__media picture, .cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__card {
  position: relative; width: min(600px, 100%);
  background: var(--bone); color: var(--ink);
  padding: clamp(26px, 3.6vw, 52px);
  border-radius: 2px;
  display: grid; gap: clamp(22px, 3vw, 36px);
}
.cta__text { font: 300 clamp(1.8rem, 3.5vw, 3.2rem)/1.08 var(--f-display); letter-spacing: -.03em; font-variation-settings: "SOFT" 70; }
.cta__text a { font-style: italic; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.cta__text a:hover { color: var(--sage-deep); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: transform .4s var(--ease), background .3s ease, color .3s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--ink); color: var(--bone); }
.btn--wa svg { color: var(--wa); }
.btn--ghost { border: 1px solid rgba(27, 36, 37, .3); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 5vw, 90px);
  padding: clamp(44px, 6vw, 84px) var(--pad) 22px;
}
.footer__brand {
  grid-row: 1 / span 2;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 20px;
  border-left: 1px solid rgba(242, 238, 231, .22);
  padding-left: clamp(14px, 2vw, 26px);
}
.footer__brand .mark { transform: rotate(90deg); }
.footer__word { font: 400 clamp(5rem, 13vw, 12.5rem)/.8 var(--f-brand); letter-spacing: .02em; }
.footer__main { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: end; padding-bottom: clamp(40px, 6vw, 90px); }
.footer__meter { display: flex; align-items: center; gap: 14px; align-self: end; }
.footer__thumb { width: 84px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; flex: none; }
.footer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer__meter p { display: grid; gap: 2px; font-size: .86rem; }
.footer__meter strong { font-weight: 500; font-size: 1rem; }
.footer__meter span[data-scroll-note] { opacity: .7; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.footer h4 { font-family: var(--f-brand); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-soft); margin: 22px 0 6px; }
.footer h4:first-child { margin-top: 0; }
.footer address, .footer__cols p { font-style: normal; font-size: .95rem; line-height: 1.45; }
.footer__cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__nav a { font: 300 clamp(1.5rem, 2.3vw, 2.1rem)/1.16 var(--f-display); letter-spacing: -.02em; }
.footer__nav a:hover { font-style: italic; text-decoration: none; }
.footer__base {
  grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: .74rem; opacity: .64; padding: 16px 190px 0 0; border-top: 1px solid rgba(242, 238, 231, .16);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--ink); color: var(--bone);
  border-radius: 999px;
  font-weight: 500; font-size: .92rem;
  box-shadow: 0 14px 40px rgba(10, 14, 15, .32), 0 0 0 1px rgba(242, 238, 231, .14);
  transform: translateY(140%); opacity: 0;
  transition: transform .7s var(--ease), opacity .4s ease;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float svg { width: 24px; height: 24px; color: var(--wa); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Journal article pages ---------- */
.article-hero { position: relative; height: 72vh; min-height: 420px; overflow: hidden; background: var(--ink); color: #fff; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 29, .45), rgba(20, 28, 29, 0) 30%), linear-gradient(0deg, rgba(20, 28, 29, .8), rgba(20, 28, 29, 0) 60%); }
.article-hero__inner { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 54px); display: grid; gap: 16px; }
.article-hero h1 { font: 300 clamp(2.2rem, 5.6vw, 5.2rem)/.98 var(--f-display); letter-spacing: -.035em; font-variation-settings: "SOFT" 70; max-width: 18ch; }
.article { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(50px, 8vw, 110px) var(--pad); }
.article__aside { grid-column: 1 / span 3; display: grid; gap: 10px; align-content: start; font-size: .88rem; color: #4b5859; position: sticky; top: 92px; }
.article__aside .eyebrow { color: var(--ink); }
.article__body { grid-column: 5 / span 7; max-width: 66ch; display: grid; gap: 1.25em; font-size: 1.08rem; line-height: 1.62; }
.article__body .lede { margin-bottom: .2em; }
.article__body h2 { font: 400 1.55rem/1.15 var(--f-display); letter-spacing: -.015em; margin-top: .9em; }
.article__body blockquote { font: italic 300 clamp(1.4rem, 2.3vw, 2rem)/1.2 var(--f-display); border-left: 2px solid var(--sage); padding-left: 20px; margin-block: .5em; }
.article__more { border-top: 1px solid rgba(27, 36, 37, .14); padding: clamp(40px, 6vw, 80px) var(--pad); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.article__more p { font: 300 clamp(1.5rem, 3vw, 2.6rem)/1.1 var(--f-display); letter-spacing: -.025em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-link { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .journal__grid { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-column: 1 / -1; }
  .footer__main { grid-template-columns: 1fr; }
  .footer__meter { order: 2; }
}

@media (max-width: 760px) {
  .site-header { padding-block: 12px; }
  .site-header__left .pill:first-child { display: none; }
  .logo-chip { padding: 8px 10px 7px; }
  .logo-chip .wordmark { display: none; }
  .talk { font-size: .86rem; }

  .hero__content { bottom: 138px; }
  .hero__title { font-size: clamp(3rem, 15.4vw, 5.4rem); }
  .hero__reel { left: var(--pad); right: var(--pad); width: auto; bottom: 30px; }
  .hero__caption { min-height: 0; }
  .hero__scroll { display: none; }
  .hero__stage { transform: scale(1.02); }

  .statement__grid, .section-head, .founder__body, .company__grid, .article { display: grid; grid-template-columns: 1fr; }
  .statement__grid > *, .section-head > *, .founder__body > *, .company__grid > *, .article > * { grid-column: 1 / -1 !important; }
  .statement__pattern { opacity: .3; right: -60%; }
  .section-head { gap: 22px; }
  .founder__portrait, .article__aside { position: relative; top: auto; }
  .founder__story { margin-top: 18px; }

  .project__info { grid-template-columns: 1fr; gap: 18px; bottom: 96px; }
  .project__mark, .project__note footer { display: none; }
  .project__note p { font-size: .96rem; max-width: 36ch; }
  .project__title { margin-bottom: 10px; }

  .service { grid-template-columns: 2.4rem 1fr; row-gap: 8px; }
  .service__text { grid-column: 2; }

  .steps { grid-template-columns: 1fr; row-gap: 34px; }
  .step h3 { margin-top: 6px; }
  .process__pattern { opacity: .28; }

  .company__wall { grid-template-columns: repeat(2, 1fr); height: 360px; margin-top: 12px; }
  .company__wall .logo-col:nth-child(3) { display: none; }

  .journal__head { flex-direction: column; align-items: flex-start; }
  .journal__grid { grid-template-columns: 1fr; }

  .cta { justify-items: stretch; align-items: end; padding: 200px var(--pad) 96px; }

  .footer { grid-template-columns: 1fr; padding-bottom: 96px; }
  .footer__brand { grid-row: auto; writing-mode: horizontal-tb; transform: none; border-left: 0; padding-left: 0; margin-bottom: 36px; align-items: flex-end; }
  .footer__brand .mark { transform: none; }
  .footer__word { font-size: 24vw; }
  .footer__base { grid-column: 1; padding-right: 0; }
  .footer__cols { grid-template-columns: 1fr; }

  .wa-float { left: 16px; right: 16px; justify-content: center; padding: 14px 18px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .article-hero { height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .logo-track { animation: none; }
  .hero__stage { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
