/* ==========================================================================
   Zino Barbe — Graphic Designer
   ========================================================================== */

:root {
  --bg: #f4f1eb;
  --bg-2: #edeae2;
  --card: #ddd9d0;
  --line: #ddd9d0;
  --line-2: #d8d4cc;
  --ink: #111;
  --ink-2: #333;
  --body: #5e5850;
  --muted: #736d64;
  --dark: #0d0d0b;
  --accent: #0040ff;
  --accent-light: #7c9bff;
  --tui-blue: #6ec9f5;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --pad-x: clamp(20px, 5vw, 60px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Base ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.skip:focus {
  top: 1rem;
}

/* ---------- Coming soon (html.soon) -------------------------------------- */

html.soon,
html.soon body {
  overflow: hidden;
  height: 100%;
}

html.soon body > *:not(.soon-screen) {
  display: none !important;
}

.soon-screen {
  display: none;
}

html.soon .soon-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding: clamp(28px, 5vw, 56px) var(--pad-x) clamp(40px, 8vh, 80px);
  background: var(--bg);
  color: var(--ink);
}

.soon-logo {
  position: absolute;
  left: var(--pad-x);
  top: 32px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.soon-logo span {
  color: var(--accent);
}

.soon-kicker {
  color: var(--accent);
  margin-bottom: 18px;
}

.soon-screen h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 14vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.soon-screen h1 em {
  font-style: italic;
  font-weight: 600;
}

.soon-screen h1 span {
  color: var(--accent);
}

.soon-note {
  max-width: 36ch;
  margin: 28px 0 18px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
}

.soon-mail {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  width: fit-content;
}

.label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent {
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

/* ---------- Navigation ---------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, border-color 0.45s ease, transform 0.6s var(--ease);
}

.nav.is-scrolled {
  background: rgb(244 241 235 / 92%);
  border-bottom-color: rgb(180 175 165 / 25%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav.is-hidden:not(:focus-within) {
  transform: translateY(-100%);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-logo .accent {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.nav-logo:hover .accent {
  transform: translateY(-0.3em);
}

.nav-links {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
}

.nav-link {
  position: relative;
  padding-block: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-soft);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--pad-x) clamp(56px, 8vh, 88px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #111 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.055;
  pointer-events: none;
}

.hero-side {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero .hero-kicker {
  margin-bottom: clamp(14px, 2vw, 24px);
  font-size: clamp(11px, 1.1vw, 13px);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(76px, 17vw, 230px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  font-weight: 300;
}

.line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em 0.1em;
  margin-block: -0.06em -0.1em;
}

.line > span {
  display: inline-block;
}

.hero-title .l1 {
  font-style: italic;
  font-weight: 600;
}

.hero-title .l2 {
  padding-left: clamp(14px, 5.5vw, 96px);
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}

.hero-name {
  margin-bottom: 8px;
  letter-spacing: 0.24em;
}

.hero-loc {
  font-size: 13px;
  font-weight: 300;
  color: var(--body);
  letter-spacing: 0.02em;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll-line {
  width: 44px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}

.avail-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: avail-pulse 2.4s ease-out infinite;
}

@keyframes avail-pulse {
  0% { box-shadow: 0 0 0 0 rgb(0 64 255 / 45%); }
  70%, 100% { box-shadow: 0 0 0 9px rgb(0 64 255 / 0%); }
}

.hero-stack {
  position: absolute;
  z-index: 1;
  right: clamp(96px, 13vw, 260px);
  top: 48%;
  width: clamp(190px, 21vw, 320px);
  aspect-ratio: 723 / 1024;
  transform: translateY(-50%);
}

.hs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgb(13 13 11 / 45%);
  transition: transform 0.9s var(--ease);
}

.hs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.82) contrast(1.35);
  transition: filter 0.7s var(--ease);
}

.hs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: screen;
  transition: opacity 0.7s var(--ease);
}

.hero-stack:hover .hs img { filter: none; }
.hero-stack:hover .hs::after { opacity: 0; }

.hs-1 { transform: rotate(-9deg) translate(-26%, 5%); }
.hs-3 { transform: rotate(8deg) translate(26%, 3%); }
.hs-2 { transform: rotate(-1deg); }

.hero-stack:hover .hs-1 { transform: rotate(-13deg) translate(-40%, 3%); }
.hero-stack:hover .hs-3 { transform: rotate(12deg) translate(40%, 1%); }
.hero-stack:hover .hs-2 { transform: rotate(0deg) translateY(-3%); }

.hero-stack-cap {
  position: absolute;
  left: -30%;
  right: -30%;
  top: calc(100% + 64px);
  text-align: center;
  color: var(--muted);
  transition: color 0.3s;
}

.hero-stack:hover .hero-stack-cap { color: var(--accent); }

@media (max-width: 900px) {
  .hero-stack { display: none; }
}

/* Intro (JS only) */
.js .hero-stack {
  opacity: 0;
  translate: 0 40px;
}

.is-loaded .hero-stack {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1.2s var(--ease) 0.6s, translate 1.2s var(--ease) 0.6s;
}

.js .hero .line > span {
  transform: translateY(108%);
}

.js .hero-fade,
.js .hero-grid,
.js .hero-side {
  opacity: 0;
}

.js .hero-bottom {
  transform: translateY(20px);
  opacity: 0;
}

.js .hero-scroll-line,
.js .hero-dash {
  transform: scaleX(0);
}

.js .hero-dash {
  display: inline-block;
  opacity: 0;
  transform: none;
}

.is-loaded .hero .line > span {
  transform: none;
  transition: transform 1.15s var(--ease) var(--delay, 0s);
}

.is-loaded .hero-bottom {
  transform: none;
  opacity: 1;
  transition: transform 0.9s var(--ease) 0.72s, opacity 0.9s var(--ease) 0.72s;
}

.is-loaded .hero-dash {
  opacity: 1;
  transition: opacity 0.5s ease 0.9s;
}

.is-loaded .hero-scroll-line {
  transform: none;
  transition: transform 0.7s var(--ease) 1.5s;
}

.is-loaded .hero-grid {
  opacity: 0.055;
  transition: opacity 2s ease 1.4s;
}

.is-loaded .hero-side {
  opacity: 1;
  transition: opacity 1.2s ease 1.8s;
}

/* ---------- Work ---------------------------------------------------------- */

.work {
  padding: 0 var(--pad-x) clamp(80px, 12vh, 130px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head em {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 460px;
  gap: 14px;
}

.project {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  background: var(--card);
  color: #fff;
}

.project--wide {
  grid-column: span 8;
}

.project-link {
  display: block;
  height: 100%;
}

.project-media {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-soft);
}

.project-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media > .project-img--top {
  object-position: center 30%;
}

.project:hover .project-media,
.project:focus-within .project-media {
  transform: scale(1.07);
}

.project::before,
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project::before {
  background: linear-gradient(to top, rgb(8 8 8 / 78%) 0%, rgb(8 8 8 / 8%) 55%, transparent 100%);
}

.project::after {
  background: rgb(8 8 8 / 80%);
  opacity: 0;
}

.project:hover::before,
.project:focus-within::before {
  opacity: 0;
}

.project:hover::after,
.project:focus-within::after {
  opacity: 1;
}

.project-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.5vw, 30px);
}

.project-meta {
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  transform: translateY(3px);
  transition: transform 0.3s ease;
}

.project:hover .project-meta,
.project:focus-within .project-meta {
  transform: none;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.8vw, 56px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.project-desc {
  max-width: 360px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgb(255 255 255 / 78%);
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease-soft) 0.04s, opacity 0.4s ease 0.04s;
}

.project:hover .project-desc,
.project:focus-within .project-desc {
  opacity: 1;
  transform: none;
}

.project-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease-soft) 0.1s, opacity 0.4s ease 0.1s;
}

.project:hover .project-more,
.project:focus-within .project-more {
  opacity: 1;
  transform: none;
}

/* TUIfly card: the signs themselves, fanned on TUI blue */
.tui-stack {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3%;
  height: 100%;
  padding-top: 4%;
  background: var(--tui-blue);
}

.tui-stack img {
  width: auto;
  height: 52%;
  min-width: 0;
  aspect-ratio: 723 / 1024;
  object-fit: cover;
  box-shadow: 0 18px 40px -18px rgb(8 30 60 / 55%);
  transition: transform 0.8s var(--ease);
}

.tui-stack img:nth-child(1) {
  transform: rotate(-4deg) translateY(4%);
}

.tui-stack img:nth-child(2) {
  transform: translateY(-3%);
}

.tui-stack img:nth-child(3) {
  transform: rotate(4deg) translateY(4%);
}

.project:hover .tui-stack img:nth-child(1) {
  transform: rotate(-7deg) translate(-8%, 2%);
}

.project:hover .tui-stack img:nth-child(3) {
  transform: rotate(7deg) translate(8%, 2%);
}

@media (hover: none) {
  .project::before {
    background: linear-gradient(to top, rgb(8 8 8 / 85%) 0%, rgb(8 8 8 / 20%) 60%, transparent 100%);
  }

  .project-desc,
  .project-more {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .projects {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 400px;
  }

  .project,
  .project--wide {
    grid-column: span 1;
  }

  .project:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 660px) {
  .projects {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project,
  .project--wide,
  .project:first-child {
    grid-column: span 1;
    min-height: 380px;
  }

  .project:first-child {
    min-height: 440px;
  }

  .tui-stack {
    padding-top: 12%;
  }

  .tui-stack img {
    height: 52%;
  }
}

/* ---------- About --------------------------------------------------------- */

.about {
  background: var(--bg-2);
  padding: clamp(64px, 10vh, 112px) var(--pad-x);
}

.about > .label {
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.portrait {
  position: relative;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--card);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.quote {
  max-width: 400px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-2);
}

.about-text {
  padding-top: clamp(0px, 4vw, 48px);
}

.about-text h2 {
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.about-text p {
  margin-bottom: 18px;
  font-weight: 300;
  line-height: 1.88;
  color: var(--body);
}

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-top: 48px;
}

.skills h3 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 9px;
}

.skills li {
  padding-bottom: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: transform 0.35s var(--ease), color 0.3s;
}

.skills li:hover {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 660px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ------------------------------------------------------- */

.contact {
  background: var(--dark);
  color: #fff;
  padding: clamp(80px, 13vh, 130px) var(--pad-x) clamp(80px, 12vh, 120px);
  overflow: hidden;
}

.contact .label--accent {
  margin-bottom: 36px;
  color: var(--accent-light);
}

.contact-title {
  margin-bottom: 64px;
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.contact-title span {
  display: block;
}

.contact-title .t1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 4px;
}

.contact-title .t2 {
  font-weight: 600;
}

.contact-title .accent {
  display: inline;
  color: var(--accent-light);
}

.contact-note {
  max-width: 540px;
  margin: -24px 0 40px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: rgb(255 255 255 / 72%);
}

.contact-email {
  display: inline-block;
  margin-bottom: 48px;
  padding-bottom: 4px;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.03em;
  color: rgb(255 255 255 / 70%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  transition: color 0.3s, border-color 0.3s;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #fff;
  border-bottom-color: var(--accent-light);
}

.contact-email .arrow {
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.45s var(--ease);
}

.contact-email:hover .arrow {
  transform: translate(3px, -3px);
}

.contact :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent-light);
}

/* ---------- Footer -------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--pad-x);
  background: var(--dark);
  border-top: 1px solid rgb(255 255 255 / 7%);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 55%);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 60%);
  transition: color 0.3s;
}

.back-top:hover {
  color: #fff;
}

.back-top .arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.back-top:hover .arrow {
  transform: translateY(-3px);
}

/* ---------- Case study ---------------------------------------------------- */

.cs-head {
  padding: 140px var(--pad-x) clamp(48px, 7vw, 80px);
}

.back {
  display: inline-flex;
  gap: 10px;
  margin-bottom: clamp(40px, 6vw, 72px);
  transition: color 0.3s;
}

.back:hover {
  color: var(--accent);
}

.back .arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.back:hover .arrow {
  transform: translateX(-4px);
}

.cs-title {
  font-family: var(--serif);
  font-size: clamp(72px, 16vw, 230px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.js .cs-title .line > span {
  transform: translateY(108%);
}

.is-loaded .cs-title .line > span {
  transform: none;
  transition: transform 1.15s var(--ease) 0.08s;
}

.cs-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cs-lede {
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink-2);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  align-content: start;
}

.facts div {
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.facts dt {
  margin-bottom: 6px;
}

.facts dd {
  font-size: 13px;
  color: var(--ink-2);
}

.cs-note {
  max-width: 760px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: rgb(0 64 255 / 5%);
}

.cs-note p:last-child {
  margin-top: 10px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--body);
}

.cs-shot {
  margin: 0 var(--pad-x);
  padding: clamp(24px, 5vw, 72px);
  background: var(--card);
}

.cs-shot img {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -30px rgb(8 30 60 / 55%);
}

.cs-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 3vw, 40px);
  padding: 0 var(--pad-x);
}

.cs-duo img {
  width: 100%;
  height: auto;
  padding: clamp(12px, 2vw, 24px);
  background: var(--card);
}

.cs-duo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.project--full {
  grid-column: 1 / -1;
}

.project--full .project-media {
  background: #0b1b4d;
}

.project--full .project-media > img {
  position: absolute;
  top: 9%;
  right: 5%;
  width: auto;
  max-width: 62%;
  height: 82%;
  object-fit: contain;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%);
}

@media (max-width: 760px) {
  .project--full .project-media > img {
    top: 8%;
    right: 50%;
    height: auto;
    max-width: 88%;
    translate: 50% 0;
  }
}

.cs-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  margin: 0 var(--pad-x);
  padding: clamp(40px, 8vw, 110px) clamp(20px, 6vw, 80px);
  background: var(--tui-blue);
  overflow: hidden;
}

.cs-hero img {
  width: min(26%, 320px);
  height: auto;
  box-shadow: 0 30px 60px -30px rgb(8 30 60 / 55%);
}

.cs-hero img:nth-child(2) {
  width: min(38%, 460px);
  position: relative;
  z-index: 1;
  transform: translateY(-8%);
}

.cs-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 6vw, 88px);
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
}

.cs-block h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cs-block p {
  max-width: 60ch;
  font-weight: 300;
  line-height: 1.88;
  color: var(--body);
}

.cs-block p + p {
  margin-top: 18px;
}

.signs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px) 14px;
  padding: 0 var(--pad-x);
}

.sign {
  grid-column: span 4;
}

.sign:nth-child(1) {
  grid-column: 3 / span 8;
}

.sign:nth-child(2) {
  grid-column: 1 / span 5;
}

.sign:nth-child(3) {
  grid-column: 7 / span 5;
  margin-top: clamp(40px, 12vw, 180px);
}

.sign:nth-child(4) {
  grid-column: 2 / span 4;
}

.sign:nth-child(5) {
  grid-column: 7 / span 4;
  margin-top: clamp(30px, 8vw, 120px);
}

.sign-frame {
  overflow: hidden;
  background: var(--card);
}

.sign-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 723 / 1024;
  object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}

.sign:hover .sign-frame img {
  transform: scale(1.04);
}

.sign figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.sign figcaption span:last-child {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--muted);
}

.cs-title--long {
  font-size: clamp(56px, 11vw, 170px);
  font-weight: 400;
}

.cs-title--long .line:nth-child(2) {
  padding-left: clamp(14px, 8vw, 140px);
}

.cs-hero--warm {
  position: relative;
  background: #eadfcf;
}

.cs-hero--warm img.cs-hero-front {
  position: relative;
  z-index: 1;
  width: min(38%, 440px);
  transform: rotate(-2deg) translateX(-12%);
}

.cs-hero--warm .cs-hero-back {
  position: absolute;
  left: 52%;
  width: min(34%, 400px);
  transform: rotate(5deg);
}

.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin-top: clamp(24px, 4vw, 48px);
  padding: 0 var(--pad-x);
}

.feature-img {
  grid-column: 1 / span 6;
}

.feature-img figcaption,
.spreads figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.feature-text {
  grid-column: 8 / span 4;
}

.feature-text .label {
  margin-bottom: 20px;
}

.feature-text h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-text p:not(.label) {
  margin-bottom: 18px;
  font-weight: 300;
  line-height: 1.88;
  color: var(--body);
}

.spreads {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding: 0 var(--pad-x);
}

.spreads .sign:nth-child(1) {
  grid-column: 1 / span 5;
  margin-top: 0;
}

.spreads .sign:nth-child(2) {
  grid-column: 7 / span 5;
  margin-top: clamp(40px, 12vw, 180px);
}

.details {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr;
  gap: clamp(14px, 3vw, 40px);
  align-items: end;
  padding: 0 var(--pad-x);
}

.detail figcaption {
  margin-top: 14px;
}

.detail--stack {
  display: grid;
  gap: 14px;
}

.detail--stack figcaption {
  margin-top: 0;
}

.crop {
  position: relative;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: var(--card);
}

.crop img {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  max-width: none;
  height: auto;
  transform: translate(var(--x), var(--y));
}

@media (max-width: 760px) {
  .feature-img,
  .feature-text,
  .spreads .sign:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .spreads .sign:nth-child(2) {
    margin-top: 32px;
  }

  .details {
    grid-template-columns: 1fr 1fr;
  }

  .detail--stack {
    grid-column: 1 / -1;
  }

  .cs-hero--warm .cs-hero-front {
    width: 52%;
  }

  .cs-hero--warm .cs-hero-back {
    width: 44%;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px) 14px;
  padding: 0 var(--pad-x);
}

.card:nth-child(1) {
  grid-column: 2 / span 10;
}

.card:nth-child(2) {
  grid-column: 1 / span 6;
}

.card:nth-child(3) {
  grid-column: 7 / span 6;
  margin-top: clamp(40px, 8vw, 120px);
}

.card-frame {
  overflow: hidden;
  background: var(--card);
}

.card-frame img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-soft);
}

.card:hover .card-frame img {
  transform: scale(1.03);
}

.card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.card figcaption span:last-child {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

@media (max-width: 760px) {
  .card:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

.cs-next {
  display: block;
  margin-top: clamp(80px, 12vw, 160px);
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
  background: var(--dark);
  color: #fff;
}

.cs-next .label {
  color: var(--accent-light);
}

.cs-next-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.cs-next-title .arrow {
  font-family: var(--sans);
  font-size: 0.35em;
  font-style: normal;
  transition: transform 0.5s var(--ease);
}

.cs-next:hover .cs-next-title .arrow {
  transform: translateX(10px);
}

@media (max-width: 760px) {
  .cs-intro,
  .cs-block,
  .cs-duo {
    grid-template-columns: 1fr;
  }

  .signs {
    grid-template-columns: 1fr 1fr;
  }

  .sign,
  .sign:nth-child(n) {
    grid-column: span 1;
    margin-top: 0;
  }

  .sign:nth-child(1) {
    grid-column: 1 / -1;
    width: 72%;
    margin-inline: auto;
  }

  .sign:nth-child(3),
  .sign:nth-child(5) {
    margin-top: 48px;
  }
}

/* ---------- Reveal on scroll (JS only) ------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal="left"] {
  transform: translate3d(-36px, 0, 0);
}

.js [data-reveal="right"] {
  transform: translate3d(36px, 0, 0);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Page transition ----------------------------------------------- */

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--dark);
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}

.is-leaving .page-veil {
  transform: scaleY(1);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Custom cursor (fine pointers only) ---------------------------- */

.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: width 0.35s var(--ease-soft), height 0.35s var(--ease-soft), margin 0.35s var(--ease-soft),
    background-color 0.25s ease, opacity 0.3s;
  will-change: transform;
}

.cursor span {
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-link {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.cursor.is-view {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  background: rgb(12 12 12 / 88%);
  mix-blend-mode: normal;
}

.cursor.is-view span {
  opacity: 1;
  transition-delay: 0.1s;
}

.cursor.is-dark:not(.is-view) {
  background: var(--accent-light);
  mix-blend-mode: normal;
}

.cursor.is-hidden {
  opacity: 0;
}

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .line > span,
  .js .hero-bottom,
  .js .hero-side,
  .js .hero-dash {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .hero-grid {
    opacity: 0.055 !important;
  }

  .js .hero-stack {
    opacity: 1 !important;
    translate: none !important;
  }

  .js .hero-scroll-line {
    transform: none !important;
  }
}
