/* ========================================================================
   Tokens
   ======================================================================== */
:root {
  --bg:        #F3EDDF;
  --bg-deep:   #ECE3CF;
  --ink:       #1A1A1A;
  --ink-soft:  #4A4A4A;
  --ink-faint: #8A8276;
  --accent:    #2B4A2A;
  --rule:      #D4C9B0;

  --pad-x: 40px;
  --maxw: 1680px;
}

@media (max-width: 720px) {
  :root { --pad-x: 24px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.italic-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ========================================================================
   Nav
   ======================================================================== */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 18px var(--pad-x);
  padding-top: max(18px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}
nav.top .brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
nav.top .brand .italic-accent { font-size: 17px; }
nav.top ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
nav.top a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
nav.top a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
nav.top a:hover::after,
nav.top a.is-current::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-burger span:nth-child(1) { top: 10px; }
.nav-burger span:nth-child(2) { top: 16px; }
.nav-burger span:nth-child(3) { top: 22px; }
body.nav-open .nav-burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-burger { display: block; }
  nav.top ul {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad-x) 24px;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 49;
  }
  nav.top ul li { border-top: 1px solid var(--rule); }
  nav.top ul li:first-child { border-top: 0; }
  nav.top ul a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
  }
  body.nav-open nav.top ul { transform: translateY(0); }
}

/* ========================================================================
   Hero (home)
   ======================================================================== */
.hero {
  padding: 60px var(--pad-x) 80px;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
  gap: 24px;
}
.hero-meta .left, .hero-meta .right { line-height: 1.7; }
.hero-meta .right { text-align: right; }
.hero-title {
  font-weight: 400;
  font-size: clamp(44px, 14vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}
.hero-title .letter {
  position: relative;
  display: inline-block;
  cursor: default;
  transition: color .22s cubic-bezier(.4, 0, .2, 1);
}
.hero-title .letter::before {
  content: attr(data-swap);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', system-ui, sans-serif;
  font-size: 0.85em;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  transition: opacity .2s ease;
}
.hero-title .letter.is-italic::before {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1em;
}
.hero-title .letter:hover { color: transparent; }
.hero-title .letter:hover::before { opacity: 1; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.hero-blurb {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 640px;
}
.hero-blurb .italic-accent { font-size: 1.15em; display: inline-block; transform: translateY(-0.04em); line-height: 1.35; }
.hero-now {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero-now .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .hero { padding: 40px var(--pad-x) 60px; }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 28px;
  }
}

/* ========================================================================
   Section headers
   ======================================================================== */
section { padding: 100px var(--pad-x); border-top: 1px solid var(--rule); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .index {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section-head h2 {
  font-weight: 500;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.section-head h2 .italic-accent { font-size: 1.18em; display: inline-block; transform: translateY(-0.05em); line-height: 0.9; }
.section-head .meta-right {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.7;
}

@media (max-width: 720px) {
  section { padding: 60px var(--pad-x); }
  .section-head { margin-bottom: 36px; }
}

/* ========================================================================
   Work list (home)
   ======================================================================== */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-item {
  display: grid;
  grid-template-columns: 80px 1.6fr 1fr 120px;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: padding .3s ease;
  text-decoration: none;
  color: var(--ink);
}
.work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-item:hover { padding-left: 16px; }
.work-item:hover .work-title {
  color: var(--bg);
  background-color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px);
  letter-spacing: -0.015em;
  padding: 6px 18px;
  margin-left: -18px;
}
.work-num {
  font-size: 14px;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
}
.work-title {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 6px 0;
  margin-left: 0;
  background-color: transparent;
  transition: color .3s ease, font-size .3s ease, letter-spacing .3s ease, padding .3s ease, margin-left .3s ease, background-color .3s ease;
}
.work-title .italic-accent { font-size: 1.15em; display: inline-block; transform: translateY(-0.04em); line-height: 1; }
.work-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.work-year {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: right;
  font-feature-settings: "tnum";
}

@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 40px 1fr 80px;
    gap: 16px 20px;
    padding: 28px 0;
  }
  .work-item .work-desc {
    grid-column: 2 / 4;
    font-size: 13px;
  }
  .work-item:hover { padding-left: 8px; }
}

/* Also-worked-with strip (NDA brands) */
.also-worked {
  padding-top: 48px;
  display: flex;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 32px;
}
.also-worked .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.also-worked .brands {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========================================================================
   About (home preview)
   ======================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.about-lead {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.7;
}
.about-body p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body .italic-accent { font-size: 1.15em; display: inline-block; transform: translateY(-0.04em); line-height: 1.4; }
.about-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

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

/* ========================================================================
   Footer
   ======================================================================== */
footer {
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-cta {
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.footer-cta .italic-accent { font-size: 1.18em; display: inline-block; transform: translateY(-0.05em); line-height: 0.95; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 10px;
  color: var(--ink-faint);
  padding-top: 16px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  footer { padding: 60px var(--pad-x) 32px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }
}

/* ========================================================================
   Case page
   ======================================================================== */
.case-hero {
  padding: 60px var(--pad-x) 80px;
}
.case-hero .case-num {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.case-hero h1 {
  font-weight: 400;
  font-size: clamp(44px, 10vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.case-hero h1 .italic-accent { font-size: 1.18em; display: inline-block; transform: translateY(-0.05em); line-height: 0.88; }
.case-hero .case-tagline {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 800px;
}

.case-cover {
  margin: 0 var(--pad-x) 0;
  border-top: 1px solid var(--rule);
}
.case-cover .ph {
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-cover img,
.case-cover video { width: 100%; display: block; }

.case-cover-grid {
  margin: 0 var(--pad-x);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.case-cover-grid img { width: 100%; display: block; }

.case-video {
  margin: 0 var(--pad-x);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.case-video video {
  width: 100%;
  display: block;
  background: var(--ink);
}
.case-video .caption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* YouTube playlist cards */
.yt-section {
  margin: 0 var(--pad-x);
  padding: 80px 0 32px;
  border-top: 1px solid var(--rule);
}
.yt-section .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.yt-section .head h3 {
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.yt-section .head .count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.yt-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.yt-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  overflow: hidden;
}
.yt-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.yt-card .thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 4vw, 56px);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.yt-card:hover .thumb img { transform: scale(1.04); }
.yt-card:hover .thumb::after { transform: scale(1.15); }
.yt-card .info {
  padding: 14px 0 0;
}
.yt-card .show {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.yt-card .cta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .3s ease;
}
.yt-card:hover .cta { color: var(--accent); }

@media (max-width: 900px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .yt-grid { grid-template-columns: 1fr; }
  .yt-section { padding: 60px 0 24px; }
}

/* Bento grid — mixed-aspect tiles for SMM-style case galleries */
.bento {
  margin: 0 var(--pad-x);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  --bento-cell: calc((100vw - var(--pad-x) * 2 - 11 * 12px) / 12);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: var(--bento-cell);
  gap: 12px;
  grid-template-areas:
    "w2 w2 w2 w2 w2 w2 s1 s1 s1 s2 s2 s2"
    "w2 w2 w2 w2 w2 w2 s1 s1 s1 s2 s2 s2"
    "w2 w2 w2 w2 w2 w2 s1 s1 s1 s2 s2 s2"
    "w3 w3 w3 w3 w3 w3 t1 t1 t1 s3 s3 s3"
    "w3 w3 w3 w3 w3 w3 t1 t1 t1 s3 s3 s3"
    "w3 w3 w3 w3 w3 w3 t1 t1 t1 s3 s3 s3"
    "w4 w4 w4 w4 w4 w4 t1 t1 t1 s4 s4 s4"
    "w4 w4 w4 w4 w4 w4 t1 t1 t1 s4 s4 s4"
    "w4 w4 w4 w4 w4 w4 t1 t1 t1 s4 s4 s4"
    "s5 s5 s5 w5 w5 w5 w5 w5 w5 .  .  ."
    "s5 s5 s5 w5 w5 w5 w5 w5 w5 .  .  ."
    "s5 s5 s5 w5 w5 w5 w5 w5 w5 .  .  .";
}
.bento > * { overflow: hidden; }
.bento img, .bento video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento .w2 { grid-area: w2; }
.bento .w3 { grid-area: w3; }
.bento .w4 { grid-area: w4; }
.bento .w5 { grid-area: w5; }
.bento .s1 { grid-area: s1; }
.bento .s2 { grid-area: s2; }
.bento .s3 { grid-area: s3; }
.bento .s4 { grid-area: s4; }
.bento .s5 { grid-area: s5; }
.bento .t1 { grid-area: t1; }

/* Bento — tablet (single col stack of pairs) */
@media (max-width: 900px) {
  .bento {
    --bento-cell: calc((100vw - var(--pad-x) * 2 - 5 * 12px) / 6);
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "s1 s1 s1 s2 s2 s2"
      "s1 s1 s1 s2 s2 s2"
      "s1 s1 s1 s2 s2 s2"
      "w2 w2 w2 w2 w2 w2"
      "w2 w2 w2 w2 w2 w2"
      "w2 w2 w2 w2 w2 w2"
      "t1 t1 t1 s3 s3 s3"
      "t1 t1 t1 s3 s3 s3"
      "t1 t1 t1 s4 s4 s4"
      "t1 t1 t1 s4 s4 s4"
      "t1 t1 t1 s5 s5 s5"
      "t1 t1 t1 s5 s5 s5"
      "w3 w3 w3 w3 w3 w3"
      "w3 w3 w3 w3 w3 w3"
      "w3 w3 w3 w3 w3 w3"
      "w4 w4 w4 w4 w4 w4"
      "w4 w4 w4 w4 w4 w4"
      "w4 w4 w4 w4 w4 w4"
      "w5 w5 w5 w5 w5 w5"
      "w5 w5 w5 w5 w5 w5"
      "w5 w5 w5 w5 w5 w5";
  }
}
@media (max-width: 540px) {
  .bento {
    --bento-cell: calc((100vw - var(--pad-x) * 2 - 12px) / 2);
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "s1 s2"
      "s1 s2"
      "w2 w2"
      "w2 w2"
      "t1 s3"
      "t1 s3"
      "t1 s4"
      "t1 s4"
      "w3 w3"
      "w3 w3"
      "s5 s5"
      "s5 s5"
      "w4 w4"
      "w4 w4"
      "w5 w5"
      "w5 w5";
  }
}

@media (max-width: 720px) {
  .case-cover-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
}

/* case content blocks */
.case-block {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.case-block .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 6px;
}
.case-block .body p {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 780px;
}
.case-block .body p:last-child { margin-bottom: 0; }

.case-meta {
  padding: 60px var(--pad-x) 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.case-meta .item .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.case-meta .item .v {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .case-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 48px var(--pad-x);
  }
  .case-meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* gallery */
.gallery {
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--rule);
}
.gallery .row {
  display: grid;
  gap: 24px;
  padding: 24px 0;
}
.gallery .row.cols-1 { grid-template-columns: 1fr; }
.gallery .row video { width: 100%; display: block; }
.gallery .row.fill { align-items: stretch; }
.gallery .row.fill video,
.gallery .row.fill img { height: 100%; object-fit: cover; }
.gallery .row.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery .row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery .row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery .row.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery .ph {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery .row.cols-1 .ph { aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .gallery .row.cols-4,
  .gallery .row.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gallery .row.cols-2,
  .gallery .row.cols-3 { grid-template-columns: 1fr; }
  .gallery .row.cols-4,
  .gallery .row.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Gallery section heading (Брендбук / Суббренды / Веб) */
.gallery-section-head {
  padding: 60px var(--pad-x) 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--rule);
}
.gallery-section-head h3 {
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.gallery-section-head .count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Mobile screen mockups — tall phone-format screens */
.mockup-row {
  padding: 32px var(--pad-x);
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.mockup-row img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .mockup-row { gap: 20px; }
  .mockup-row img { width: 100%; max-width: 320px; }
}

/* case footer nav (prev/all/next) */
.case-nav {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: baseline;
}
.case-nav a {
  text-decoration: none;
  color: var(--ink);
}
.case-nav .all {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.case-nav .all:hover { color: var(--accent); }
.case-nav .next {
  text-align: right;
}
.case-nav .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 12px;
}
.case-nav .title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 5px 0;
  background-color: transparent;
  transition: color .3s ease, font-size .3s ease, letter-spacing .3s ease, padding .3s ease, margin .3s ease, background-color .3s ease;
}
.case-nav a:hover .title {
  color: var(--bg);
  background-color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.015em;
  padding: 5px 14px;
  margin-left: -14px;
}
.case-nav .next:hover .title { margin-left: 0; margin-right: -14px; }

@media (max-width: 720px) {
  .case-nav {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px var(--pad-x);
  }
  .case-nav .all { text-align: left; }
  .case-nav .next { text-align: left; }
}

/* ========================================================================
   About page
   ======================================================================== */
.about-hero {
  padding: 80px var(--pad-x) 60px;
}
.about-hero h1 {
  font-weight: 400;
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.about-hero h1 .italic-accent { font-size: 1.18em; display: inline-block; transform: translateY(-0.05em); line-height: 0.9; }

.about-full {
  padding: 60px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.about-full .meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.8;
}
.about-full .text p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  margin-bottom: 24px;
  max-width: 780px;
}
.about-full .text p:last-child { margin-bottom: 0; }

.about-skills {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.about-skills h3 {
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-skills h3 .italic-accent { font-size: 1.15em; display: inline-block; transform: translateY(-0.04em); line-height: 1; }
.about-skills .body p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 780px;
}

@media (max-width: 900px) {
  .about-full,
  .about-skills {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.about-exp {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.about-exp h2 {
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  line-height: 1;
}
.about-exp .row {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.about-exp .row:last-child { border-bottom: 1px solid var(--rule); }
.about-exp .row .when {
  font-size: 13px;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
}
.about-exp .row .what .role {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.about-exp .row .what .where {
  font-size: 14px;
  color: var(--ink-soft);
}
.about-exp .row .note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .about-exp .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .about-exp .row .note { text-align: left; }
}

.about-cv {
  padding: 60px var(--pad-x) 80px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.about-cv .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-cv a {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  transition: color .3s ease, border-color .3s ease;
}
.about-cv a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* About expand — inline accordion */
button.about-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
  padding: 0 0 2px;
}
.about-expanded {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(.4, 0, .2, 1);
}
.about-expanded.is-open {
  grid-template-rows: 1fr;
}
.about-expanded > .about-expanded-inner {
  overflow: hidden;
}

