/* asifhasanzeshan.xyz — paper, ink and one yellow */

:root {
  --paper: #F5F2F0;
  --paper-2: #ECE8E3;
  --ink: #1A1A1A;
  --ink-2: #262624;
  --yellow: #FFDE21;
  --muted: #5E5E55;
  --muted-on-ink: #A9A69F;
  --line: rgba(26, 26, 26, 0.16);
  --line-on-ink: rgba(245, 242, 240, 0.18);

  --gutter: clamp(20px, 3.9vw, 56px);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap { padding-inline: var(--gutter); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Paper grain over everything, very quiet */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  color: var(--ink);
  --mark-bg: var(--ink);
  --mark-fg: var(--yellow);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  transition: color 0.3s ease;
}
.site-header[data-tone="ink"] {
  color: var(--paper);
  --mark-bg: var(--yellow);
  --mark-fg: var(--ink);
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
}
.site-header[data-tone="yellow"] {
  --mark-fg: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; transition: transform 0.5s var(--ease-out); }
.brand:hover svg { transform: rotate(90deg); }
.brand .mark-bg { fill: var(--mark-bg); transition: fill 0.3s ease; }
.brand .mark-fg { stroke: var(--mark-fg); transition: stroke 0.3s ease; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--btn-bg, var(--ink));
  border-radius: 3px;
  background: var(--btn-bg, var(--ink));
  color: var(--btn-fg, var(--paper));
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Drafting sheet behind the page: a grid with construction lines that draw themselves. */
.blueprint {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(20px, 6vh, 64px));
  padding-bottom: clamp(20px, 3vw, 40px);
}

.hero h1 {
  max-width: 26em;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 400;
}
.hero h1 strong { display: block; font-weight: 750; }
.hero h1 span { display: block; color: var(--muted); }

/* Two reels and a dimension line: the algorithm pairs a word from each side. */
.slot {
  display: flex;
  align-items: center;
  margin-block: auto;
  padding-block: clamp(28px, 7vh, 88px);
  font-size: 7.1vw;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}
.reel {
  display: flex;
  flex: none;
  height: 1.16em;
  overflow: hidden;
}
.reel--b { justify-content: flex-end; }
.reel-strip {
  display: flex;
  flex-direction: column;
  flex: none;
  will-change: transform;
}
.reel--b .reel-strip { align-items: flex-end; }
.reel-strip > span { display: block; flex: none; width: max-content; height: 1.16em; }

.dim {
  position: relative;
  flex: 1 1 auto;
  min-width: 0.9em;
  height: 1.5px;
  margin-inline: 0.2em;
  background: var(--ink);
}
.dim::before,
.dim::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.5px;
  height: 0.22em;
  background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.dim::before { left: 0; }
.dim::after { right: 0; }
.dim-label {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  padding: 4px 8px 3px;
  background: var(--yellow);
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
}
.hero-sub {
  max-width: 30em;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.2vw, 30px);
}

/* The latest news, as a yellow slip of paper */
.slip {
  display: grid;
  gap: 18px;
  width: min(100%, 330px);
  padding: 18px 20px 16px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.12), 0 14px 30px -18px rgba(26, 26, 26, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.slip:hover {
  transform: translateY(-3px) rotate(-0.6deg);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.12), 0 22px 36px -18px rgba(26, 26, 26, 0.5);
}
.slip:active { transform: translateY(0); }
.slip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slip-top svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.slip:hover .slip-top svg { transform: translate(3px, -3px); }
.slip-title {
  font-size: 1.1875rem;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 700px) {
  .slot { flex-direction: column; align-items: stretch; font-size: 15.5vw; line-height: 1.12; }
  .reel, .reel-strip > span { height: 1.12em; }
  .reel--a { align-self: flex-start; }
  .reel--b { align-self: flex-end; }
  .dim { flex: none; width: auto; margin: 0.34em 0 0.12em; }
  .hero-foot { grid-template-columns: 1fr; }
  .slip { width: 100%; }
}

/* ---------- Statement ---------- */

.statement {
  padding-block: clamp(96px, 20vh, 220px);
}
.statement p {
  max-width: 19.5em;
  font-size: clamp(1.7rem, 4.1vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: pretty;
}
.statement mark {
  color: inherit;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 62% / 100% 0.78em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--ease-out);
}
.js-motion .statement mark { background-size: 0% 0.78em; }
.js-motion .statement mark.is-lit { background-size: 100% 0.78em; }

/* ---------- Shared section furniture ---------- */

.section { padding-block: clamp(72px, 11vh, 132px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: clamp(20px, 2.4vw, 32px);
}
.section-head h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Threads (ink band) ---------- */

.threads {
  background: var(--ink);
  color: var(--paper);
}
.threads .section-head p { color: var(--muted-on-ink); }

.thread {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: center;
  padding-block: clamp(18px, 2.1vw, 30px);
  border-top: 1px solid var(--line-on-ink);
  transition: color 0.3s ease, opacity 0.3s ease;
}
.thread:last-child { border-bottom: 1px solid var(--line-on-ink); }
.thread h3 {
  font-size: clamp(2.1rem, 6.3vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease-out);
}
.thread p {
  max-width: 30em;
  color: var(--muted-on-ink);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  transition: color 0.3s ease;
}
@media (hover: hover) {
  .thread-list:hover .thread { opacity: 0.38; }
  .thread-list .thread:hover { opacity: 1; color: var(--yellow); }
  .thread:hover h3 { transform: translateX(clamp(8px, 1.2vw, 18px)); }
  .thread:hover p { color: var(--paper); }
}

/* ---------- Rows: research and news ---------- */

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 7fr) minmax(0, 2.6fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(24px, 2.8vw, 40px);
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row::before {
  content: "";
  position: absolute;
  inset: -1px calc(var(--gutter) * -0.4) 0;
  z-index: -1;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row-key,
  .row:hover .row-meta { color: var(--ink); }
}
.rows { position: relative; z-index: 0; }

.row-key {
  padding-top: 0.35em;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.row-key b { display: block; color: var(--ink); font-weight: 650; }

.row h3 {
  max-width: 25em;
  font-size: clamp(1.3rem, 2.25vw, 2.15rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.row-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}
.row-meta a,
.row h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 26, 26, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.row-meta a:hover,
.row h3 a:hover { text-decoration-color: var(--ink); }

.row-links {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding-top: 0.2em;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 650;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 10px) / 100% 1.5px;
  transition: background-size 0.35s var(--ease-out);
}
.link svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }
.link:hover { background-size: 0% 1.5px; background-position: 100% calc(100% - 10px); }
.link:hover svg { transform: translate(3px, -3px); }

/* ---------- Background ---------- */

.background { background: var(--paper-2); }
.cv {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 9.6fr);
  gap: clamp(16px, 3vw, 48px);
}
.cv-list li { border-top: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-block: clamp(16px, 1.7vw, 24px);
  transition: padding 0.4s var(--ease-out);
}
.cv-list b {
  display: block;
  font-size: clamp(1.15rem, 1.75vw, 1.6rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.022em;
}
.cv-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.cv-list svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.cv-list a:hover { padding-left: 12px; }
.cv-list a:hover svg { transform: translate(3px, -3px); }
.cv-now {
  font-style: normal;
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px 2px;
  background: var(--yellow);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.25em;
}

/* ---------- Contact (yellow band) ---------- */

.contact {
  background: var(--yellow);
  color: var(--ink);
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: 28px;
}
.contact h2 {
  max-width: 14em;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-links { margin-top: clamp(24px, 3vw, 44px); }
.contact-links li { border-top: 1.5px solid var(--ink); }
.contact-links li:last-child { border-bottom: 1.5px solid var(--ink); }
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: clamp(10px, 1.3vw, 18px);
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: padding 0.45s var(--ease-out);
}
.contact-links svg {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  transition: transform 0.45s var(--ease-out);
}
.contact-links a:hover { padding-left: clamp(8px, 1.4vw, 22px); }
.contact-links a:hover svg { transform: translate(6%, -6%) rotate(45deg); }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 9vh, 110px);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row-key { padding-top: 0; }
  .row-key b { display: inline; }
  .row-key b::after { content: " · "; font-weight: 400; color: var(--muted); }
  .row-links { grid-auto-flow: row; padding-top: 4px; }
  .cv { grid-template-columns: 1fr; }
  .cv-head { display: none; }
  .thread { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .brand span { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .section-head { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Refinements ---------- */

/* Once the page has scrolled, the header sits on a solid strip of the section's own colour. */
.site-header { transition: color 0.3s ease, background-color 0.3s ease; }
.site-header.is-stuck { background: var(--paper); }
.site-header.is-stuck[data-tone="ink"] { background: var(--ink); }
.site-header.is-stuck[data-tone="yellow"] { background: var(--yellow); }

/* Two paper sections in a row share one gap, not two. */
#research + #news { padding-top: 0; }
.cv-list b { color: var(--ink); }
.site-header.is-stuck[data-tone="soft"] { background: var(--paper-2); }
.contact h2 { max-width: 24em; }

/* ---------- Menu ---------- */

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: var(--header-h) var(--gutter) 32px;
    background: var(--ink);
    color: var(--paper);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav a:not(.btn) {
    display: flex;
    min-height: 60px;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; --btn-bg: var(--yellow); --btn-fg: var(--ink); }
  .menu-open { overflow: hidden; }
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
  .menu-open .site-header,
  .menu-open .site-header.is-stuck {
    background: transparent;
    color: var(--paper);
    --mark-bg: var(--yellow);
    --mark-fg: var(--ink);
  }
}

/* ---------- Simple inner pages ---------- */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 48px) 72px;
}
.page h1 {
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.page p { max-width: 32em; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.page .hero-actions { margin-top: 28px; }

.hero h1 { max-width: none; text-wrap: balance; }
@media (min-width: 701px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) 330px; }
  .slip { width: 100%; }
}
/* The strip must keep its full height inside the reel window, or the spin maths is off. */
.reel { align-items: flex-start; }

/* ---------- Touch screens ---------- */

/* What hover does with a mouse, the middle of the screen does on a phone or tablet. */
.touch-focus .row.is-active::before { transform: scaleY(1); }
.touch-focus .row.is-active .row-key,
.touch-focus .row.is-active .row-meta { color: var(--ink); }
.touch-focus .thread { opacity: 0.4; }
.touch-focus .thread.is-active { opacity: 1; color: var(--yellow); }
.touch-focus .thread.is-active p { color: var(--paper); }

/* A press answers straight away. */
.cv-list a:active { padding-left: 12px; }
.contact-links a:active { padding-left: clamp(8px, 1.4vw, 22px); }
.link:active { background-size: 0% 1.5px; }

@media (max-width: 860px) {
  .row::before { inset: -1px calc(var(--gutter) * -0.5) 0; }
  .statement { padding-block: clamp(72px, 14vh, 140px); }
  .site-foot { margin-top: 48px; }
}

/* ---------- Logo and top of page ---------- */

:root { --logo: clamp(60px, 6.2vw, 92px); --header-h: calc(var(--logo) * 1.12 + 28px); }

.site-header,
.site-header.is-stuck {
  position: absolute;
  height: auto;
  padding-top: 24px;
  background: none;
}
.logo-link { display: block; }
.logo { width: var(--logo); height: auto; overflow: visible; }
.logo-ink { fill: var(--ink); }
.logo-paper { fill: var(--paper); }
.logo-yellow { fill: var(--yellow); }
.s-ink { stroke: var(--ink); }
.s-yellow { stroke: var(--yellow); }
.eye-v { display: none; }
.eye-v.is-on { display: inline; }
.eye-num { font: 700 124px "JetBrains Mono", ui-monospace, monospace; letter-spacing: -0.02em; }
.logo-dot { opacity: 0; visibility: hidden; }
.logo-link .logo { transition: transform 0.5s var(--ease-out); transform-origin: 28% 100%; }
.logo-link:hover .logo { transform: rotate(-4deg); }

/* ---------- Hero name: bold name, 30% larger than the role line ---------- */

.hero { padding-top: calc(var(--header-h) + clamp(18px, 4vh, 44px)); }
.hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 400;
}
.hero h1 strong { font-size: 1.3em; line-height: 1.05; font-weight: 750; }
.hero h1 span { margin-top: 0.15em; color: var(--muted); }

/* ---------- Tone: only the paired hero words stay full black ---------- */

/* Every other dark value on the site is mixed 20% toward the paper colour. */
:root {
  --ink: #464544;
  --ink-2: #4E4D4B;
  --muted: #6B6A63;
  --muted-on-ink: #C6C3BC;
  --line: rgba(70, 69, 68, 0.2);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --ink: color-mix(in srgb, #1A1A1A 80%, #F5F2F0); }
}
body { color: var(--ink); }
.slot,
.dim-label { color: #1A1A1A; }

/* The name is set in the same heavy cut as the paired words. */
.hero h1 strong { font-weight: 800; letter-spacing: -0.045em; }
