/* Home: statement hero, press, one card per project, closing contact. Shared base lives in styles.css. */
.home { --wrap: 1180px; --soft: #7b7f88; --spring: cubic-bezier(.22, 1.2, .36, 1); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

html:has(body.home) { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.home) { scroll-behavior: smooth; } }

/* ---------- Nav: sticky, frosted once the page moves (as on Odd Mac) ---------- */
.h-nav { position: sticky; top: 0; z-index: 40; }
.h-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(238, 240, 243, .72); box-shadow: 0 1px 0 var(--hair);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
}
@supports (animation-timeline: scroll()) {
  .h-nav::before { animation: nav-frost linear both; animation-timeline: scroll(); animation-range: 0 80px; }
  @keyframes nav-frost { from { opacity: 0; } }
}
.h-nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h-mark { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.h-mark-flag { display: block; width: 28px; height: 14px; flex: none; }
.h-nav-links { display: inline-flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 14px; color: var(--soft); }
.h-nav .contact-tab { position: static; height: 38px; padding: 0 16px; }

/* ---------- Hero ---------- */
.h-hero { position: relative; isolation: isolate; padding: clamp(72px, 9.5vw, 140px) 0 0; text-align: center; }
.h-title { margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; }
/* a band of light sweeps across the headline as it loads, like Claude's thinking label */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .h-title {
    /* room below the line so descenders keep the clipped fill */
    padding-bottom: .12em; margin-bottom: -.12em;
    background: linear-gradient(90deg, var(--ink) 44%, #aeb2ba 50%, var(--ink) 56%) 0 0 / 300% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.h-cta .w { display: inline-block; }

/* press: where the projects have been covered, in quiet grey */
.h-press { margin-top: clamp(44px, 4.6vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.h-press p { margin: 0; font-size: 13px; color: var(--soft); }
.h-press ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 18px clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.h-press img { height: calc(var(--h) * 1.18); width: auto; filter: brightness(0); opacity: .42; transition: opacity .4s; }
.h-press li:hover img { opacity: .7; }

/* ---------- Work ---------- */
.h-work { padding-top: clamp(64px, 7.5vw, 112px); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.card {
  --fg: var(--ink); --sub: rgba(21, 22, 26, .58); --chip: rgba(255, 255, 255, .72);
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(470px, 42vw, 580px); border-radius: 34px; overflow: hidden; isolation: isolate;
  color: var(--fg); background: var(--tile);
  transition: box-shadow .8s var(--ease), transform .8s var(--ease);
}
a.card:hover { box-shadow: 0 40px 80px -48px rgba(20, 22, 30, .6); transform: translateY(-2px); }
a.card:active { transform: scale(.995); }
/* a soft light that follows the pointer across each card */
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(255, 255, 255, .5)), transparent 60%);
}
a.card:hover::after { opacity: 1; }
.c-quittr, .c-vybes { --spot: rgba(120, 140, 255, .14); }
.c-text { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3.2vw, 44px); }
.c-id { display: flex; align-items: center; gap: 14px; }
.c-icon { width: 52px; height: 52px; border-radius: 23%; overflow: hidden; flex: none; transition: transform .8s var(--spring); }
.c-icon img { width: 100%; height: 100%; }
a.card:hover .c-icon { transform: scale(1.04) rotate(-2deg); }
.c-name { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.c-role { display: block; margin-top: 2px; font-size: 14px; color: var(--sub); }
.c-desc { margin-top: auto; padding-top: 48px; max-width: 15em; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }
.c-stats { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 2.6vw, 36px); font-size: 13px; color: var(--sub); }
.c-stats > span { display: grid; gap: 6px; max-width: 13ch; line-height: 1.3; }
.c-stats b { font-variant-numeric: tabular-nums; font-size: clamp(28px, 2.7vw, 38px); line-height: .9; font-weight: 500; letter-spacing: -.055em; color: var(--fg); }
.c-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-tags > span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 99px; background: var(--chip); font-size: 13px; color: var(--sub); white-space: nowrap; }
.c-go { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.c-go svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
a.card:hover .c-go svg { transform: translateX(5px); }
.c-art { position: relative; z-index: 1; min-height: 100%; }
.c-art > * { position: absolute; }

/* QUITTR: black, the orb's glow, the phone in hand */
.c-quittr { --fg: #fff; --sub: rgba(255, 255, 255, .56); background: #000; }
.c-quittr .c-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.cq-glow {
  left: 46%; top: 44%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, #2f6bff, #22c3ee, #5b5bff, #8a5cff, #1fb8a6, #2f6bff);
  filter: blur(80px) saturate(1.1); opacity: .3; animation: c-spin 18s linear infinite;
}
.cq-glow2 {
  left: 50%; top: 48%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(40% 40% at 30% 35%, rgba(70, 90, 255, .8), transparent 70%), radial-gradient(38% 38% at 70% 30%, rgba(34, 195, 238, .6), transparent 70%), radial-gradient(40% 40% at 55% 72%, rgba(120, 80, 255, .6), transparent 70%);
  filter: blur(60px); opacity: .3; transition: opacity 1s var(--ease);
}
a.c-quittr:hover .cq-glow2 { opacity: .5; }
.cq-hand { right: -4%; bottom: 0; height: 96%; width: auto; max-width: none; transform-origin: 70% 100%; transition: transform 1.1s var(--ease); }
a.c-quittr:hover .cq-hand { transform: translateY(-5px) rotate(-.75deg); }
@keyframes c-spin { to { rotate: 360deg; } }

/* Odd Mac: light, pastel, real windows over a dock */
.c-oddmac { background: #f4f5fa; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.c-oddmac .c-icon { box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.co-wall {
  inset: 0 0 0 -70%; pointer-events: none;
  background: radial-gradient(34% 44% at 34% 104%, rgba(255, 176, 103, .5), transparent 70%),
              radial-gradient(34% 44% at 62% 108%, rgba(185, 162, 255, .55), transparent 70%),
              radial-gradient(34% 44% at 90% 102%, rgba(127, 200, 240, .55), transparent 70%),
              radial-gradient(22% 30% at 96% 4%, rgba(240, 123, 192, .14), transparent 70%);
}
.co-win { height: auto; border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 24px 50px -20px rgba(20, 22, 40, .45); transition: transform 1.1s var(--ease); }
.co-w1 { width: 46%; left: 1%; top: 21%; }
.co-w2 { width: 41%; left: 30%; top: 11%; z-index: 2; }
.co-w3 { width: 35%; right: 2%; top: 19%; }
a.c-oddmac:hover .co-w1 { transform: translate(-4px, -2px) rotate(-.5deg); }
a.c-oddmac:hover .co-w2 { transform: translateY(-5px); }
a.c-oddmac:hover .co-w3 { transform: translate(4px, -2px) rotate(.5deg); }
.co-dock {
  --sz: clamp(28px, 3vw, 42px); z-index: 3; width: max-content; left: 50%; bottom: clamp(18px, 2vw, 26px); translate: -50% 0;
  display: flex; align-items: flex-end; gap: calc(var(--sz) * .14); padding: calc(var(--sz) * .16);
  border-radius: calc(var(--sz) * .42); background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 30px -16px rgba(30, 30, 60, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.co-dock img { width: var(--sz); height: var(--sz); transform-origin: 50% 100%; transition: transform .45s var(--spring), margin .45s var(--spring); }
.co-dock img:hover { transform: scale(1.5); margin: 0 calc(var(--sz) * .26); }
.co-dock img:has(+ img:hover), .co-dock img:hover + img { transform: scale(1.22); margin: 0 calc(var(--sz) * .1); }

/* VYBES: near-black, navy glow, the redesign on two phones */
.c-vybes { --fg: #fff; --sub: rgba(255, 255, 255, .56); --chip: rgba(255, 255, 255, .1); background: #05060b; }
.c-vybes .c-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.cv-glow { inset: -30% -20% 0 -60%; pointer-events: none;
  background: radial-gradient(40% 46% at 72% 18%, rgba(44, 58, 150, .85), rgba(28, 36, 86, .4) 55%, transparent 75%),
              radial-gradient(26% 30% at 52% 62%, rgba(98, 114, 255, .25), rgba(233, 70, 255, .06) 60%, transparent 80%);
  filter: blur(20px); }
.cv-phone {
  width: 37%; aspect-ratio: 900 / 1949; padding: 1.4%; border-radius: 15% / 7%; background: #0c0c10;
  box-shadow: inset 0 0 0 1.5px #2b2c33, 0 0 0 1px #000, 0 40px 80px -30px rgba(0, 0, 0, .8);
  transition: transform 1.1s var(--ease);
}
.cv-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.6% / 6.3%; }
.cv-p1 { left: 10%; top: 13%; }
.cv-p2 { left: 52%; top: 22%; }
a.c-vybes:hover .cv-p1 { transform: translateY(-6px) rotate(-.75deg); }
a.c-vybes:hover .cv-p2 { transform: translateY(-3px) rotate(.75deg); }

/* GrainOS: white, three prints shot on the app fanned on the table; they spread on hover */
.c-grainos { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); --spot: rgba(250, 199, 97, .1); }
.c-grainos .c-icon { box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.c-tags .is-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: rec 2s ease-out infinite; }
.cc-print {
  --r: 0deg; width: 34%; aspect-ratio: 3 / 4; padding: clamp(5px, .55vw, 8px); border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 2px 6px rgba(20, 22, 30, .05), 0 34px 60px -28px rgba(20, 22, 30, .38);
  rotate: var(--r); transition: transform 1.1s var(--spring), rotate 1.1s var(--spring);
}
.cc-print img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.cc-p1 { --r: -8deg; left: 9%; top: 19%; }
.cc-p2 { --r: 1.5deg; width: 38%; left: 33%; top: 11%; z-index: 2; }
.cc-p3 { --r: 9deg; left: 58%; top: 21%; width: 32%; }
a.c-grainos:hover .cc-p1 { transform: translate(-16px, 4px); rotate: -12deg; }
a.c-grainos:hover .cc-p2 { transform: translateY(-10px); rotate: 0deg; }
a.c-grainos:hover .cc-p3 { transform: translate(16px, 6px); rotate: 13deg; }
/* a tap-to-focus square lands on the top print as you hover */
.cc-focus { position: absolute; left: 50%; top: 44%; width: 26%; translate: -50% -50%; opacity: 0; scale: 1.5; transition: opacity .3s, scale .5s var(--spring); }
a.c-grainos:hover .cc-focus { opacity: 1; scale: 1; transition-delay: .25s; }

/* ---------- Closing ---------- */
.h-cta { padding: clamp(112px, 14vw, 184px) 0 clamp(80px, 10vw, 120px); text-align: center; }
.h-cta h2 { margin: 0; font-size: clamp(40px, 5.6vw, 80px); line-height: .98; font-weight: 500; letter-spacing: -.058em; }
.h-cta-row { margin-top: clamp(28px, 3vw, 40px); display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 99px; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover svg { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 22, 30, .06); padding-right: 8px; }
.btn-light em { font-style: normal; display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 99px; background: #f0f2f5; font-size: 13px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--hair); color: var(--soft); font-size: 13px; }
.foot-links { display: inline-flex; gap: 20px; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Arrival ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
/* the nav only fades: a filter on it would cut its frosted glass off from the page behind */
.js .h-nav-in { animation: fade-in .8s var(--ease) both; }
.js .h-title { animation: rise 1s var(--ease) both, shimmer 1.8s ease-in-out .25s 2 backwards; }
.js .h-press li { animation: rise .9s var(--ease) both; animation-delay: calc(.36s + var(--n, 0) * .06s); }
.js .h-press p { animation: rise .9s var(--ease) .3s both; }
.h-press li:nth-child(2) { --n: 1; } .h-press li:nth-child(3) { --n: 2; } .h-press li:nth-child(4) { --n: 3; } .h-press li:nth-child(5) { --n: 4; }
/* the closing line writes itself in as it scrolls into view */
.js .h-cta .w { opacity: 0; transform: translateY(.35em); filter: blur(8px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * .06s); }
.js .h-cta.in .w { opacity: 1; transform: none; filter: none; }
.js .h-cta-row { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .4s, transform 1s var(--ease) .4s; }
.js .h-cta.in .h-cta-row { opacity: 1; transform: none; }
/* scroll-linked: each card settles from slightly smaller as it enters, and its art drifts against the scroll */
@supports (animation-timeline: view()) {
  .js .card { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes settle { from { scale: .94; } }
  .js .cq-hand, .js .co-win, .js .cv-phone, .js .cc-print { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
  .js .co-w2, .js .cv-p2, .js .cc-p2 { animation-name: parallax-far; }
  @keyframes parallax { from { translate: 0 36px; } to { translate: 0 -36px; } }
  @keyframes parallax-far { from { translate: 0 64px; } to { translate: 0 -64px; } }
}
.js .cards > li { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .cards > li.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .co-dock { --sz: clamp(22px, 3.2vw, 32px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .card { grid-template-columns: 1fr; min-height: 0; border-radius: 28px; }
  .c-text { padding: 24px 24px 0; }
  .c-desc { padding-top: 40px; font-size: 27px; }
  .c-art { min-height: 0; height: 340px; }
  .cq-hand { right: -10%; height: 100%; }
  .cq-glow { left: 60%; }
  .co-w1 { width: 44%; left: -4%; top: 14%; }
  .co-w2 { width: 40%; left: 30%; top: 6%; }
  .co-w3 { width: 36%; right: -4%; top: 16%; }
  .co-dock { --sz: min(24px, calc((100vw - 110px) / 12 / 1.14)); }
  .cv-phone { width: 44%; }
  .cv-p1 { left: 6%; top: 10%; }
  .cv-p2 { left: 52%; top: 18%; }
  .cc-print { width: 38%; }
  .cc-p1 { left: 4%; top: 16%; }
  .cc-p2 { width: 42%; left: 29%; top: 8%; }
  .cc-p3 { width: 36%; left: 60%; top: 18%; }
  .h-press { gap: 18px; }
  .h-press ul { gap: 18px 30px; }
  .foot { flex-wrap: wrap; }
  .foot .loc { width: 100%; order: -1; }
}
@media (max-width: 520px) {
  .h-hero { padding-top: 100px; }
  .h-title { font-size: clamp(30px, 8.6vw, 40px); }
  .h-press img { height: calc(var(--h) * .82); }
  .c-art { height: 300px; }
  .btn-light span { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
  .h-nav-in { height: 60px; }
  .h-nav .contact-tab { height: 36px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cards > li, .js .h-cta .w, .js .h-cta-row { opacity: 1; transform: none; filter: none; }
}
