/* NARUDOL.COM — Editorial Modernist */
:root {
  /* Bone theme (default) */
  --bg: #FFFFFF;
  --ink: #000000;
  --mute: rgba(0, 0, 0, 0.55);
  --faint: rgba(0, 0, 0, 0.30);
  --hair: rgba(0, 0, 0, 0.13);
  --accent: #000000;
  --paper: #F6F6F6;

  --heading-line-height: 1.0925;
  --display: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "IBM Plex Sans Thai", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: clamp(24px, 4.5vw, 88px);
  --pad-y: clamp(64px, 9vw, 168px);
  --gap: clamp(20px, 2.5vw, 40px);
  --rule: 1px solid var(--hair);
}

[data-theme="paper"] {
  --bg: #FFFFFF;
  --paper: #F2F2F2;
  --ink: #000000;
  --mute: rgba(0, 0, 0, 0.55);
  --faint: rgba(0, 0, 0, 0.30);
  --hair: rgba(0, 0, 0, 0.13);
  --accent: #000000;
}
[data-theme="coal"] {
  --bg: #0A0A0A;
  --paper: #141414;
  --ink: #FFFFFF;
  --mute: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.32);
  --hair: rgba(255, 255, 255, 0.16);
  --accent: #FFFFFF;
}
[data-theme="ivory"] {
  --bg: #F4F4F4;
  --paper: #FFFFFF;
  --ink: #000000;
  --mute: rgba(0, 0, 0, 0.55);
  --faint: rgba(0, 0, 0, 0.30);
  --hair: rgba(0, 0, 0, 0.16);
  --accent: #000000;
}

[data-density="tight"] {
  --pad-x: clamp(20px, 3.5vw, 64px);
  --pad-y: clamp(48px, 7vw, 120px);
  --gap: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "ss01" 1;
  letter-spacing: -0.005em;
  cursor: default;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Type system */
.t-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: var(--heading-line-height);
}
.t-italic { font-style: italic; }
.t-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.t-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.t-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.t-body {
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}
.t-lede {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-style: italic;
  color: var(--ink);
}
.muted { color: var(--mute); }
.faint { color: var(--faint); }

/* Layout */
.shell { width: 100%; min-height: 100vh; }
.frame { padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); }
.rule-top { border-top: var(--rule); }
.rule-bot { border-bottom: var(--rule); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 0;
}

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--rule);
  padding-inline: var(--pad-x);
  font-family: var(--nav);
}
.nav, .nav * { font-family: var(--nav) !important; }
.nav .nav-logo, .nav .nav-logo * { font-family: var(--display) !important; }
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.nav-logo {
  display: inline-flex; align-items: center;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.nav-logo-img {
  height: 28px; width: auto;
  object-fit: contain;
  display: block;
  /* logo is white — invert on light themes */
  filter: invert(1);
}
[data-theme="coal"] .nav-logo-img { filter: none; }
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a, .nav-links button {
  position: relative; padding: 4px 0;
  color: var(--ink);
  transition: color .25s ease;
}
.nav-links a.active { color: var(--accent); }
.nav-links a:hover, .nav-links button:hover { color: var(--accent); }
.nav-meta {
  justify-self: end;
  display: flex; gap: 18px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-toggle {
  display: inline-flex; gap: 0;
  border: var(--rule); border-radius: 0;
  padding: 0;
  background: var(--bg);
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
  transition: all .2s ease;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

/* Hero — manifesto */
.hero {
  padding-inline: var(--pad-x);
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  margin-bottom: clamp(40px, 6vw, 80px);
  align-items: end;
}
.hero-meta .a { grid-column: 1 / span 4; }
.hero-meta .b { grid-column: 5 / span 4; }
.hero-meta .c { grid-column: 9 / span 4; text-align: right; }
.hero-statement {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 120px);
  line-height: var(--heading-line-height);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero-statement em { font-style: italic; color: var(--accent); font-feature-settings: "ss01" 1; }
.hero-tail {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
}
.hero-tail .scroll-cue { grid-column: 1 / span 4; display: flex; gap: 12px; align-items: center; }
.hero-tail .approach {
  grid-column: 7 / span 6;
  color: var(--mute);
}
.scroll-cue .arrow { display: inline-block; width: 14px; height: 14px; }

/* Marquee */
.marquee {
  border-top: var(--rule);
  border-bottom: var(--rule);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  padding: 22px 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1;
  animation: marquee 48s linear infinite;
}
.marquee-track span.dot { color: var(--accent); }
.marquee-track span.it { font-style: italic; color: var(--mute); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
  padding-bottom: clamp(28px, 3vw, 48px);
}
.sec-head .num { grid-column: 1 / span 2; }
.sec-head .title {
  grid-column: 3 / span 6;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: var(--heading-line-height);
  letter-spacing: -0.01em;
}
.sec-head .meta { grid-column: 10 / span 3; text-align: right; }

/* Work — featured grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(48px, 6vw, 88px);
}
.work-card {
  display: block;
  grid-column: span 6;
}
.work-card .frame-img {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: var(--rule);
  overflow: hidden;
}
.work-card .frame-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04));
  pointer-events: none;
}
.work-card .caption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 16px;
  gap: 16px;
}
.work-card h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  }
.work-card h3 em {
  display: block;
  margin-top: 0.3em;
  font-size: 80%;
  line-height: 1.2;
}
.work-card .tags {
  display: flex; gap: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--mute);
}
.work-card .yr { color: var(--mute); }
.work-card .project-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
}

.work-card { transition: opacity .3s ease; }
.work-card .project-image { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .project-image { transform: scale(1.012); }

/* Work index list */
.idx-list {
  border-top: var(--rule);
}
.idx-row {
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  column-gap: var(--gap);
  align-items: center;
  padding: 28px 0;
  border-bottom: var(--rule);
  position: relative;
  transition: background .2s ease, padding-inline .35s cubic-bezier(.2,.8,.2,1);
}
.idx-row:hover { padding-inline: 12px; }
.idx-row .n { font-family: var(--display); font-size: 14px; color: var(--mute); }
.idx-row .name-stack { display: flex; flex-direction: column; gap: 6px; }
.idx-row .name {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: color .2s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.idx-row:hover .name { color: var(--accent); }
.idx-row .sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0;
}
.idx-row .cta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .25s ease;
}
.idx-row:hover .cta { opacity: 1; transform: translateX(0); }

/* Floating preview cursor */
.float-preview {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  width: 280px; height: 360px;
  border: var(--rule);
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.float-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.float-preview .slot {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 8px),
    var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute);
  text-transform: uppercase;
  text-align: center; padding: 12px;
}

/* Services / capabilities */
.svc-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 0;
}
.svc-list li {
  list-style: none;
  grid-column: span 12;
  display: grid;
  grid-template-columns: 80px 1fr 0.6fr;
  align-items: baseline;
  column-gap: var(--gap);
  padding: 22px 0;
  border-bottom: var(--rule);
}
.svc-list li:first-child { border-top: var(--rule); }
.svc-list li .n { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.svc-list li .t {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.svc-list li .d {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
  max-width: 36ch;
}

/* Studio teaser on home */
.studio-teaser {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
  max-width: 70ch;
  border-top: var(--rule);
  padding-top: clamp(28px, 3vw, 48px);
}
.studio-teaser-body {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.012em;
}

/* Offerings — three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gap);
  border-top: var(--rule);
}
.pillars .col {
  padding: clamp(28px, 3vw, 48px) 0 clamp(48px, 5vw, 80px) 0;
  padding-right: var(--gap);
  border-right: var(--rule);
}
.pillars .col:last-child { border-right: 0; padding-right: 0; }
.pillars .num { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; }
.pillars h4 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pillars .lede {
  margin-top: 16px; max-width: 36ch;
  font-family: var(--display); font-style: italic;
  font-size: 18px; line-height: 1.4; color: var(--ink);
}
.pillars .copy { margin-top: 16px; max-width: 38ch; color: var(--mute); font-size: 14px; line-height: 1.55; }

/* Footer */
.foot {
  padding-block: clamp(48px, 5vw, 80px);
  padding-inline: var(--pad-x);
  border-top: var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  column-gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col-b { align-items: flex-start; }
.foot-col-c { align-items: flex-end; }
.foot-pull {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-weight: 500;
}
.foot-email {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}
.foot-label {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 2px;
}
.foot-social {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
}
.foot-social a { color: var(--ink); }
.foot-mark-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: invert(1);
}
[data-theme="coal"] .foot-mark-img { filter: none; }
.foot-meta {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: var(--rule);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--mute);
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .foot-col-b, .foot-col-c { align-items: flex-start; }
  .foot-mark-img { width: 100%; }
  .foot-meta { flex-direction: column; gap: 6px; }
}

/* About / contact pages */
.kicker-block {
  padding-inline: var(--pad-x);
  padding-block: clamp(48px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  border-bottom: var(--rule);
}
.kicker-block .num { grid-column: 1 / span 2; }
.kicker-block .lead {
  grid-column: 3 / span 8;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 96px);
  line-height: var(--heading-line-height);
  letter-spacing: -0.02em;
}
.kicker-block .lead em { font-style: italic; color: var(--accent); }
.studio-section-label { grid-column: 1 / span 4; }
.studio-section-content { grid-column: 5 / span 7; }

/* Contact page — friendly layout */
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-block { display: flex; flex-direction: column; gap: 12px; }
.info-block .info-body {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.info-block .info-body a { display: inline-block; }
.info-block .info-body-sm { font-size: 14px; }

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 0;
}
.contact-form .field {
  grid-column: span 6;
  border-bottom: var(--rule);
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form .field.full { grid-column: span 12; }
.contact-form label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--mute);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  padding: 4px 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.005em;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 18px;
  line-height: 1.5;
}
.contact-form .submit-row {
  grid-column: span 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  gap: 24px;
}
.contact-form .submit-meta { font-size: 13px; }
.contact-thanks { padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.thanks-headline {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 64px);
  line-height: var(--heading-line-height);
  letter-spacing: -0.015em;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { gap: 24px; }
  .info-block .info-body { font-size: 18px; }
  .contact-form .field { grid-column: span 12; }
  .contact-form input { font-size: 18px; }
  .contact-form textarea { font-size: 16px; }
  .contact-form .submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .contact-form .submit-row .submit-meta { text-align: left; }
  .contact-form .submit-row .btn { justify-content: center; width: 100%; }
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  background: var(--ink); color: var(--bg);
  border-radius: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn .arr { display: inline-block; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: var(--rule);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Project case study */
.cs-hero {
  padding-inline: var(--pad-x);
  padding-block: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
  border-bottom: var(--rule);
}
.cs-hero .crumb { grid-column: 1 / span 4; }
.cs-hero .meta { grid-column: 9 / span 4; text-align: right; }
.cs-hero .project-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.project-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.cs-hero .title {
  grid-column: 1 / span 12;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 140px);
  line-height: var(--heading-line-height);
  letter-spacing: -0.022em;
  margin-top: 32px;
}
.cs-hero .project-subtitle {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-weight: 400;
  color: var(--mute);
}
.cs-meta-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: 24px var(--pad-x);
  border-bottom: var(--rule);
  align-items: start;
}
.cs-meta-row .col { display: flex; flex-direction: column; gap: 6px; }
.cs-meta-row .col.span-3 { grid-column: span 3; }
.cs-meta-row .col .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.cs-meta-row .col .val { font-size: 14px; }

.cs-img-full .project-image { width: 100%; height: auto; aspect-ratio: 3/2; }
.cs-img-half .project-image { width: 100%; aspect-ratio: 4/5; }

.cs-text {
  padding-inline: var(--pad-x);
  padding-block: clamp(32px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  border-bottom: var(--rule);
}
.cs-text .lbl { grid-column: 1 / span 3; }
.cs-text .body-col { grid-column: 5 / span 7; }
.cs-text .body-col h3 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 56px); line-height: var(--heading-line-height); letter-spacing: -0.015em; margin-bottom: 24px; font-weight: 400; }
.cs-text .body-col p { color: var(--mute); font-size: 16px; line-height: 1.65; max-width: 56ch; margin-bottom: 16px; }
.cs-text .body-col p:last-child { margin-bottom: 0; }
.cs-text .body-col p strong { color: var(--ink); font-weight: 500; }

.cs-grid {
  padding-inline: var(--pad-x);
  padding-block: clamp(32px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: var(--gap);
}
.cs-grid > .span-6 { grid-column: span 6; }
.cs-grid > .span-12 { grid-column: span 12; }
.cs-grid > .span-4 { grid-column: span 4; }
.cs-grid > .span-8 { grid-column: span 8; }
.cs-grid > .span-7 { grid-column: span 7; }
.cs-grid > .span-5 { grid-column: span 5; }
.cs-grid .project-image { width: 100%; }
.cs-grid .span-6 .project-image { width: 100%; height: auto; aspect-ratio: 6/5; }
.cs-grid .span-12 .project-image { width: 100%; height: auto; aspect-ratio: 6/5; }
.cs-grid .span-4 .project-image { aspect-ratio: 4/5; }
.cs-grid .span-8 .project-image { aspect-ratio: 16/10; }
.cs-grid .span-7 .project-image { aspect-ratio: 5/4; }
.cs-grid .span-5 .project-image { aspect-ratio: 4/5; }

.next-project-name,
.next-project-type {
  display: block;
}
.next-project-type {
  margin-top: 0.3em;
  color: var(--mute);
  font-size: 80%;
  line-height: 1.2;
}

/* Brand color swatches (case study) */
.swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.swatches .sw {
  aspect-ratio: 4/5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em;
  border-right: var(--rule);
}
.swatches .sw:last-child { border-right: 0; }
.swatches .sw .name { text-transform: uppercase; }
.swatches .sw .hex { opacity: 0.6; margin-top: 4px; }

/* Page transition */
.page-fade { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Image slot — match hairline & paper */
.project-image {
  --is-bg: var(--paper);
  --is-fg: var(--mute);
  --is-border: var(--hair);
}

/* — no italic typography — */
[data-lang="jp"] {
  --display: "IBM Plex Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "IBM Plex Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav: "IBM Plex Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
em, i, .t-italic, .t-lede,
.hero-statement em,
.kicker-block .lead em,
.cs-hero .title em,
.idx-row .name em,
.work-card .caption em,
.cs-text .body-col h3 em {
  font-style: normal !important;
}

/* — clean: remove scattered small text — */
.t-eyebrow, .t-num,
.hero-meta,
.hero-tail .scroll-cue,
.sec-head .num, .sec-head .meta,
.cs-hero .crumb,
.foot-meta,
.work-card .caption .tags .yr {
  display: none !important;
}
.hero { padding-top: clamp(64px, 10vw, 160px); }
.hero-tail .approach { grid-column: 1 / span 8; }
.sec-head .title { grid-column: 1 / span 12; }
.cs-hero .meta { grid-column: 1 / span 12; text-align: left; }
.foot {
  padding-top: clamp(64px, 7vw, 120px);
}

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease, ease), opacity 0.2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 32px 24px 24px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.is-open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.drawer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: var(--rule);
  flex: 1;
}
.drawer-links li { border-bottom: var(--rule); }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 4px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
}
.drawer-links a .arr { font-size: 18px; }
.drawer-links a.active { opacity: 0.5; }
.drawer-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
}
.drawer-lang {
  display: inline-flex; border: 1px solid var(--ink);
}
.drawer-lang button {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mute);
  background: transparent;
}
.drawer-lang button + button { border-left: 1px solid var(--ink); }
.drawer-lang button.active { background: var(--ink); color: var(--bg); }
.drawer-mail {
  font-size: 14px;
  color: var(--mute);
  font-family: var(--sans);
}

@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto !important; height: 56px; }
  .nav-links { display: none !important; }
  .nav-meta { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-drawer { inset: 56px 0 0 0; }
  .nav-logo-img { height: 22px; }
}
/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 44.8px; }
  .hero-tail { margin-top: 20px; }
  .selected-work-section { padding-top: 44.8px; }
  .hero-meta .a, .hero-meta .b, .hero-meta .c { grid-column: 1 / -1; text-align: left; }
  .hero-meta .c { display: none; }
  .hero-tail .scroll-cue, .hero-tail .approach { grid-column: 1 / -1; }
  .work-card { grid-column: span 12; }
  .work-card .frame-img {
    width: calc(100% + var(--pad-x) + var(--pad-x));
    margin-inline: calc(-1 * var(--pad-x));
    border-inline: 0;
  }
  .cs-media, .cs-grid { padding-inline: 0; }

  .work-grid { row-gap: 32px; }
  .work-card h3 { margin-top: 0; }
  .work-card .caption {
    width: calc(100% + var(--pad-x) + var(--pad-x));
    margin-inline: calc(-1 * var(--pad-x));
    margin-top: 0;
    padding: 16px var(--pad-x) 24px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }
  .pillars { grid-template-columns: 1fr; }
  .pillars .col { border-right: 0; border-bottom: var(--rule); padding-right: 0; }
  .pillars .col:last-child { border-bottom: 0; }
  .idx-row { grid-template-columns: 40px 1fr 40px; padding: 20px 0; }
  .idx-row .cta { display: none; }
  .sec-head .num { grid-column: 1 / span 12; }
  .sec-head .title { grid-column: 1 / span 12; }
  .sec-head .meta { display: none; }
  .svc-list li { grid-template-columns: 36px 1fr; }
  .svc-list li .d { display: none; }
  .kicker-block .num { grid-column: 1 / -1; }
  .kicker-block .lead { grid-column: 1 / -1; }
  .studio-section-label,
  .studio-section-content { grid-column: 1 / -1; }
  .cs-text .lbl, .cs-text .body-col { grid-column: 1 / -1; }
  .cs-meta-row .col.span-3 { grid-column: span 6; }
  .cs-grid > .span-4, .cs-grid > .span-6, .cs-grid > .span-7, .cs-grid > .span-5, .cs-grid > .span-8 { grid-column: span 12; }
  .next-project-title { font-size: 28px !important; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .contact-form .field { grid-column: span 12; }
  .foot-grid .a, .foot-grid .b, .foot-grid .c { grid-column: 1 / -1; text-align: left; }
}

/* Native responsive images keep the original gallery crops. */
.project-image { display: block; object-fit: cover; object-position: center; }
/* Keyboard users can bypass repeated navigation. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--bg); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#main-content { scroll-margin-top: 80px; }
#main-content:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
