/* Jack Nicholson — portfolio styles.
   Rebuilt from the Framer site. Breakpoints match Framer's:
     phone  < 810px
     tablet 810px – 1199px
     desktop 1200px – 1919px (the default below)
     large  ≥ 1920px
*/

@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --white: #fff;
  --black: #000;
  --muted: #ffffffa6;      /* white at 65% */
  --line: #ffffff1a;       /* white at 10% */
  --chip: #0d0d0d;
  --label: #b8b8b8;
  --desc: #858585;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --inter: "Inter", system-ui, sans-serif;
  --satoshi: "Satoshi", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  /* Springs. app.js replaces these with exact spring curves where the browser supports linear(). */
  --spring-snappy: cubic-bezier(0.25, 1, 0.5, 1);
  --spring-snappy-ms: 600ms;
  --ease-link: cubic-bezier(1, 0.17, 0.16, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Text styles (Framer presets) --------------------------------------------- */
.t-label { font: 400 15px/1.5 var(--inter); letter-spacing: -0.02em; color: var(--muted); text-align: center; }
.t-small { font: 500 14px/1.5 var(--display); letter-spacing: -0.02em; color: var(--muted); }
.t-h4 { font: 600 24px/1.4 var(--display); color: var(--white); }
.t-body { font: 400 18px/1.6 var(--display); color: var(--white); }
.t-h3 { font: 500 36px/1.2 var(--satoshi); letter-spacing: -0.01em; color: var(--white); }

/* Text that stretches to fill its box, like Framer's "fit" text. --vbw/--vbh is the
   box's shape and --fs the font size it was designed at. */
.fit { display: block; container-type: inline-size; width: 100%; aspect-ratio: var(--vbw) / var(--vbh); position: relative; }
.fit > .fit-text { display: block; font-size: calc(100cqw * var(--fs) / var(--vbw)); line-height: 1; white-space: nowrap; }

/* Page --------------------------------------------------------------------- */
.page { position: relative; display: flex; flex-direction: column; align-items: center; background: var(--black); overflow: clip; }
.home { width: 100%; display: flex; flex-direction: column; align-items: center; background: var(--black); }

/* Navigation --------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 5;
  mix-blend-mode: difference; pointer-events: none;
}
.nav-bar { display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 20px; }
.nav-content { position: relative; flex: 1 0 0; width: 1px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-title {
  pointer-events: auto; z-index: 1; color: var(--white);
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  transform-origin: 0 0;
}
.nav-title .fit-text { text-align: center; }
/* Framer centres the name together with an empty 10px slot, which nudges it 5px left. */
.nav[data-state="big"] .nav-title { position: absolute; left: -5px; right: 5px; top: 70px; }
.nav[data-state="small"] .nav-title { position: relative; container-type: normal; aspect-ratio: auto; width: auto; }
.nav[data-state="small"] .nav-title .fit-text { font-size: 20px; text-align: left; }
.nav-links { display: flex; align-items: center; justify-content: space-between; flex: 1 0 0; width: 1px; overflow: hidden; }
.nav[data-state="small"] .nav-links { flex: none; width: auto; justify-content: flex-start; gap: 32px; }
.nav-link {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; height: 34px; padding: 6px 12px;
  font: 500 16px/1.5 var(--display); text-transform: uppercase; white-space: nowrap;
  color: var(--muted); transition: color var(--spring-snappy-ms) var(--spring-snappy);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--white); }
@media (max-width: 809.98px) {
  .nav[data-state="small"] .nav-content { overflow: hidden; }
  .nav[data-state="small"] .nav-links { flex: 0 1 auto; min-width: 0; }
}

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; z-index: 1; width: 100%; height: 100vh; padding: 60px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; overflow: hidden; }
.hero-head { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-main { position: relative; z-index: 1; width: 100%; height: 100vh; padding-bottom: 160px; display: flex; flex-direction: column; align-items: center; }
.hero-top { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.hero-trigger { width: 100%; height: 16vh; flex: none; }
.hero-copy { flex: 1 0 0; height: 1px; width: 100%; padding-bottom: 60px; display: flex; flex-direction: column; align-items: center; }
.tagline {
  flex: 1 0 0; width: 540px; max-width: 540px; height: 1px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 600 1.5rem/1.5em var(--display); letter-spacing: -0.02em; color: var(--white);
}
.tagline em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.tagline .word { display: inline-block; }
.scroll-hint { flex: none; width: 100%; max-width: 640px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.scroll-hint .t-label { white-space: nowrap; }
.scroll-hint-line { flex: 1 0 0; width: 1px; height: 1px; background: var(--white); opacity: 0.1; }
.scroll-hint-icon { flex: none; width: 25px; height: 100%; display: flex; align-items: center; }
.scroll-hint-icon svg { width: 25px; height: 25px; fill: var(--white); display: block; }
.mouse-bob { display: block; animation: mouse-bob 2s linear 1.1s infinite alternate; }
@keyframes mouse-bob { from { transform: translateY(0); } to { transform: translateY(10px); } }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.shader-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: -198px; z-index: 1; }
.shader { position: relative; width: 100%; height: 100%; overflow: hidden; }
.shader canvas { display: block; width: 100%; height: 100%; }
.shader-noise { position: absolute; inset: 0; background-repeat: repeat; pointer-events: none; }
.hero-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 4, 4, 0) 55%, #000 100%); opacity: 0; }
@media (max-width: 809.98px) {
  .hero { z-index: 2; padding: 120px 18px 0; }
  .scroll-hint { display: none; }
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero-head { gap: 40px; }
}

/* Moving film grain ---------------------------------------------------------- */
.grain { position: absolute; left: 0; top: -156px; bottom: 0; width: 100%; z-index: 3; opacity: 0.05; pointer-events: none; }
.grain-clip { position: relative; width: 100%; height: 100%; overflow: hidden; }
.grain-layer {
  position: absolute; inset: -200%; width: 400%; height: 400%; opacity: 0.8;
  background-repeat: repeat; /* size is the image's own, as in Framer */
  animation: grain 8s steps(10, jump-start) infinite;
}
@keyframes grain {
  0%      { transform: translate(0, 0); }
  11.111% { transform: translate(-5%, -10%); }
  22.222% { transform: translate(-15%, 5%); }
  33.333% { transform: translate(7%, -25%); }
  44.444% { transform: translate(-5%, 25%); }
  55.556% { transform: translate(-15%, 10%); }
  66.667% { transform: translate(15%, 0); }
  77.778% { transform: translate(0, 15%); }
  88.889% { transform: translate(3%, 35%); }
  100%    { transform: translate(-10%, 10%); }
}

/* Selected works -------------------------------------------------------------- */
.works { position: relative; width: 100%; background: var(--white); padding: 20px 0; display: flex; flex-direction: column; overflow: hidden; }
.works-title { width: 100%; padding: 0 20px; overflow: hidden; }
.works-title .fit { --vbw: 1160; --vbh: 130; --fs: 130.58; }
.works-title .fit-text { font-family: var(--display); font-weight: 600; text-transform: uppercase; text-align: center; color: var(--black); }
@media (max-width: 1199.98px) { .works-title .fit { --vbh: 135; } }

.card { display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 10px 16px; width: 100%; height: 50vh; padding: 20px; background: var(--white); color: var(--black); }
.card-image { width: 100%; height: 100%; border-radius: 8px; overflow: hidden; position: relative; }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-info { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; width: 100%; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.card-title { flex: 1 0 0; width: 1px; max-width: 50%; color: var(--black); }
.card-number { color: var(--black); white-space: pre; }
.card-desc-wrap { flex: 1 0 0; height: 1px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.card-desc { max-width: 60%; width: 100%; color: var(--desc); }
.card-details { display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.card-col { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.card-label { color: var(--label); text-align: left; }
.card-label.right { text-align: right; }
.card-value { color: var(--black); }
.card-value.right { text-align: right; }
.card-live { flex: 1 0 0; width: 1px; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.card-meta { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.card-deliverables { flex: 1 0 0; width: 1px; align-self: stretch; display: flex; flex-direction: column; gap: 32px; }
.card-deliverables .card-col { flex: 1 0 0; }
.link-btn.card-button-2 { display: none; }

@media (max-width: 1199.98px) {
  .card { display: flex; flex-direction: column; align-items: center; height: auto; }
  .card-image { height: auto; aspect-ratio: 2.45 / 1; }
  .card-info { align-items: flex-start; gap: 12px; height: auto; }
  .card-title, .card-desc { max-width: none; }
  .card-desc-wrap { flex: none; height: auto; }
  .card-details { cursor: auto; padding-bottom: 32px; }
  .card-live { display: none; }
  .link-btn.card-button-2 { display: inline-flex; }
  /* Framer's tablet and phone cards set some values without the text style */
  .card-value.plain { font-size: 16px; }
}
@media (max-width: 809.98px) {
  .card-image { aspect-ratio: auto; height: 200px; }
  .card-details { padding-bottom: 0; }
  .card-meta { flex-direction: row; }
  .card-meta > .card-col { flex: 1 0 0; width: 1px; }
  .card-meta > .card-col:last-child .card-label,
  .card-meta > .card-col:last-child .card-value { text-align: right; }
  .card-deliverables { display: none; }
}

/* "View project" button */
.link-btn { display: inline-flex; flex-direction: column; gap: 8px; cursor: pointer; }
.link-btn-row { display: flex; align-items: center; gap: 10px; height: 19px; transition: gap 0.5s var(--ease-link); }
.link-btn-dot {
  position: relative; flex: none; width: 8px; height: 8px; border-radius: 100px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0);
  transition: width 0.5s var(--ease-link), height 0.5s var(--ease-link), background-color 0.5s var(--ease-link), border-color 0.5s var(--ease-link);
}
.link-btn-icon { position: absolute; width: 16px; height: 16px; left: -20px; top: 50%; transform: translateY(-50%); overflow: hidden; transition: left 0.5s var(--ease-link); }
.link-btn-icon svg { position: absolute; inset: 0; width: 16px; height: 16px; }
.link-btn-icon .arrow-hover { inset: -4px; width: 24px; height: 24px; opacity: 0; }
.link-btn-text { font: 700 16px/1.2 var(--display); letter-spacing: -0.01em; color: var(--black); white-space: pre; user-select: none; }
.link-btn-line { height: 1px; display: flex; justify-content: flex-end; padding-left: 18px; overflow: hidden; }
.link-btn-line > span { flex: 1 0 0; width: 1px; height: 1px; background: var(--line); transition: flex-basis 0.5s var(--ease-link), flex-grow 0.5s var(--ease-link); }
.link-btn:hover .link-btn-line > span { flex: 0 0 1px; }
.link-btn:hover .link-btn-row { gap: 12px; }
.link-btn:hover .link-btn-dot { width: 28px; height: 28px; background: var(--black); border-color: var(--black); }
.link-btn:hover .link-btn-icon { left: calc(50% - 8px); }
.link-btn:hover .link-btn-icon .arrow-rest { opacity: 0; }
.link-btn:hover .link-btn-icon .arrow-hover { opacity: 1; }
.link-btn .arrow-hover path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.link-btn:hover .arrow-hover path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s var(--ease-link) 0.1s; }

/* About ----------------------------------------------------------------------- */
.about { position: relative; z-index: 4; width: 100%; background: var(--black); padding: 100px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; overflow: hidden; }
.about-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 44px; }
.about-text { flex: 1 0 0; width: 1px; min-width: 460px; display: flex; flex-direction: column; gap: 32px; border-radius: 20px; overflow: hidden; box-shadow: 16px 24px 20px 8px rgba(0, 0, 0, 0.4); }
.about-heading .fit { --vbw: 471; --vbh: 92; --fs: 92; }
.about-heading .fit-text { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--white); }
.about-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; width: 100%; }
.about-bio { opacity: 0.7; }
.rule { width: 100%; height: 1px; background: var(--white); opacity: 0.1; flex: none; }
.skills { position: relative; z-index: 9; display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.skill { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--chip); }
.skill .t-label { white-space: pre; }
.experience { display: flex; flex-direction: column; gap: 20px; }
.job { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; padding: 16px; border-radius: 10px; background: var(--black); }
.job > p { flex: 1 0 0; width: 1px; text-align: left; }
.job > p:last-child { text-align: right; }
.portrait { flex: 1 0 0; width: 1px; min-width: 460px; align-self: stretch; position: relative; border-radius: 4px; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.literature { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; padding: 40px 0; }
.literature-heading { width: 100%; white-space: pre-wrap; }
.literature--inside { display: none; }
@media (min-width: 1920px) {
  .literature--inside { display: flex; }
  .literature--below { display: none; }
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .about-text { order: 1; }
  .portrait { order: 0; align-self: auto; height: 60vh; flex: 1 0 0; }
}
@media (max-width: 809.98px) {
  .about { padding: 80px 18px; }
  .about-row { flex-direction: column; }
  .about-text { flex: none; order: 1; width: 100%; min-width: 240px; }
  .about-heading .fit { --vbw: 225; --vbh: 44; --fs: 44; }
  .job { flex-direction: column; align-items: stretch; gap: 8px; }
  .job > p { flex: none; width: 100%; }
  .job > p:last-child { text-align: left; }
  .portrait { flex: none; order: 0; width: 100%; min-width: 0; height: 40vh; align-self: auto; }
  .literature--below { align-items: center; }
  .literature--below .literature-heading { container-type: inline-size; aspect-ratio: 199 / 34; }
  .literature--below .literature-heading .fit-text { font-size: calc(100cqw * 24 / 199); line-height: 1.4; }
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .about-heading .fit { --vbw: 328; --vbh: 64; --fs: 64; }
  /* On Framer this heading's box is 150px tall at tablet size (its text never shows there, a
     Framer glitch). Keep the box so the shelf sits where it did, but show the words. */
  .literature--below .literature-heading { min-height: 150px; }
}

/* Bookshelf: each book opens as you scroll past its trigger line. */
.shelf { display: flex; align-items: center; justify-content: center; gap: 23px; width: min-content; }
.shelf-spacer { align-self: stretch; width: 44px; flex: none; display: none; }
.shelf[data-open="3"] .shelf-spacer { display: block; }
.book { --dur: var(--spring-snappy-ms); --ease: var(--spring-snappy); flex: none; width: 44px; display: flex; align-items: center; transition: width var(--dur) var(--ease); }
.book.is-open { width: 235px; }
.book-body { display: flex; align-items: center; transform-style: preserve-3d; transform: perspective(1200px) rotateY(0deg); transition: transform var(--dur) var(--ease); }
.book.is-open .book-body { transform: perspective(1200px) rotateY(-75deg); }
.book-spine { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 44px; height: 267px; padding-top: 10px; overflow: hidden; }
.book-spine-bg { position: absolute; inset: 0; background: var(--book); filter: brightness(0.75); transition: background-color var(--dur) var(--ease); }
.book-spine-grain, .book-cover-grain { position: absolute; inset: 0; z-index: 1; opacity: 0.06; background-size: 150px; background-repeat: repeat; pointer-events: none; }
.book-title-wrap { position: relative; width: 1px; min-height: 121px; display: flex; justify-content: center; }
.book-title {
  position: absolute; left: 0; top: 0; z-index: 1; white-space: pre; user-select: none; pointer-events: none;
  font: 600 16px/1.2 var(--inter); color: var(--book-title); text-align: center;
  transform: translateY(-50%) rotate(90deg); transform-origin: 0 50%;
  transition: color var(--dur) var(--ease);
}
.book-cover { position: absolute; z-index: 1; width: 200px; height: 267px; left: calc(100% - 100px); top: calc(49.8127% - 133.5px); overflow: hidden; transform: translateZ(-100px) rotateY(90deg); background: #111; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover .cover-open { opacity: 0; }
.book.is-open .book-cover .cover-open { opacity: 1; }
.book-highlight {
  position: absolute; top: 0; bottom: 0; left: 1px; width: 12px; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 27.98%, rgba(255, 255, 255, 0) 45.81%, rgba(255, 255, 255, 0.2) 46.5%, rgba(255, 255, 255, 0) 85.02%);
}
.book.is-open .book-highlight {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 27.98%, rgba(0, 0, 0, 0.05) 30.07%, rgba(0, 0, 0, 0.05) 45.78%, rgba(255, 255, 255, 0.2) 49.7%, rgba(255, 255, 255, 0) 85.02%);
}

/* The invisible lines that open each book (same sizes as on Framer). */
.shelf-triggers { position: absolute; z-index: 1; bottom: 100px; left: 50%; transform: translateX(-50%); width: 1040px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: clip; pointer-events: none; user-select: none; }
.shelf-triggers > div { flex: none; width: 1040px; height: 90px; }
.shelf-triggers > .xl { display: none; height: 68px; }
@media (min-width: 810px) and (max-width: 1199.98px) { .shelf-triggers { width: min-content; } }
@media (min-width: 1920px) {
  .shelf-triggers { height: 964px; width: 1760px; bottom: -260px; left: calc(50% - 880px); transform: none; }
  .shelf-triggers > div { height: 68px; }
  .shelf-triggers > .xl { display: block; }
}

/* Contact footer ------------------------------------------------------------ */
.footer-wrap { position: relative; z-index: 1; width: 100%; height: 100vh; order: 1002; }
.footer { position: relative; width: 100%; height: 100%; background: var(--black); padding: 0 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; will-change: transform; }
.footer-inner { position: relative; z-index: 1; width: 100%; max-width: 1600px; height: 100vh; padding: 60px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.footer-spacer { width: 100%; height: 43px; flex: none; }
.footer-text { width: 100%; max-width: 840px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-heading { width: 100%; text-align: center; }
.footer-cta-row { width: 100%; display: flex; justify-content: center; align-items: center; gap: 40px; }
.footer-bottom { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; }
.footer-contact { flex: 1 0 0; width: 1px; display: flex; align-items: center; justify-content: space-between; }
.footer-email { color: var(--white); white-space: pre; }
.socials { display: flex; align-items: center; justify-content: center; gap: 24px; overflow: hidden; }
.social { display: flex; padding: 8px; border-radius: 100px; }
.social svg { width: 24px; height: 24px; fill: var(--white); }
.social-sep { width: 2px; height: 24px; background: var(--white); opacity: 0.2; flex: none; }
.footer-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.footer-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 4, 4, 0) 55%, rgb(4, 4, 4) 100%); }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .footer { padding: 0 30px; }
  .t-h3 { font-size: 34px; }
}
@media (max-width: 809.98px) {
  .footer-wrap { height: auto; }
  .footer-spacer, .footer-bg { display: none; }
  .footer { padding: 0 20px; justify-content: flex-end; will-change: auto; }
  .footer-inner { height: auto; gap: 80px; justify-content: center; }
  .footer-text { align-items: flex-start; }
  .footer-heading { text-align: left; }
  .footer-cta-row { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: center; justify-content: flex-start; gap: 24px; }
  .footer-contact { flex: none; width: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; }
  .t-h3 { font-size: 30px; }
}

/* "Available for work" badge */
.badge { position: relative; z-index: 4; display: flex; align-items: center; gap: 10px; border-radius: 40px; background: var(--black); }
.badge-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 26px; background: rgba(10, 10, 10, 0.4); backdrop-filter: blur(68px); -webkit-backdrop-filter: blur(68px); overflow: hidden; }
.badge-dot { width: 7px; height: 7px; border-radius: 84px; background: var(--white); box-shadow: 0 0 14px 1px #bdbdbd; flex: none; }
.badge .t-label { color: var(--white); white-space: pre; }
.badge-edge { position: absolute; inset: -1px; z-index: 1; border-radius: 26px; background: linear-gradient(105deg, #fff -19%, rgba(0, 0, 0, 0) 20%); overflow: hidden; }

/* "Book a free call" button */
.cta { --t: var(--spring-snappy-ms) var(--spring-snappy); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.cta-frame { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; align-items: center; padding: 1.4px; border-radius: 11.5px; background: #3b3b3b; overflow: hidden; box-shadow: 0 1px 9px 0 rgba(255, 255, 255, 0); transition: box-shadow var(--t); }
.cta-inner { position: relative; z-index: 4; width: 100%; display: flex; justify-content: center; padding: 8px 24px; border-radius: 10px; background: var(--black); overflow: hidden; }
.cta-label { position: relative; z-index: 2; white-space: pre; user-select: none; pointer-events: none; }
.cta .glow { position: absolute; z-index: 1; overflow: hidden; border-radius: 999px; filter: blur(10px); transition: left var(--t), top var(--t), width var(--t), height var(--t), bottom var(--t), opacity var(--t), background var(--t); }
.cta .glow-a { width: 77px; height: 41px; left: calc(8.8235% - 38.5px); top: calc(118.1818% - 20.5px); background: radial-gradient(50% 50% at 50% 50%, #a3a3a3 0%, rgba(0, 0, 0, 0) 100%); opacity: 0.41; }
.cta .glow-b { width: 92px; height: 40px; left: calc(74.9035% - 46px); top: -20px; background: radial-gradient(50% 50% at 50% 50%, #737373 0%, rgba(0, 0, 0, 0) 100%); }
.cta .glow-c { width: 58px; height: 30px; left: -11px; top: calc(83.9506% - 15px); background: radial-gradient(50% 50% at 50% 50%, #ababab 0%, rgba(0, 0, 0, 0) 100%); }
.cta .glow-d { width: 74px; height: 41px; right: -12px; top: -7px; border-radius: 21px; background: radial-gradient(50% 50% at 50% 50%, #fff 0%, rgba(0, 0, 0, 0) 100%); opacity: 0.62; }
.cta .blob { position: absolute; z-index: 1; overflow: hidden; filter: blur(8px); transition: left var(--t), bottom var(--t), width var(--t), height var(--t); }
.cta .blob-top { width: 95px; height: 36px; right: -17px; top: -19px; background: var(--white); }
.cta .blob-a { width: 54px; height: 46px; left: -22px; bottom: -18px; background: #e6e6e6; }
.cta .blob-b { width: 40px; height: 34px; left: -22px; bottom: -17px; background: var(--white); }
.cta:not([href]) { cursor: default; }
.cta:hover .cta-frame { box-shadow: 0 1px 7px 0 rgba(255, 255, 255, 0.24); }
.cta:hover .glow-a { opacity: 0.5; height: 48px; left: calc(9.2105% - 38.5px); top: calc(108.8889% - 24px); }
.cta:hover .glow-b { background: radial-gradient(50% 50% at 50% 50%, #c2c2c2 0%, rgba(0, 0, 0, 0) 100%); }
.cta:hover .blob-a { bottom: -19px; height: 51px; left: -24px; width: 87px; }
.cta:hover .blob-b { bottom: -18px; height: 39px; left: -24px; width: 61px; }

/* Bottom-of-screen progressive blur ------------------------------------------ */
.edge-blur { position: fixed; left: 0; right: 0; bottom: 0; height: 100px; z-index: 10; pointer-events: none; }
.edge-blur > div { position: absolute; inset: 0; pointer-events: none; }

/* Custom cursor --------------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 13; width: 12px; height: 12px; border-radius: 40px; background: #e6e6e6; box-shadow: 0 0 20px 4px rgba(196, 196, 196, 0.3); pointer-events: none; opacity: 0; will-change: transform; }
.cursor.is-visible { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Entrance animations: hidden until app.js plays them. Without JavaScript nothing is hidden. */
.js [data-appear] { opacity: 0.001; }
.js [data-appear="words"] { opacity: 1; }
.js [data-appear="words"] .word { opacity: 0.001; filter: blur(2px); transform: translateY(5px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-appear], .js [data-appear="words"] .word { opacity: 1 !important; filter: none !important; transform: none !important; }
  .grain-layer { animation: none; }
}

/* Project pages ---------------------------------------------------------------- */
.project { position: relative; z-index: 4; width: 100%; background: var(--black); color: var(--white); display: flex; flex-direction: column; align-items: center; padding: 180px 40px 120px; }
.project-head { width: 100%; max-width: 1040px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag { padding: 6px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font: 400 14px/1.4 var(--inter); color: var(--muted); }
.project-title { max-width: 960px; font: 400 92px/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.project-sub { max-width: 640px; color: var(--muted); }
.project-hero { width: 100%; max-width: 1040px; margin-top: 80px; aspect-ratio: 1.77; border-radius: 24px; overflow: hidden; position: relative; }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-facts { width: 100%; max-width: 1040px; margin-top: 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.fact .t-label { text-align: left; }
.project-section { width: 100%; max-width: 1040px; padding-top: 120px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.section-kicker { color: var(--muted); text-align: left; }
.section-title { font: 400 56px/1.05 var(--satoshi); letter-spacing: -0.02em; margin-top: 12px; }
.section-text { display: flex; flex-direction: column; gap: 20px; opacity: 0.75; padding-top: 6px; }
.section-text strong { font-weight: 600; color: var(--white); }
.section-image { grid-column: 1 / -1; margin: 0; border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.section-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery { width: 100%; max-width: 1040px; padding-top: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: auto; height: 560px; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-next { width: 100%; max-width: 1040px; margin-top: 160px; padding-top: 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.project-next a { display: flex; flex-direction: column; gap: 8px; }
.project-next .next-title { font: 400 56px/1.05 var(--satoshi); letter-spacing: -0.02em; transition: opacity 0.3s; }
.project-next a:hover .next-title { opacity: 0.7; }
.project-next .back { color: var(--muted); transition: color 0.3s; }
.project-next .back:hover { color: var(--white); }
@media (max-width: 1199.98px) {
  .project-title { font-size: 64px; }
  .section-title, .project-next .next-title { font-size: 44px; }
}
@media (max-width: 809.98px) {
  .project { padding: 140px 18px 80px; }
  .project-title { font-size: 40px; }
  .project-hero { margin-top: 48px; border-radius: 12px; }
  .project-facts { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .project-section { grid-template-columns: 1fr; gap: 16px; padding-top: 72px; }
  .section-title, .project-next .next-title { font-size: 34px; }
  .gallery { grid-template-columns: 1fr; padding-top: 72px; }
  .gallery figure.wide { height: auto; aspect-ratio: 4 / 3; }
  .project-next { flex-direction: column; align-items: flex-start; margin-top: 96px; }
}
