/* ==========================================================================
   Dante Fernandez — Portfolio
   Palette: near-black ground, warm off-white type, one pewter accent.
   Type:    Instrument Serif (display) · Instrument Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #101010;
  --bg-3: #151515;
  --paper: #efeae1;
  --paper-70: rgba(239, 234, 225, 0.70);
  --paper-55: rgba(239, 234, 225, 0.55);
  --paper-35: rgba(239, 234, 225, 0.36);
  --paper-20: rgba(239, 234, 225, 0.20);
  --line: rgba(239, 234, 225, 0.12);
  --line-strong: rgba(239, 234, 225, 0.26);
  --pewter: #b7b1a4;
  --pewter-40: rgba(183, 177, 164, 0.4);

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 3.2vw, 48px);
  --max: 1400px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--paper); color: var(--bg); }

:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  padding: 10px 16px; background: var(--paper); color: var(--bg);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* JS-gated reveal safety net: hidden until GSAP plays it in. */
.js .wr { visibility: hidden; }
.js .wr-mask { visibility: hidden; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-55); font-variant-numeric: tabular-nums;
}
.serif { font-family: var(--serif); font-weight: 400; }
.ital { font-style: italic; }
.accent { color: var(--pewter); }
.mask { overflow: hidden; display: block; }
.mask > * { display: block; }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 234, 225, 0.075) 0%, rgba(239, 234, 225, 0.02) 38%, transparent 68%);
  opacity: 0; will-change: transform;
}
@media (pointer: coarse) { .glow { display: none; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none;
  width: 0; height: 0; opacity: 0;
}
.cursor__dot, .cursor__ring, .cursor__label {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%);
}
.cursor__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); }
.cursor__ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--pewter-40);
  transition: transform .45s var(--ease-out), border-color .3s, background-color .3s;
}
.cursor__label {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.cursor.is-hover .cursor__ring { transform: translate(-50%, -50%) scale(1.7); border-color: var(--pewter); }
.cursor.is-label .cursor__ring {
  transform: translate(-50%, -50%) scale(2.6); background: var(--paper); border-color: var(--paper);
}
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .12s; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: translate(-50%, -50%) scale(.8); }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.pre {
  position: fixed; inset: 0; z-index: 9800; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.pre__inner { text-align: center; width: min(90vw, 560px); }
.pre__word {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1;
  letter-spacing: -0.01em;
}
.pre__word.ital { color: var(--pewter); }
.pre__line { height: 1px; width: 100%; background: var(--line-strong); margin: 18px auto; transform: scaleX(0); transform-origin: left; }
.pre__meta { margin-top: 20px; }
.no-js .pre { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transform: translateY(0);
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(11, 11, 11, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 10px; }
.nav__brand small { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-35); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-55); position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--paper); }
.nav__cta {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-strong); padding: 10px 18px; color: var(--paper);
  transition: background-color .35s, color .35s, border-color .35s;
}
.nav__cta:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.nav__menu { display: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); padding: 8px 0; }

.menu {
  position: fixed; inset: 0; z-index: 890; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 40px;
  visibility: hidden; pointer-events: none;
}
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__links a { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 10vw, 4.5rem); line-height: 1.05; padding: 6px 0; letter-spacing: -0.01em; }
.menu__links a span { display: block; }
.menu__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.menu__foot a { color: var(--paper-55); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav__brand { white-space: nowrap; }
  .nav__brand small { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: clamp(96px, 12vw, 180px); }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 20px; margin-bottom: clamp(32px, 4vw, 56px); position: relative;
}
.sec-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; }
.sec-head.is-in::after { transform: scaleX(1); transition: transform 1.4s var(--ease-in-out); }
.no-js .sec-head::after, .reduced .sec-head::after { transform: scaleX(1); }
.sec-head__label { display: inline-flex; align-items: center; gap: 12px; }
.sec-head__label::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--pewter); transform: rotate(45deg); }
.sec-head__meta { text-align: right; }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.02em;
}
.h2 .ital { color: var(--pewter); }
.lead {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.3; letter-spacing: -0.005em;
  color: var(--paper);
}
.lead .ital { color: var(--pewter); }
.body { color: var(--paper-70); font-size: 1rem; line-height: 1.7; max-width: 62ch; }
.body strong { color: var(--paper); font-weight: 500; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  padding-bottom: 4px;
}
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--paper-55); transform-origin: left; transition: transform .6s var(--ease-out); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.link .arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.link:hover .arrow { transform: translate(3px, -3px); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 18px 30px; border: 1px solid var(--line-strong); color: var(--paper); overflow: hidden;
  transition: border-color .4s, color .4s;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform .6s var(--ease-out); }
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--bg); border-color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 0; align-items: start; }
.hero__name {
  grid-column: 1 / -1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.4rem, 12.2vw, 12.8rem);
  line-height: .9; letter-spacing: -0.025em;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero__name .line { display: block; padding: .1em 0 .08em; margin: -.1em 0 -.08em; }
.hero__name .line + .line { padding-left: clamp(0px, 9vw, 160px); }
.hero__role {
  grid-column: 1 / 7;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.hero__rule { height: 1px; width: clamp(40px, 6vw, 96px); background: var(--pewter); transform: scaleX(0); transform-origin: left; flex: none; }
.hero__role-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.1vw, 2.75rem); line-height: 1.1; color: var(--pewter); letter-spacing: -0.005em; }
.hero__hook { grid-column: 7 / 12; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--paper-70); max-width: 44ch; line-height: 1.6; margin-bottom: clamp(28px, 4vw, 40px); text-wrap: pretty; }
.hero__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.hero__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__foot .scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__foot .scroll i { display: block; width: 1px; height: 28px; background: var(--paper-35); position: relative; overflow: hidden; }
.hero__foot .scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--paper); animation: scrollHint 2.2s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 55% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

@media (max-width: 860px) {
  .hero__role { grid-column: 1 / -1; }
  .hero__hook { grid-column: 1 / -1; }
  .hero__name .line + .line { padding-left: 0; }
  .hero__foot .meta-right { display: none; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; position: relative; z-index: 1; background: var(--bg); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; align-items: center; flex: none; padding-right: 0; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-55); white-space: nowrap; }
.ticker__item::after { content: ''; width: 4px; height: 4px; border: 1px solid var(--pewter); transform: rotate(45deg); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
.about__lead { grid-column: 1 / 10; }
.about__body { grid-column: 4 / 10; display: grid; gap: 22px; }
.about__facts { grid-column: 1 / -1; }
.facts { border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts__val { color: var(--paper-70); font-size: .95rem; }
.facts__val strong { color: var(--paper); font-weight: 500; }
@media (max-width: 960px) {
  .about__lead { grid-column: 1 / -1; }
  .about__body { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .facts__row { grid-template-columns: 1fr; gap: 8px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-head__meta { text-align: left; }
}

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.work__viewer { position: sticky; top: calc(var(--nav-h) + 32px); }
.plate {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: calc(100vh - var(--nav-h) - 64px);
  border: 1px solid var(--line-strong); background: var(--bg-2); overflow: hidden;
}
.plate__item {
  position: absolute; inset: 0; padding: 26px;
  clip-path: inset(0 0 100% 0); will-change: clip-path;
  display: flex; flex-direction: column;
  background: var(--bg-2);
}
.plate__item.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.plate__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plate__title { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1; letter-spacing: -0.01em; }
.plate__fig { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 14px 0; }
.plate__fig svg { width: 100%; height: 100%; max-height: 100%; color: var(--paper-70); }
.plate__foot { display: flex; justify-content: space-between; gap: 16px; }
.plate__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.plate__count { position: absolute; right: 26px; bottom: 14px; }

/* Schematic SVG styling (shared by viewer plates and inline row figures) */
.schem { overflow: hidden; }
.schem line, .schem path, .schem rect, .schem circle, .schem polyline { fill: none; stroke: currentColor; stroke-width: 1; }
.schem .dim { stroke: var(--paper-35); }
.schem .dot.dim { fill: var(--paper-35); }
.schem .dash { stroke-dasharray: 3 4; }
.schem .node { fill: var(--bg-2); }
.schem .node-solid { fill: currentColor; }
.schem .dot { fill: currentColor; stroke: none; }
.schem text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--paper-70); stroke: none; }
.schem text.small { font-size: 9.5px; }
.schem text.cap { fill: var(--paper-35); }

.rows { border-top: 1px solid var(--line-strong); }
.row { position: relative; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.row__rule { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--paper-55); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 8px; }
.row__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.7vw, 2.5rem); line-height: 1.05; letter-spacing: -0.015em; display: inline-block; transition: transform .6s var(--ease-out); }
.row__title .ital { color: var(--pewter); }
.row.is-active .row__title, .row:hover .row__title { transform: translateX(10px); }
.row__date { flex: none; white-space: nowrap; }
.row__sub { color: var(--paper-55); font-size: .95rem; margin-bottom: 18px; }
.row__stack { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.row__stack span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-35); }
.row__list { display: grid; gap: 12px; max-width: 64ch; }
.row__list li { position: relative; padding-left: 22px; color: var(--paper-70); font-size: .97rem; line-height: 1.65; }
.row__list li::before { content: ''; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--pewter); }
.row__list strong { color: var(--paper); font-weight: 500; }
.row__actions { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; }
.row__figure { display: none; }

@media (max-width: 1023px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__viewer { display: none; }
  .row__figure { display: block; margin-bottom: 26px; border: 1px solid var(--line-strong); background: var(--bg-2); padding: 18px; aspect-ratio: 16 / 10; }
  .row__figure svg { width: 100%; height: 100%; color: var(--paper-70); }
  .row.is-active .row__title, .row:hover .row__title { transform: none; }
}
@media (max-width: 600px) {
  .row__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .row__figure { aspect-ratio: 4 / 3; padding: 14px; }
}

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--line-strong); }
.xp__row { display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); position: relative; }
.xp__date { padding-top: .35em; }
.xp__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.xp__org { color: var(--paper-55); font-size: .95rem; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.xp__org .tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-35); border: 1px solid var(--line); padding: 3px 8px; }
.xp__list { margin-top: 18px; display: grid; gap: 10px; max-width: 64ch; }
.xp__list li { position: relative; padding-left: 22px; color: var(--paper-70); font-size: .97rem; line-height: 1.65; }
.xp__list li::before { content: ''; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--pewter); }
.xp__list strong { color: var(--paper); font-weight: 500; }
.edu { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.edu__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.edu__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.edu__meta span { color: var(--paper-70); font-size: .95rem; }
.edu__meta span b { color: var(--paper); font-weight: 500; }
@media (max-width: 760px) {
  .xp__row, .edu { grid-template-columns: 1fr; row-gap: 10px; }
}

/* ---------- Skills ---------- */
.skills__groups { border-top: 1px solid var(--line-strong); }
.skills__group { display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.skills__label { padding-top: .35em; }
.skills__list { display: flex; flex-wrap: wrap; gap: 10px 0; max-width: 72ch; }
.skills__list li { display: inline-flex; align-items: center; font-size: 1.05rem; color: var(--paper-70); transition: color .4s; line-height: 1.5; }
.skills__list li::after { content: ''; width: 4px; height: 4px; border: 1px solid var(--pewter); transform: rotate(45deg); margin: 0 16px; opacity: .7; }
.skills__list li:last-child::after { display: none; }
.skills__list li:hover { color: var(--paper); }
.skills__note { margin-top: 28px; color: var(--paper-35); font-size: .85rem; max-width: 60ch; }
@media (max-width: 760px) {
  .skills__group { grid-template-columns: 1fr; row-gap: 14px; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(64px, 8vw, 120px); }
.contact__lead { max-width: 30ch; margin-bottom: clamp(40px, 5vw, 72px); }
.contact__mail {
  display: inline-block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 5.6vw, 6.6rem); line-height: 1.05; letter-spacing: -0.02em;
  word-break: break-all; position: relative; padding-bottom: .06em;
}
.contact__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--paper-35); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__mail:hover .word { color: var(--pewter); }
.contact__mail .word { transition: color .5s; }
.contact__links { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-strong); padding: 32px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer__inner .mono { color: var(--paper-35); }
.footer__top { display: inline-flex; align-items: center; gap: 10px; color: var(--paper-55); transition: color .3s; }
.footer__top:hover { color: var(--paper); }
.footer__top i { display: block; width: 1px; height: 18px; background: currentColor; }

/* ---------- Motion: reduced ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .wr, .js .wr-mask { visibility: visible; }
  .hero__rule { transform: scaleX(1); }
  .row__rule { display: none; }
  .hero__foot .scroll i::after { animation: none; }
  .pre { display: none; }
  .sec-head::after { transform: scaleX(1); }
  .ticker__track { animation: none; }
  .plate__item { transition: none; }
  * { transition-duration: .01ms !important; }
}


/* ---- touch / phone: bigger tap targets, no cursor chrome ----------------- */
@media (max-width: 760px) {
  a.link,
  .contact__mail,
  .footer__top,
  .menu__foot a,
  .nav__cta { min-height: 44px; display: inline-flex; align-items: center; gap: .4em; }
  .menu__links a { min-height: 52px; display: flex; align-items: center; }
  .cursor, .glow { display: none !important; }
  .schem text { font-size: 11px; }
}
@media (hover: none) {
  .cursor, .glow { display: none !important; }
}
