/* Shinzo portfolio. One accent: ultramarine. Display: Bricolage Grotesque. Text: Geist. */

/* Lenis smooth scroll (from lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 600 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-peso.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+20B1; }

:root {
  --blue: #2320D6;
  --blue-deep: #1A17A8;
  --paper: #F1F1EE;
  --paper-2: #E4E4E0;
  --ink: #0E0D16;
  --ink-2: #55536A;
  --mist: #CFCDF6;
  --amber: #E3A55B;
  --night: #18110D;
  --ease: cubic-bezier(.7,0,.2,1);
  --pad: clamp(1.25rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: "Bricolage", "Geist", sans-serif; font-weight: 700; font-stretch: 88%; letter-spacing: -0.022em; line-height: .92; text-wrap: balance; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--pad); }
.blue { background: var(--blue); color: var(--paper); }
.blue .muted { color: var(--mist); }
.ink { background: var(--ink); color: var(--paper); }
.ink .muted { color: #A9A7BC; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }
.tiny { font-size: .8125rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.t-xxl { font-size: clamp(3.4rem, 10vw, 10.5rem); }
.t-xl { font-size: clamp(2.8rem, 7vw, 7rem); }
.t-lg { font-size: clamp(2rem, 4.4vw, 4rem); line-height: .95; }
.t-md { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -0.025em; }

/* Links and buttons */
.link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .55rem) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - .55rem); }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.6rem; padding: 0 2rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; border: 0; font: inherit; cursor: pointer; transition: color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.blue .btn { background: var(--paper); color: var(--ink); }
.blue .btn::before { background: var(--ink); }
.blue .btn:hover { color: var(--paper); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
a:hover .arrow { transform: translate(3px, -3px); }

/* Floating header: two pills that read on any background */
.top { position: fixed; z-index: 50; inset: .9rem var(--pad) auto; display: flex; justify-content: space-between; gap: .75rem; pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 1.25rem; min-height: 3rem; padding: .3rem .4rem .3rem 1.2rem; border-radius: 999px;
  background: rgb(14 13 22 / .78); color: var(--paper); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); font-size: .9375rem; }
.pill .name { font-family: "Bricolage"; font-weight: 700; font-stretch: 85%; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.pill .clock { color: #A9A7BC; font-variant-numeric: tabular-nums; padding-right: .8rem; }
.pill nav { display: flex; align-items: center; gap: .25rem; }
.pill nav a { text-decoration: none; padding: .55rem .8rem; border-radius: 999px; transition: background-color .3s; }
.pill nav a:hover, .pill nav a[aria-current="page"] { background: rgb(241 241 238 / .12); }
.pill nav a.cta { background: var(--paper); color: var(--ink); font-weight: 600; padding-inline: 1.05rem; }
.pill nav a.cta:hover { background: var(--mist); }
@media (max-width: 40rem) { .pill .clock, .pill nav .opt { display: none; } .pill { gap: .75rem; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: 6.25rem; }
.hero-grid { flex: 1; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgb(241 241 238 / .35); font-size: .875rem; }
.status i { width: .5rem; height: .5rem; border-radius: 50%; background: #7CF29A; box-shadow: 0 0 0 0 rgb(124 242 154 / .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 .55rem rgb(124 242 154 / 0); } 100% { box-shadow: 0 0 0 0 rgb(124 242 154 / 0); } }
.hero-name { font-family: "Bricolage", sans-serif; font-size: clamp(5.5rem, 26vw, 28rem); font-stretch: 75%; font-weight: 800; letter-spacing: -0.045em; line-height: .78; margin: 1.5rem 0 -.07em -.04em; white-space: nowrap; }
.phone { position: relative; width: min(16.5rem, 62vw); margin-inline: auto; aspect-ratio: 390 / 844; border-radius: 2.6rem; padding: .55rem; background: #0b0a12;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset, 0 50px 90px -30px rgb(5 4 40 / .8); transform-style: preserve-3d; will-change: transform; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 2.1rem; background: var(--night); }
.phone::after { content: ""; position: absolute; top: 1.05rem; left: 50%; translate: -50% 0; width: 28%; height: 1.35rem; border-radius: 999px; background: #0b0a12; }
.phone-label { margin-top: 1.1rem; text-align: center; }

/* Work */
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.project { display: block; margin-top: clamp(2.5rem, 5vw, 4.5rem); text-decoration: none; color: inherit; }
.frame { border-radius: 1.1rem; overflow: hidden; background: var(--night); box-shadow: 0 50px 100px -50px rgb(14 13 22 / .55), 0 0 0 1px rgb(14 13 22 / .08); transform-origin: center top; }
.frame .bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #231912; }
.frame .bar i { width: .62rem; height: .62rem; border-radius: 50%; background: #3e3027; }
.frame .bar span { margin-inline: auto; padding: .15rem 1.2rem; border-radius: 6px; background: var(--night); color: #bca894; font-size: .8125rem; }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-meta { margin-top: 1.5rem; display: grid; gap: .75rem 2rem; grid-template-columns: minmax(0, 1fr); align-items: baseline; }
@media (min-width: 48rem) { .project-meta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; } }
.project-meta h3 { font-size: clamp(2rem, 4vw, 3.5rem); transition: color .3s; }
.project:hover .project-meta h3 { color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgb(14 13 22 / .18); font-size: .8125rem; }
.blue .tags span, .ink .tags span { border-color: rgb(241 241 238 / .3); }

/* Services: big rows that open on hover (and are always open on touch screens) */
.rows { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid rgb(241 241 238 / .3); }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid rgb(241 241 238 / .3); }
@media (min-width: 56rem) { .row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; } }
.row h3 { font-size: clamp(2.2rem, 5.6vw, 5.25rem); font-weight: 700; transition: transform .6s var(--ease), color .3s; }
.row p { max-width: 30em; }
@media (hover: hover) and (min-width: 56rem) {
  .row p { opacity: .55; transition: opacity .4s; }
  .row:hover h3 { transform: translateX(1.25rem); }
  .row:hover p { opacity: 1; }
}

/* Process: sticky title, steps scroll past */
.process { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .process { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6rem; } .process .sticky { position: sticky; top: 7rem; align-self: start; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 2.2rem; border-top: 1px solid rgb(14 13 22 / .15); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: "Bricolage"; font-weight: 700; font-size: 1.1rem; color: var(--blue); padding-top: .35rem; }
.steps h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.steps p { margin-top: .7rem; max-width: 30em; }
.steps .get { margin-top: .9rem; font-size: .9375rem; color: var(--ink-2); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.mail { display: inline-block; font-family: "Bricolage"; font-weight: 700; font-stretch: 78%; letter-spacing: -0.04em; line-height: .95; font-size: clamp(2.2rem, 7.4vw, 7.5rem); text-decoration: none; word-break: break-word;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 .06em no-repeat; transition: background-size .7s var(--ease); padding-bottom: .08em; }
.mail:hover { background-size: 100% .06em; }
.copy { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgb(241 241 238 / .4); background: transparent; color: inherit; font: inherit; font-size: .9375rem; cursor: pointer; transition: background-color .3s, color .3s; }
.copy:hover { background: var(--paper); color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgb(241 241 238 / .25); font-size: .875rem; }

/* Case study */
.cs-hero { background: var(--night); color: #F2E8DC; padding-top: 8rem; }
.cs-hero .muted { color: #BCA894; }
.facts { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(242 232 220 / .2); }
.facts dt { font-size: .8125rem; color: #BCA894; }
.facts dd { margin: .25rem 0 0; }
.split { display: grid; gap: 2rem 5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.dirs { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
@media (min-width: 48rem) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir { margin: 0; }
.dir .shot { position: relative; height: clamp(22rem, 44vw, 36rem); border-radius: .9rem; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px rgb(14 13 22 / .1); }
.dir .shot img { width: 100%; height: auto; transition: transform 3.2s cubic-bezier(.4,0,.2,1); }
.dir:hover .shot img { transform: translateY(calc(-100% + clamp(22rem, 44vw, 36rem))); }
.dir figcaption { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.dir .pick { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; background: var(--blue); color: var(--paper); font-size: .8125rem; font-weight: 600; }
.compare { position: relative; margin-top: 3rem; aspect-ratio: 16 / 10; border-radius: 1rem; overflow: hidden; background: var(--night); box-shadow: 0 40px 80px -40px rgb(14 13 22 / .5); --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--paper); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lab { position: absolute; top: 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgb(14 13 22 / .7); color: var(--paper); font-size: .8125rem; pointer-events: none; }
.compare input:focus-visible ~ .handle::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.feat { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(14 13 22 / .15); }
.feat li { padding-block: 1.25rem; border-bottom: 1px solid rgb(14 13 22 / .15); display: grid; gap: .3rem; }
.feat strong { font-weight: 600; }
.scores { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: rgb(241 241 238 / .25); border-radius: 1rem; overflow: hidden; margin-top: 3rem; }
@media (min-width: 48rem) { .scores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scores div { background: var(--blue); padding: 1.75rem 1.5rem; }
.scores b { display: block; font-family: "Bricolage"; font-weight: 700; font-stretch: 80%; font-size: clamp(3rem, 7vw, 6rem); line-height: .9; letter-spacing: -0.04em; }
.scores span { display: block; margin-top: .6rem; font-size: .9375rem; color: var(--mist); }
.shots2 { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .shots2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; } }
.shot-r { border-radius: .9rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(14 13 22 / .08), 0 30px 60px -40px rgb(14 13 22 / .5); }
figcaption.cap { margin-top: .8rem; font-size: .875rem; color: var(--ink-2); }

/* Custom cursor (mouse only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 999px; background: var(--paper); mix-blend-mode: difference; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s; display: none; }
.cursor span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8125rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-on { opacity: 1; }
.cursor.is-label { width: 6.5rem; height: 6.5rem; margin: -3.25rem 0 0 -3.25rem; background: var(--paper); mix-blend-mode: normal; }
.cursor.is-label span { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* Load-in motion (CSS only, so it works before scripts load) */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .line > span { animation: rise 1.2s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .fade { animation: fade 1.2s ease both; animation-delay: var(--d, .6s); }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Lintel case study: the project's own light palette and type */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 400 600; font-stretch: 100% 125%; font-display: swap; }
.cs-hero.is-lintel { background: #EEEAE3; color: #2A2926; }
.cs-hero.is-lintel .muted, .is-lintel .facts dt { color: #6B665E; }
.is-lintel .facts { border-top-color: rgb(42 41 38 / .2); }
.btn.oxide { background: #8A3A1F; color: #F7F5F0; }
.frame.is-light { background: #EEEAE3; box-shadow: 0 50px 100px -50px rgb(14 13 22 / .45), 0 0 0 1px rgb(14 13 22 / .1); }
.frame.is-light .bar { background: #D6D0C5; }
.frame.is-light .bar i { background: #B6AFA3; }
.frame.is-light .bar span { background: #EEEAE3; color: #6B665E; }
.system { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
@media (min-width: 56rem) { .system { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swatches { grid-column: 1 / -1; } }
.swatches { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem; min-height: clamp(7.5rem, 13vw, 11rem); padding: .9rem 1rem; border-radius: .8rem; font-size: .8125rem; box-shadow: 0 0 0 1px rgb(14 13 22 / .1) inset; }
.swatch b { font-weight: 600; font-size: .9375rem; }
.specimen { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 15rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: .9rem; background: #EEEAE3; color: #2A2926; box-shadow: 0 0 0 1px rgb(14 13 22 / .08) inset; }
.sp-serif { font-family: "Newsreader", Georgia, serif; font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.sp-caps { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.95rem, 1.5vw, 1.3rem); line-height: 1.55; }
.sp-caps span { display: block; color: #6B665E; }
.sp-meta { font-size: .875rem; color: #6B665E; }
.studies { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.25rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .studies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .studies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.studies figure { margin: 0; }
.studies img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: .7rem; }
.studies figcaption { margin-top: .9rem; display: grid; gap: .15rem; }
.studies strong { font-weight: 600; }
