/* ============================================================
   Sahili Totale · sahilitotale.com
   paper + ink + one burnt coral accent
   Newsreader (display) · Inter (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  --paper: #faf6ec;
  --paper-tint: #f1ecdb;
  --card: #fffdf6;
  --ink: #1b1d16;
  --ink-soft: #585d4c;
  --hairline: rgba(27, 30, 22, 0.14);
  --accent: #47663f;
  --wash: rgba(226, 196, 92, 0.32);
  --dark: #22331c;
  --dark-text: #edefe0;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --hand: "Caveat", cursive;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id], footer[id] { scroll-margin-top: 76px; }

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

/* faint margin rails on wide screens, like ruled ledger paper */
@media (min-width: 1280px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(27, 30, 22, 0.09);
    z-index: 101;
    pointer-events: none;
  }
  body::before { left: calc(50% - (var(--wrap) / 2) - 32px); }
  body::after { right: calc(50% - (var(--wrap) / 2) - 32px); }

  /* the same rails, in light ink, where the page goes dark */
  .band-dark { position: relative; }
  .band-dark::before,
  .band-dark::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(237, 239, 224, 0.12);
    pointer-events: none;
  }
  .band-dark::before { left: calc(50% - (var(--wrap) / 2) - 32px); }
  .band-dark::after { right: calc(50% - (var(--wrap) / 2) - 32px); }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, .statement-quote { text-wrap: balance; }
p { text-wrap: pretty; }
.mono { font-variant-numeric: tabular-nums; }

img { display: block; max-width: 100%; }
a { color: inherit; }
a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(71, 102, 63, 0.14);
}
hr { border: none; border-top: 1px solid var(--hairline); margin: 1.4rem 0; }

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

strong { font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.identity {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}



.primary-nav { display: flex; gap: 22px; }
.primary-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 140ms ease;
}
.primary-nav a:hover { color: var(--ink); }

/* ---------------- buttons & links ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  border: 1.5px solid var(--ink);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: scale(0.96); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }

.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.header-cta { padding: 10px 20px; font-size: 0.85rem; white-space: nowrap; }
.header-cta-short { display: none; }



.link-underline {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 140ms ease;
  width: fit-content;
}
.link-underline:hover { color: var(--accent); }

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
  gap: 64px;
  align-items: center;
  padding-block: 88px 76px;
}

.hero-copy,
.hero-portrait,
.work-card,
.project,
.vanta-copy,
.vanta-list,
.notebook-copy,
.desk,
.door,
.door-stack,
.letter {
  min-width: 0;
}

.hero-hi {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.wave { font-style: normal; display: inline-block; }

h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 18ch;
}

.hero-body p {
  max-width: 56ch;
  margin: 0 0 16px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.hero-body strong { color: var(--ink); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-portrait {
  margin: 0;
  position: relative;
  background: #fffef8;
  padding: 14px 14px 16px;
  border-radius: 8px;
  transform: rotate(1.4deg);
  box-shadow:
    0 2px 6px rgba(27, 30, 22, 0.07),
    0 22px 48px rgba(27, 30, 22, 0.16),
    inset 0 0 0 1px rgba(27, 30, 22, 0.05);
}

.now-card {
  padding: 12px 4px 0;
}
.now-label {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 2px;
  transform: rotate(-1deg);
  width: fit-content;
}
.now-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.85;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 3px;
  outline: 1px solid rgba(27, 30, 22, 0.1);
  outline-offset: -1px;
}

/* handwritten margin notes */
.margin-note {
  font-family: var(--hand);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--accent);
  transform: rotate(-2.5deg);
  max-width: 210px;
}
.portrait-note {
  margin: 18px 0 0 auto;
  text-align: right;
}

/* ---------------- statement ---------------- */

.statement {
  border-block: 1px solid var(--hairline);
  padding-block: 84px;
  text-align: center;
}
.statement-quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 26ch;
}
.statement-body {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.index-card .card-note {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--accent);
  transform: rotate(-1.5deg);
  width: fit-content;
  margin: 14px 0 0;
}

/* ---------------- sections ---------------- */

.section { padding-block: 96px; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .margin-note { margin-bottom: 6px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.section-lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0;
}
.section-lede strong { color: var(--ink); }

/* ---------------- work cards ---------------- */

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.work-card {
  background: var(--card);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow:
    0 1px 2px rgba(27, 30, 22, 0.05),
    0 4px 14px rgba(27, 30, 22, 0.06),
    inset 0 0 0 1px rgba(27, 30, 22, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(27, 30, 22, 0.05),
    0 12px 28px rgba(27, 30, 22, 0.09),
    inset 0 0 0 1px rgba(27, 30, 22, 0.07);
}

.work-card { display: flex; flex-direction: column; }

.work-proof {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.work-metric {
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}
.metric-of {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.work-metric-label {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.work-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.work-role {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.work-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.earlier-work {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.earlier-work > p {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--accent);
  transform: rotate(-1.5deg);
  width: fit-content;
}
.earlier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 40px;
}
.earlier-list li {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.earlier-name {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}
.earlier-desc {
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* logo strip: real marks, quiet */
.logo-band { padding-bottom: 56px; }
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 220ms ease;
}
.logo-item:hover { opacity: 1; }
.logo-item img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 220ms ease, opacity 220ms ease;
}
.logo-item:hover img { filter: grayscale(0); opacity: 1; }
.logo-item span:last-child {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.logo-mili span:last-child {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

/* ---------------- after hours ---------------- */

.afterhours {
  margin: 56px 0 52px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}
.afterhours-note {
  font-size: 1.5rem;
  margin: 0 0 22px;
  transform: rotate(-1.5deg);
  width: fit-content;
}

/* ---------------- started / projects ---------------- */

.band-tint { background: var(--paper-tint); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.project {
  background: var(--card);
  border-radius: 18px;
  padding: 30px 30px 28px;
  box-shadow:
    0 1px 2px rgba(27, 30, 22, 0.05),
    0 4px 14px rgba(27, 30, 22, 0.06),
    inset 0 0 0 1px rgba(27, 30, 22, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(27, 30, 22, 0.05),
    0 12px 28px rgba(27, 30, 22, 0.09),
    inset 0 0 0 1px rgba(27, 30, 22, 0.07);
}
.project h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.project p { margin: 0; color: var(--ink-soft); max-width: 52ch; font-size: 0.95rem; }
.project-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.project-metric {
  margin-top: auto !important;
  padding-top: 16px;
  font-family: var(--sans) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

.studio-spread {
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
}
.studio-spread img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
  border-radius: 12px;
  outline: 1px solid rgba(27, 30, 22, 0.12);
  outline-offset: -1px;
  box-shadow: 0 4px 14px rgba(27, 30, 22, 0.07);
}
.studio-spread figcaption {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  margin-top: 4px;
}



/* ---------------- vanta (dark) ---------------- */

.band-dark {
  background: var(--dark);
  color: var(--dark-text);
}
.band-dark .section-lede { color: rgba(237, 239, 224, 0.85); font-size: 1.15rem; }

.vanta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: 72px;
  align-items: center;
}

.vanta-note-hand { margin: 0 0 10px; transform: rotate(-2deg); color: #d9c26a; }

.vanta-title {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 24px;
}

.vanta-body {
  max-width: 54ch;
  font-size: 1.02rem;
  color: rgba(237, 239, 224, 0.72);
  margin: 18px 0 34px;
}

.vanta-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(237, 239, 224, 0.9);
  margin: 0 0 30px;
}

.vanta-list {
  display: flex;
  flex-direction: column;
}
.vanta-item {
  padding-block: 26px;
}
.vanta-item + .vanta-item { border-top: 1px solid rgba(237, 239, 224, 0.14); }
.vanta-item h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.vanta-item p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(237, 239, 224, 0.6);
}

/* ---------------- sahilitries desk ---------------- */

.notebook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 72px;
  align-items: center;
}
.notebook-copy .section-lede { margin-bottom: 30px; }

.desk {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.index-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow:
    0 1px 2px rgba(27, 30, 22, 0.06),
    0 10px 26px rgba(27, 30, 22, 0.1),
    inset 0 0 0 1px rgba(27, 30, 22, 0.07);
  max-width: 420px;
}

.card-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.card-b .card-label { margin-bottom: 14px; }
.index-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.index-card p { color: var(--ink-soft); margin: 0; font-size: 0.93rem; }
.index-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.index-card li { margin-bottom: 8px; }
.index-card li:last-child { margin-bottom: 0; }

/* ---------------- about letter ---------------- */

.about-wrap { max-width: 780px; }
.about-wrap h2 { margin-bottom: 36px; }

.letter {
  background: var(--card);
  border-radius: 22px;
  padding: 48px 52px;
  box-shadow:
    0 1px 2px rgba(27, 30, 22, 0.05),
    0 10px 30px rgba(27, 30, 22, 0.08),
    inset 0 0 0 1px rgba(27, 30, 22, 0.07);
}
.letter-label {
  font-family: var(--hand) !important;
  font-style: normal !important;
  font-size: 1.25rem !important;
  color: var(--accent) !important;
  margin: 0 auto 18px !important;
  max-width: 560px;
  transform: rotate(-1.5deg);
}

.letter p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 560px;
}
.letter p:last-of-type { margin-bottom: 0; }

.signature {
  font-family: var(--hand) !important;
  font-style: normal !important;
  font-size: 2.3rem !important;
  color: var(--accent) !important;
  transform: rotate(-3deg);
  margin-top: 30px !important;
}

/* ---------------- work together ---------------- */

.together-title { margin-bottom: 44px; }

.together-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 18px;
  background: var(--card);
  padding: 34px 32px;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(27, 30, 22, 0.05),
    0 4px 14px rgba(27, 30, 22, 0.06),
    inset 0 0 0 1px rgba(27, 30, 22, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.door:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(27, 30, 22, 0.05),
    0 12px 28px rgba(27, 30, 22, 0.1),
    inset 0 0 0 1px rgba(27, 30, 22, 0.07);
}

.door-featured {
  background: var(--dark);
  color: var(--dark-text);
  padding: 44px 42px;
  justify-content: center;
}
.door-featured:hover { box-shadow: 0 14px 34px rgba(27, 30, 22, 0.28); }

.door-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.door-stack .door { flex: 1; }

.door-for {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.door-featured .door-for { color: rgba(237, 239, 224, 0.7); }

.door h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.door-featured h3 { font-size: 1.9rem; }

.door-desc { color: var(--ink-soft); margin: 0 0 24px; font-size: 0.97rem; }
.door-featured .door-desc { color: rgba(237, 239, 224, 0.75); }

.door-btn { margin-top: auto; }
.door-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.door:hover .door-link { color: var(--accent); }
.path-arrow { display: inline-block; transition: transform 180ms ease; }
.door:hover .path-arrow { transform: translate(2px, -2px); }

/* ---------------- cursor chips ---------------- */

#cursor-you {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  opacity: 0;
  transition: opacity 500ms ease;
  will-change: transform;
}
#cursor-you.visible { opacity: 0.85; }
@media (hover: none), (pointer: coarse) { #cursor-you { display: none; } }
@media (prefers-reduced-motion: reduce) { #cursor-you { display: none; } }

.cursor-chip {
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--paper-tint);
  padding-block: 80px 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}

.footer-note {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--accent);
  transform: rotate(-1.2deg);
  margin: 0 0 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-block: 10px;
  width: 100%;
  max-width: 560px;
  margin-bottom: 20px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.footer-nav a:hover { color: var(--accent); background: rgba(27, 30, 22, 0.05); }
.footer-nav a:active { transform: scale(0.96); }
.footer-nav svg { width: 19px; height: 19px; }

.footer-base {
  margin: 0;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------------- marks (highlight wash) ---------------- */

.mark {
  font-style: italic;
  padding: 0.04em 0.12em;
  background-image: linear-gradient(var(--wash), var(--wash));
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 0% 74%;
  transition: background-size 900ms cubic-bezier(0.5, 0, 0.2, 1) 200ms;
}
.mark.marked { background-size: 100% 74%; }

@media (prefers-reduced-motion: reduce) {
  .mark { background-size: 100% 74%; transition: none; }
}


/* ---------------- inline links ---------------- */

.inline-link {
  color: var(--accent);
  text-decoration: none;
  padding: 0.02em 0.1em;
  margin-inline: -0.1em;
  border-radius: 3px;
  background-image: linear-gradient(var(--wash), var(--wash));
  background-repeat: no-repeat;
  background-position: 0 66%;
  background-size: 0% 68%;
  transition: background-size 260ms cubic-bezier(0.5, 0, 0.2, 1);
}
.inline-link:hover { background-size: 100% 68%; }
.inline-link strong { color: inherit; }

/* ---------------- custom cursor ---------------- */

body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26"><path d="M6 3 L6 20.5 L10.6 16.2 L13.4 22.6 L16.4 21.3 L13.6 15 L20 14.6 Z" fill="%231b1d16" stroke="%23faf6ec" stroke-width="1.6" stroke-linejoin="round"/></svg>') 5 3, auto;
}

a, button, .btn, .path-arrow, summary, [role="button"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26"><path d="M6 3 L6 20.5 L10.6 16.2 L13.4 22.6 L16.4 21.3 L13.6 15 L20 14.6 Z" fill="%2347663f" stroke="%23faf6ec" stroke-width="1.6" stroke-linejoin="round"/></svg>') 5 3, pointer;
}

@media (hover: none), (pointer: coarse) {
  body, a, button, .btn { cursor: auto; }
}

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
.work-cards .reveal:nth-child(2), .project-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.work-cards .reveal:nth-child(3), .project-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.project-grid .reveal:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transform: none; }
}

/* ---------------- responsive ---------------- */

/* Narrow laptops: preserve the desktop composition, tighten its internals. */
@media (max-width: 1100px) {
  .hero { gap: 48px; }
  .work-cards { gap: 18px; }
  .work-card { padding: 28px 24px; }
  .vanta-grid,
  .notebook-grid { gap: 52px; }
  .together-grid { gap: 18px; }
}

/* Tablet: deliberate one- and two-column compositions, never squeezed desktop grids. */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .section { padding-block: 80px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-block: 48px 64px;
  }
  .hero-copy { max-width: 720px; }
  .hero-portrait {
    order: -1;
    width: clamp(200px, 36vw, 320px);
    margin: 0;
    transform: none;
    padding: 8px 8px 10px;
  }
  .hero-portrait img {
    aspect-ratio: 1 / 1;
    object-position: 50% 30%;
  }
  .now-card { display: none; }

  .statement { padding-block: 72px; }
  .section-head { margin-bottom: 44px; }

  .work-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 56px;
  }
  .work-card:last-child { grid-column: 1 / -1; }

  .earlier-list { gap: 18px 28px; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-spread img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .vanta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .vanta-copy { max-width: 720px; }
  .vanta-list { max-width: 720px; }

  .notebook-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .notebook-copy { max-width: 720px; }
  .desk {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
  }
  .index-card {
    width: 100%;
    max-width: none;
  }

  .together-grid { grid-template-columns: minmax(0, 1fr); }
  .door-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .letter { padding: 40px 36px; }

  body,
  a,
  button,
  .btn { cursor: auto; }
  #cursor-you { display: none; }
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Phones and small tablets: every content card becomes a true full-width row. */
@media (max-width: 700px) {
  .work-cards,
  .project-grid,
  .desk,
  .door-stack,
  .earlier-list { grid-template-columns: minmax(0, 1fr); }
  .work-card:last-child { grid-column: auto; }

  .studio-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .studio-spread img,
  .studio-spread img:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Small phones: compact type, spacing, and controls without changing the story. */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }

  .header-inner {
    gap: 12px;
    padding-block: 11px;
  }
  .identity { font-size: 1rem; }
  .header-cta { padding: 10px 14px; }
  .header-cta-long { display: none; }
  .header-cta-short { display: inline; }

  .hero {
    gap: 36px;
    padding-block: 38px 52px;
  }
  h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.08;
    margin-bottom: 24px;
  }
  .hero-body p { font-size: 1rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 18px;
    margin-top: 26px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions .link-underline { justify-self: center; }

  .logo-band { padding-bottom: 44px; }
  .logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 26px;
  }
  .logo-item { min-width: 0; }
  .logo-item span:last-child { font-size: 0.88rem; }

  .statement { padding-block: 60px; }
  .statement-quote { font-size: 1.65rem; }
  .statement-body { font-size: 1rem; }

  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
  .section-lede { font-size: 1rem; }
  h2 { margin-bottom: 16px; }

  .work-cards { gap: 16px; margin-bottom: 48px; }
  .work-card,
  .project {
    width: 100%;
    padding: 24px 22px;
    border-radius: 16px;
  }
  .work-metric { font-size: 2.05rem; }
  .earlier-work { gap: 14px; }

  .afterhours {
    margin: 48px 0 42px;
    padding-top: 42px;
  }
  .project-grid { gap: 16px; margin-bottom: 38px; }
  .studio-spread { margin-bottom: 24px; }
  .studio-spread figcaption {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .vanta-grid { gap: 34px; }
  .vanta-title { font-size: 2.35rem; margin-bottom: 20px; }
  .vanta-body { margin: 16px 0 26px; font-size: 1rem; }
  .vanta-item { padding-block: 20px; }
  .vanta-copy > .btn { width: 100%; justify-content: center; }

  .notebook-grid { gap: 36px; }
  .index-card {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .together-title { margin-bottom: 32px; }
  .together-grid,
  .door-stack { gap: 16px; }
  .door,
  .door-featured {
    width: 100%;
    padding: 26px 22px;
    border-radius: 16px;
  }
  .door-featured h3 { font-size: 1.65rem; }
  .door-featured .btn { width: 100%; justify-content: center; }

  .letter {
    width: 100%;
    padding: 28px 22px;
    border-radius: 16px;
  }
  .letter p {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .site-footer { padding-block: 64px 40px; }
  .footer-note {
    max-width: 28ch;
    margin-bottom: 30px;
  }
  .footer-nav a { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-cta { padding-inline: 12px; font-size: 0.8rem; }
  .btn { padding-inline: 20px; }
}
