:root {
  --ink: #17161f;
  --ink-2: #1f1d29;
  --ink-3: #292636;
  --cream: #f1e7da;
  --mute: #a7a0b2;
  --line: rgba(241, 231, 218, .13);
  --peach: #f2a072;
  --peach-deep: #d9774a;
  --lilac: #a99fd0;
  --paper: #f3ece0;
  --paper-ink: #24212c;
  --display: "Gloock", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --hand: "Kalam", cursive;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.075rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 3px; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.kicker {
  font: 500 .78rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.25rem;
}
.hand { font-family: var(--hand); font-weight: 400; color: var(--peach); line-height: 1.2; }

section { padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad); max-width: var(--max); margin: 0 auto; }

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-top h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.section-top h2 span { color: var(--mute); font-size: .55em; display: inline-block; margin-top: .3em; }
.section-top p { color: var(--mute); max-width: 46ch; margin: 0; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--pad);
  background: rgba(23, 22, 31, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.wordmark { font: 400 1.65rem/1 var(--display); text-decoration: none; }
.wordmark span { color: var(--peach); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-size: .92rem; text-decoration: none; color: var(--mute); transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-links .nav-cta { color: var(--ink); background: var(--peach); padding: .45rem 1rem; border-radius: 99px; font-weight: 600; }
.nav-links .nav-cta:hover { color: var(--ink); background: var(--cream); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100vh;
  padding-top: clamp(7rem, 14vw, 10rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 2rem 1.5rem;
  align-items: start;
}
.hero-text { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 9.6rem); line-height: .9; margin-bottom: 2rem; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: .55em; }
.hero h1 .accent { color: var(--peach); }
.hero-lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); max-width: 34ch; color: #ddd3c7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--cream); color: var(--ink);
  padding: .9rem 1.5rem; border-radius: 99px;
  transition: transform .2s, background .2s;
}
.btn:hover { background: var(--peach); transform: translateY(-2px); }
.link-arrow { font-family: var(--mono); font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--peach); padding-bottom: 2px; }
.link-arrow:hover { color: var(--peach); }

.hero-photo { grid-column: 7 / 13; grid-row: 1; margin: 4rem 0 0; position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%;
  border-radius: 200px 200px 8px 8px;
  filter: saturate(.92);
}
.hero-photo figcaption { position: absolute; left: -2.5rem; bottom: -2.2rem; font-size: 1.25rem; transform: rotate(-4deg); }
.hero-photo figcaption::before { content: "↗"; display: inline-block; margin-right: .3rem; transform: rotate(-20deg); }

.now {
  grid-column: 1 / 6; grid-row: 2;
  border-left: 2px solid var(--peach);
  padding: .4rem 0 .4rem 1.25rem;
  max-width: 40ch;
}
.now-label { display: flex; align-items: center; gap: .6rem; font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: .5rem; }
.now-label i { width: 8px; height: 8px; border-radius: 50%; background: #9bd18b; box-shadow: 0 0 0 4px rgba(155, 209, 139, .15); animation: pulse 2.4s infinite; }
.now p { margin: 0; font-size: 1rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(155, 209, 139, 0); } }

/* WORK */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter {
  font: 500 .85rem var(--body); color: var(--mute); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1.1rem; transition: all .2s;
}
.filter:hover { color: var(--cream); border-color: var(--mute); }
.filter.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 3rem; }
.project { display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project:nth-child(odd):not(.p-feature) { transform: translateY(4rem); }
.projects:has(.project[hidden]) .project { transform: none; }
.p-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }

.project-art {
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.p-feature .project-art { margin: 0; }
.project-art svg { width: 100%; height: auto; display: block; }
.art-note { position: absolute; right: 1.1rem; bottom: .7rem; font-size: 1.05rem; transform: rotate(-3deg); }
.ln { fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ln.faint { stroke: var(--mute); opacity: .45; stroke-width: 1.2; }
.ln.load { stroke: var(--lilac); stroke-width: 2; }
.ln.soc { stroke: var(--peach); stroke-width: 2.6; }
.ln.noise { stroke: var(--cream); stroke-width: 1.4; }
.fill { fill: var(--peach); opacity: .18; }
.wave { fill: none; stroke: var(--peach); stroke-width: 2.2; }
.sun { fill: var(--peach); opacity: .12; }
.tag circle { fill: var(--ink-2); stroke: var(--peach); stroke-width: 2; }
.tag path, .tag-ln { fill: none; stroke: var(--peach); stroke-width: 1.3; stroke-dasharray: 3 5; }
.hit { fill: var(--peach); }
.lbl text { font: 500 11px var(--mono); fill: var(--mute); letter-spacing: .04em; }

.project-art svg .wave { animation: slosh 4s ease-in-out infinite; }
@keyframes slosh { 50% { transform: translateY(-6px); } }

.num { font: 400 1rem var(--mono); color: var(--peach); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .9rem; }
.tags span { font: 500 .72rem var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 4px; padding: .15rem .5rem; }
.project h3 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin-bottom: .8rem; }
.p-feature h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.project p { color: #d5ccc0; }
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; margin-top: auto; border-top: 1px solid var(--line); font-size: .9rem; }
.state { display: flex; align-items: center; gap: .5rem; color: var(--mute); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); }
.state.live::before { background: #9bd18b; }
.project-foot a { text-decoration: none; font-weight: 600; }
.project-foot a::after { content: " ↗"; color: var(--peach); }
.project-foot a:hover { color: var(--peach); }

/* GRADIANT */
.gradiant {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem 1.5rem;
  padding-top: clamp(7rem, 14vw, 11rem);
}
.g-photos { grid-column: 1 / 7; position: relative; padding-bottom: 5rem; }
.g-main img { border-radius: 10px; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 30% 50%; }
.g-notes {
  position: absolute; right: -3rem; bottom: 0; width: 52%;
  background: var(--paper); padding: .55rem .55rem 2.2rem; border-radius: 4px;
  transform: rotate(3.5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  text-decoration: none; transition: transform .3s;
}
.g-notes:hover { transform: rotate(1deg) scale(1.03); }
.g-notes img { aspect-ratio: 4 / 3; object-fit: cover; }
.g-notes span { position: absolute; left: .8rem; bottom: .45rem; font-size: 1rem; color: var(--paper-ink); }
.g-text { grid-column: 8 / 13; align-self: center; }
.g-text h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 1rem; }
.g-text h2 span { color: var(--lilac); }
.g-where { font: 500 .82rem var(--mono); color: var(--mute); margin-bottom: 1.6rem; }
.g-text p { color: #d5ccc0; }
.g-lesson { font-family: var(--display); font-size: 1.4rem; line-height: 1.3; color: var(--cream) !important; border-left: 2px solid var(--peach); padding-left: 1.1rem; margin-top: 1.6rem; }

.also { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.also-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.also-when { font: 500 .78rem/1.5 var(--mono); color: var(--peach); }
.also h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.also-sub { font-size: .9rem; color: var(--mute); margin-bottom: .7rem; }
.also p:last-child { color: #d5ccc0; margin: 0; }

/* PAPER / ABOUT */
.paper {
  max-width: none;
  background:
    linear-gradient(90deg, transparent calc(var(--pad) + 2.2rem), rgba(201, 84, 60, .35) calc(var(--pad) + 2.2rem), rgba(201, 84, 60, .35) calc(var(--pad) + 2.3rem), transparent calc(var(--pad) + 2.3rem)),
    repeating-linear-gradient(transparent 0 35px, rgba(36, 33, 44, .07) 35px 36px),
    var(--paper);
  color: var(--paper-ink);
}
.paper-inner { max-width: var(--max); margin: 0 auto; padding-left: clamp(1rem, 5vw, 5rem); }
.paper .kicker { color: #b4542f; }
.paper h2 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 12ch; margin-bottom: 3rem; }
.essay { position: relative; max-width: 62ch; font-size: 1.12rem; }
.essay-lead { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.3; }
.margin {
  position: absolute; left: calc(100% + 3rem); top: 9rem; width: 15rem;
  font-size: 1.35rem; color: #b4542f; transform: rotate(-3deg);
}
.margin::before { content: "← "; }
.motto { margin: 4rem 0; font: 400 clamp(2rem, 4.4vw, 3.6rem)/1.1 var(--display); }
.motto span { display: inline; }
.motto span:nth-child(2) { color: #8a7fb5; }
.motto span:nth-child(3) { color: #b4542f; }

.bench { border-top: 1.5px solid var(--paper-ink); padding-top: 2rem; }
.bench h3 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.bench dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; }
.bench dt { font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #b4542f; margin-bottom: .5rem; }
.bench dd { margin: 0; font-size: 1rem; line-height: 1.55; }

/* COURSES */
.courses { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.courses .section-top { margin-bottom: 1.5rem; }
.courses .section-top h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.courses .section-top h2 span { font-size: .6em; margin: 0 0 0 .3em; }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 1px solid var(--line); }
.ledger-group { grid-column: 1 / -1; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peach); margin: 1.2rem 0 .2rem; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.2rem; align-items: center;
  padding: .55rem .4rem; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.row:hover { background: var(--ink-2); }
.row b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.row small { color: var(--mute); font-size: .76rem; }
.row-links { display: flex; gap: .9rem; white-space: nowrap; }
.row-links a { font: 500 .72rem var(--mono); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.row-links a:hover { color: var(--peach); border-color: var(--peach); }

/* OFF THE CLOCK */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.tile { border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--ink-2); border: 1px solid var(--line); }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.tile p { color: #d5ccc0; }
.tile p:last-child { margin-bottom: 0; }
.tile-tag { display: block; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peach); margin-bottom: 1.2rem; }
.t-read { grid-column: 1 / 5; background: #262238; }
.t-read h3 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
.t-lang { grid-column: 5 / 7; grid-row: span 2; }
.t-pattern { grid-column: 1 / 3; }
.t-maths {
  grid-column: 3 / 5;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ink-2);
}
.t-write { grid-column: 1 / -1; background: var(--peach); color: var(--ink); border: 0; display: grid; grid-template-columns: auto 1fr 1fr; gap: 1rem 3rem; align-items: center; }
.t-write .tile-tag { color: var(--ink); opacity: .7; margin: 0; }
.t-write h3 { margin: 0; }
.t-write p { color: var(--ink); }
.arabic { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1.4 "Amiri", serif; display: flex; gap: .8rem; align-items: center; justify-content: flex-start; color: var(--cream); }
.arabic .arrow { font-size: .6em; color: var(--peach); }
.arabic-gloss { font: 500 .8rem var(--mono); color: var(--mute) !important; margin-bottom: 1.4rem; }
.arabic-gloss em { color: var(--peach); font-style: normal; }

.swim {
  margin-top: 1.25rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-radius: 14px; overflow: hidden;
  background: #142a33;
  border: 1px solid rgba(120, 190, 210, .2);
}
.swim-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; transition: transform .6s; }
.swim-photo { overflow: hidden; display: block; }
.swim-photo:hover img { transform: scale(1.04); }
.swim-text { padding: clamp(1.5rem, 4vw, 3rem); }
.swim h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.swim p { color: #cfdde0; }
.board { width: 100%; border-collapse: collapse; margin: 1.8rem 0 1.2rem; font-family: var(--mono); }
.board caption { text-align: left; font-size: .78rem; color: #8fb3bc; margin-bottom: .7rem; }
.board th, .board td { text-align: left; padding: .55rem .4rem; border-bottom: 1px dashed rgba(120, 190, 210, .25); font-weight: 400; }
.board thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8fb3bc; }
.board tbody th { color: #8fb3bc; }
.board td { font-size: 1.05rem; color: var(--cream); }
.board td:last-child { color: var(--peach); }
.fine { font-size: .88rem; color: var(--mute) !important; }

/* NOTEBOOKS */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.book {
  --c: #1f3b3a;
  position: relative; display: flex; flex-direction: column;
  background: var(--c); border-radius: 4px 12px 12px 4px;
  padding: 1.6rem 1.6rem 1.6rem 3.4rem;
  box-shadow: inset 2.2rem 0 0 rgba(0, 0, 0, .22), 0 14px 30px rgba(0, 0, 0, .3);
  transition: transform .3s;
}
.book:hover { transform: translateY(-6px) rotate(-.6deg); }
.b2 { --c: #4f2b2a; }
.b3 { --c: #594824; }
.b4 { --c: #283350; }
.book.private { --c: var(--ink-2); border: 1px dashed rgba(241, 231, 218, .25); box-shadow: inset 2.2rem 0 0 rgba(255, 255, 255, .03); }
.book-spine { position: absolute; left: .55rem; top: 1.6rem; writing-mode: vertical-rl; font: 500 .8rem var(--mono); color: rgba(241, 231, 218, .6); letter-spacing: .1em; }
.book-cover { flex: 1; }
.book-label { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peach); margin-bottom: 1rem; }
.private .book-label::before { content: "⚿ "; }
.book h3 { font-size: 1.75rem; margin-bottom: .8rem; }
.book p { font-size: .97rem; color: rgba(241, 231, 218, .82); }
.ask {
  align-self: flex-start; margin-top: 1rem; cursor: pointer;
  font: 600 .88rem var(--body); color: var(--cream);
  background: rgba(241, 231, 218, .08); border: 1px solid rgba(241, 231, 218, .25);
  border-radius: 99px; padding: .55rem 1.1rem; transition: all .2s;
}
.ask:hover { background: var(--cream); color: var(--ink); }
.lens { margin: 1rem 0; border-top: 1px solid rgba(241, 231, 218, .2); padding-top: .8rem; }
.lens summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; }
.lens summary::-webkit-details-marker { display: none; }
.lens summary::after { content: " +"; color: var(--peach); }
.lens[open] summary::after { content: " −"; }
.lens ol { padding-left: 1.2rem; margin: .8rem 0; font-size: .93rem; color: rgba(241, 231, 218, .85); }
.lens li { margin-bottom: .5rem; }
.shelf-note { margin-top: 2rem; font-size: .92rem; color: var(--mute); max-width: 60ch; }

/* CONTACT */
.contact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact h2 { font-size: clamp(2.8rem, 7vw, 6rem); margin-bottom: 1.5rem; }
.contact h2 span { color: var(--peach); }
.contact > p { max-width: 50ch; color: var(--mute); }
.big-mail {
  display: inline-block; margin: 2rem 0 2.5rem;
  font: 400 clamp(1.6rem, 5vw, 4rem)/1.1 var(--display);
  text-decoration: none; word-break: break-all;
  background: linear-gradient(var(--peach), var(--peach)) 0 100% / 0 3px no-repeat;
  padding-bottom: .2rem; transition: background-size .4s, color .3s;
  border-bottom: 1px solid var(--line);
}
.big-mail:hover { background-size: 100% 3px; color: var(--peach); }
.socials { display: flex; gap: 1rem; }
.socials a { text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .6rem 1.3rem; font-weight: 600; transition: all .2s; }
.socials a:hover { border-color: var(--peach); color: var(--peach); }

.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem var(--pad); border-top: 1px solid var(--line);
  font: 500 .8rem var(--mono); color: var(--mute);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--peach); }

/* REVEAL */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.now.reveal { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .margin { position: static; display: block; width: auto; margin: 0 0 1.2rem; transform: none; }
  .margin::before { content: "→ "; }
  .bench dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-write { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.5rem;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
    z-index: -1;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav-links a { font-size: 1.15rem; padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); color: var(--cream); }
  .nav-links .nav-cta { margin-top: 1rem; width: auto; border: 0; padding: .6rem 1.2rem; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text, .hero-photo, .now { grid-column: 1; grid-row: auto; }
  .hero-photo { margin: 1rem 0 2.5rem; }
  .hero-photo img { aspect-ratio: 16 / 11; border-radius: 120px 120px 8px 8px; }
  .hero-photo figcaption { left: auto; right: .5rem; bottom: -2rem; }

  .section-top { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(odd):not(.p-feature) { transform: none; }
  .p-feature { grid-template-columns: 1fr; gap: 1.5rem; }

  .gradiant { grid-template-columns: 1fr; }
  .g-photos, .g-text { grid-column: 1; }
  .g-notes { right: -.5rem; width: 58%; }
  .g-notes span { font-size: .85rem; right: .8rem; }
  .also { grid-template-columns: 1fr; }

  .mosaic { grid-template-columns: 1fr; }
  .t-read, .t-lang, .t-pattern, .t-maths, .t-write { grid-column: 1; grid-row: auto; }
  .swim { grid-template-columns: 1fr; }
  .swim-photo img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
  .shelf { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .also-item { grid-template-columns: 1fr; gap: .4rem; }
  .row { grid-template-columns: 1fr; }
  .bench dl { grid-template-columns: 1fr; }
  .hero h1 span:nth-child(2) { padding-left: .3em; }
}
