/* Jessie Mullis — personal site
   Sand, deep water, sea glass, and one coral accent (the lifeguard-stand color). */

:root {
  --sand: #f4eee3;
  --sand-2: #ebe2d2;
  --foam: #fbf8f2;
  --ink: #0f2b2f;
  --ink-2: #4a6264;
  --line: rgba(15, 43, 47, .14);
  --sea: #1d6b68;
  --glass: #a9d3c9;
  --coral: #e2603a;
  --deep: #0b2124;
  --deep-2: #12353a;
  --shallow: #dcece6;

  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(20px, 5vw, 56px);
  --shore-h: clamp(46px, 7vw, 104px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--glass); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--foam); color: var(--ink); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }

/* Shared type */
.label {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 18px;
}
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h2 {
  font: 800 clamp(56px, 9vw, 132px)/.86 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.005em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ───────── Header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  color: var(--foam);
  transition: background-color .35s, color .35s, backdrop-filter .35s;
}
.site-header.solid {
  background: rgba(244, 238, 227, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
}
.mark {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px;
  border: 1.5px solid currentColor; border-radius: 3px;
  font: 800 19px/1 var(--display); font-stretch: 75%; letter-spacing: .04em;
  text-decoration: none;
}
.header-name { font-weight: 600; font-size: 15px; letter-spacing: -.005em; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-header nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s;
}
.site-header nav a:hover { background: rgba(251, 248, 242, .16); }
.site-header.solid nav a:hover { background: rgba(15, 43, 47, .07); }
.site-header nav .nav-cta { border: 1px solid currentColor; margin-left: 6px; }

.tide { position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; pointer-events: none; opacity: 0; transition: opacity .35s; }
.site-header.solid .tide { opacity: 1; }
.tide svg { width: 100%; height: 100%; overflow: visible; }
.tide path { fill: none; stroke: var(--sea); stroke-width: 1.2; opacity: .35; vector-effect: non-scaling-stroke; }
.tide-dot {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 3px rgba(226, 96, 58, .22);
  will-change: transform;
}

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: var(--foam); background: var(--deep); overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 26, 29, .5) 0%, rgba(8, 26, 29, .05) 26%, rgba(8, 26, 29, .12) 52%, rgba(8, 26, 29, .78) 100%),
    linear-gradient(90deg, rgba(8, 26, 29, .35) 0%, transparent 55%);
}
.hero-body {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  max-width: 1480px; margin-inline: auto;
  padding: calc(var(--header-h) + 48px) var(--pad) calc(var(--shore-h) + 44px);
}
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .92; margin-bottom: 18px; }
.hero-name {
  font: 800 clamp(84px, 17vw, 216px)/.82 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 26px;
  text-shadow: 0 2px 30px rgba(5, 20, 22, .25);
}
.hero-name span { display: block; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 32ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--foam); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(251, 248, 242, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(251, 248, 242, .06); }
.btn-ghost:hover { background: rgba(251, 248, 242, .16); }

.hero-side { flex: none; width: 310px; display: flex; flex-direction: column; gap: 12px; }
.conditions {
  padding: 16px 20px 8px;
  border: 1px solid rgba(251, 248, 242, .22); border-radius: 14px;
  background: rgba(9, 28, 31, .42);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 400 12.5px/1.4 var(--mono);
}
.conditions-title { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; opacity: .85; margin-bottom: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--glass); box-shadow: 0 0 0 0 rgba(169, 211, 201, .7); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(169, 211, 201, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 211, 201, 0); } }
.conditions dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed rgba(251, 248, 242, .2); }
.conditions dt { text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.conditions dd { text-align: right; }
.conditions small { opacity: .6; font-size: inherit; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.clip-credit { opacity: .7; }
.clip-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(251, 248, 242, .35); background: rgba(9, 28, 31, .35);
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.clip-toggle:hover { background: rgba(9, 28, 31, .6); }
.clip-icon { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.clip-toggle.is-paused .clip-icon { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; }

/* Animated shoreline between sections */
.shore { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--shore-h); overflow: hidden; pointer-events: none; z-index: 1; }
.shore svg { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.shore path { fill: var(--sand); }
.shore .shore-back path { fill: var(--foam); }
.shore-back { opacity: .4; animation: drift 26s linear infinite; }
.shore-front { animation: drift 17s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
.shore-top { top: calc(-1 * var(--shore-h) + 1px); bottom: auto; }
.film .shore path, .contact .shore path { fill: var(--deep); }
.film .shore .shore-back path, .contact .shore .shore-back path { fill: var(--sea); }
.life .shore path { fill: var(--sand); }
.life .shore .shore-back path { fill: var(--foam); }
.websites .shore path { fill: var(--shallow); }
.websites .shore .shore-back path { fill: var(--foam); }

/* ───────── Sections ───────── */
.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 88px); align-items: end; }
.prose p { color: var(--ink-2); max-width: 62ch; margin-bottom: 1.1em; }
.prose .big { font-size: clamp(20px, 2vw, 25px); line-height: 1.42; color: var(--ink); letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 36px; }
.facts > div { border-top: 1px solid var(--line); padding: 14px 0 18px; }
.facts dt { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.facts dd { font-weight: 500; line-height: 1.4; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 74%; border-radius: 10px; }
.about-photo::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--sea); border-radius: 10px; opacity: .45;
}

/* Work */
.work { background: var(--foam); }
.jobs { border-bottom: 1px solid var(--line); }
.job {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 240px; gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.job-when { font: 500 12px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.job h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.job h3 span { display: block; font-weight: 400; color: var(--ink-2); }
.job-sub { font-size: 14px; color: var(--ink-2); margin: 8px 0 16px; }
.job-main ul li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.55; }
.job-main ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--sea); border-radius: 2px; }
.tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.tags li { font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }

.sub-head { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: clamp(64px, 8vw, 96px) 0 20px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.project {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 210px; padding: 22px 22px 20px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .25s, border-color .25s, background-color .25s;
}
.project:hover { transform: translateY(-3px); border-color: rgba(29, 107, 104, .5); background: #f7f2e9; }
.project-kind { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.project h4 { font: 800 32px/.95 var(--display); font-stretch: 62%; text-transform: uppercase; margin-top: 8px; }
.project p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.project-link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--sea); }
.project-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.skills > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.skills h4 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.skills p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* Film */
.film {
  position: relative; color: var(--foam);
  background:
    radial-gradient(1000px 520px at 85% 0%, rgba(29, 107, 104, .35), transparent 70%),
    radial-gradient(800px 500px at 0% 100%, rgba(29, 107, 104, .2), transparent 70%),
    var(--deep);
  padding-block: clamp(84px, 10vw, 140px) clamp(110px, 13vw, 180px);
}
.film .label { color: var(--glass); }
.film-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.film-title { font-size: clamp(72px, 13vw, 196px); margin-bottom: 18px; }
.film-meta { font: 400 12.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--glass); }
.film-poster { width: clamp(120px, 15vw, 210px); border-radius: 4px; transform: rotate(2.5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }

.player { position: relative; margin-top: clamp(32px, 5vw, 56px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.player-facade { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; }
.player-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: brightness(.78); }
.player-facade:hover img { transform: scale(1.03); filter: brightness(.9); }
.play { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.play-icon { display: grid; place-items: center; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--foam); transition: transform .25s; }
.play-icon::before { content: ''; margin-left: 6px; border-left: 20px solid var(--ink); border-block: 12px solid transparent; }
.player-facade:hover .play-icon { transform: scale(1.08); }

.strip-head { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glass); }
.strip-hint { opacity: .7; }
.filmstrip {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(169, 211, 201, .4) transparent;
  padding: 20px 6px; border-radius: 6px;
  background-color: #050e10;
  background-image:
    linear-gradient(90deg, rgba(244, 238, 227, .82) 0 9px, transparent 9px),
    linear-gradient(90deg, rgba(244, 238, 227, .82) 0 9px, transparent 9px);
  background-size: 22px 6px, 22px 6px;
  background-position: 6px 7px, 6px calc(100% - 7px);
  background-repeat: repeat-x;
  background-attachment: local;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.filmstrip.dragging { cursor: grabbing; scroll-snap-type: none; }
.filmstrip li { flex: 0 0 clamp(210px, 25vw, 320px); padding-inline: 4px; scroll-snap-align: start; }
.filmstrip a { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 2px; overflow: hidden; }
.filmstrip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.8) brightness(.82); transition: filter .3s, transform .5s; -webkit-user-drag: none; pointer-events: none; }
.filmstrip a:hover img, .filmstrip a:focus-visible img { filter: none; transform: scale(1.04); }
.filmstrip a span {
  position: absolute; left: 8px; bottom: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em;
  padding: 5px 7px; border-radius: 3px; background: rgba(5, 14, 16, .72); color: var(--foam);
}
.filmstrip a span::before { content: '▶ '; font-size: 9px; opacity: 0; transition: opacity .2s; }
.filmstrip a:hover span::before, .filmstrip a:focus-visible span::before { opacity: 1; }
.filmstrip a:hover span { background: var(--coral); }
.filmstrip a:focus-visible { outline-offset: -3px; }
.film-note { margin-top: 28px; font-size: 15px; color: rgba(251, 248, 242, .75); max-width: 70ch; }
.film-note a { color: var(--foam); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

/* Off the clock */
.life { background: var(--sand); }
.life-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.board {
  --line-c: rgba(169, 211, 201, .9);
  padding: clamp(20px, 3vw, 30px); border-radius: 16px;
  background: linear-gradient(160deg, var(--deep-2), var(--deep));
  color: var(--foam);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.board figcaption { display: flex; flex-direction: column; gap: 4px; }
.board figcaption .label { color: var(--glass); margin-bottom: 4px; }
.board figcaption strong { font: 800 clamp(26px, 3vw, 34px)/1 var(--display); font-stretch: 62%; text-transform: uppercase; }
.board svg { width: 100%; height: auto; margin: 18px 0 20px; overflow: visible; }
.grid-lines path { stroke: rgba(169, 211, 201, .08); stroke-width: 1; fill: none; }
.part { color: var(--line-c); transition: opacity .3s, color .3s; }
.part path, .part circle { fill: none; stroke: currentColor; }
.part text { fill: currentColor; stroke: none; font: 500 15px var(--mono); }
[data-part="outline"] { color: var(--foam); }
.outline { stroke-width: 2.2; }
.stringer { stroke-width: 1; stroke-dasharray: 2 6; opacity: .6; }
.concave { stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .75; }
.fin { stroke-width: 1.5; stroke-dasharray: 3 3; fill: rgba(169, 211, 201, .12) !important; }
.ring { stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0; transition: opacity .3s; }
.dim path { stroke-width: 1; }
.rail { stroke-width: 1.5 !important; }
.board[data-active] .part:not(.is-active):not([data-part="outline"]) { opacity: .3; }
.board .part.is-active { color: var(--coral); opacity: 1; }
.board .part.is-active .ring { opacity: 1; }
.board .part.is-active .concave, .board .part.is-active .stringer { opacity: 1; }
.js .board .outline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .2, 1); }
.js .board.drawn .outline { stroke-dashoffset: 0; }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.specs button {
  width: 100%; height: 100%; text-align: left; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(169, 211, 201, .2); background: rgba(251, 248, 242, .03);
  font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--glass);
  transition: border-color .2s, background-color .2s;
}
.specs button b { display: block; margin-top: 5px; font: 600 15px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--foam); }
.specs button:hover, .specs button.is-active { border-color: var(--coral); background: rgba(226, 96, 58, .1); }

.log li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.log p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Websites (service offer + application) */
.websites { background: var(--shallow); }
.websites h2 { font-size: clamp(48px, 6.5vw, 96px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.svc-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; letter-spacing: -.01em; max-width: 40ch; margin-bottom: 28px; }
.included { border-top: 1px solid var(--line); }
.included li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.included h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.included p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.svc-proof { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

.apply {
  position: relative;
  padding: clamp(22px, 3vw, 34px); border-radius: 18px;
  background: var(--foam); border: 1px solid rgba(15, 43, 47, .08);
  box-shadow: 0 30px 70px -34px rgba(15, 43, 47, .4);
}
.apply-head h3 { font: 800 clamp(30px, 3vw, 40px)/.95 var(--display); font-stretch: 62%; text-transform: uppercase; margin-bottom: 8px; }
.apply-head p { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; }
.field abbr { color: var(--coral); text-decoration: none; }
.opt { margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.apply input:not([type="radio"]), .apply textarea {
  display: block; width: 100%; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(15, 43, 47, .18); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.apply textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.apply ::placeholder { color: rgba(74, 98, 100, .65); }
.apply input:focus-visible, .apply textarea:focus-visible { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(29, 107, 104, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: block; padding: 9px 15px; font-size: 14px; background: #fff; border: 1px solid rgba(15, 43, 47, .2); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:hover + span { border-color: var(--sea); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--foam); }
.chips input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.apply.tried input:invalid:not([type="radio"]), .apply.tried textarea:invalid, .apply.tried .chips input:invalid + span { border-color: var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-dark { background: var(--ink); color: var(--foam); border: 0; }
.btn-dark:hover { background: #1c4448; }
.btn-dark:disabled { opacity: .6; cursor: progress; transform: none; }
.apply-submit { width: 100%; justify-content: center; margin-top: 6px; padding: 16px 22px; font-size: 16px; }
.apply-note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.apply-note a { color: var(--sea); font-weight: 600; text-underline-offset: 3px; }
.apply-status:empty { display: none; }
.apply-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.5; }
.apply-status.ok { background: rgba(29, 107, 104, .1); border-left: 3px solid var(--sea); }
.apply-status.err { background: rgba(226, 96, 58, .09); border-left: 3px solid var(--coral); }
.apply.sent > :not(.apply-head):not(.apply-status) { display: none; }
.contact-lead a { color: var(--foam); text-underline-offset: 3px; }

/* Contact */
.contact {
  position: relative; color: var(--foam);
  background:
    radial-gradient(900px 500px at 100% 100%, rgba(29, 107, 104, .3), transparent 70%),
    var(--deep);
  padding-top: clamp(84px, 10vw, 140px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.contact .label { color: var(--glass); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: rgba(251, 248, 242, .8); max-width: 34ch; }
.links a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding: 20px 0; border-top: 1px solid rgba(251, 248, 242, .16);
  text-decoration: none; transition: color .2s;
}
.links li:last-child a { border-bottom: 1px solid rgba(251, 248, 242, .16); }
.links span { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glass); }
.links b { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; overflow-wrap: anywhere; }
.links i { font-style: normal; transition: transform .25s; }
.links a:hover { color: var(--coral); }
.links a:hover i { transform: translate(3px, -3px); }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(72px, 9vw, 120px); padding-top: 22px;
  border-top: 1px solid rgba(251, 248, 242, .12);
  font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(251, 248, 242, .6);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--foam); }

/* Scroll reveal (only when JS is running, so content never hides without it) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.projects .reveal:nth-child(3n + 2), .log .reveal:nth-child(even) { transition-delay: .08s; }
.projects .reveal:nth-child(3n + 3) { transition-delay: .16s; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .job { grid-template-columns: 120px minmax(0, 1fr); }
  .job .tags { grid-column: 2; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life-grid { grid-template-columns: minmax(0, 1fr); }
  .board { position: relative; top: 0; }
}

@media (max-width: 860px) {
  .hero-body { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 28px; }
  .hero-side { width: 100%; max-width: 440px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 460px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .apply { max-width: 640px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .header-name { display: none; }
  /* The hero runs long on phones, so its copy scrolls under the header; tint it until it turns solid */
  .site-header:not(.solid) {
    background: rgba(11, 33, 36, .72);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
  .mark { width: 38px; height: 38px; font-size: 17px; }
  .site-header nav a { padding: 7px 10px; font-size: 14px; }
  .site-header nav .nav-cta { margin-left: 4px; }
  .hero-name { font-size: clamp(84px, 30vw, 150px); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .conditions { font-size: 12px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .job .tags { grid-column: auto; margin-top: 6px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .skills { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .film-head { grid-template-columns: minmax(0, 1fr); }
  .film-title { font-size: clamp(64px, 20vw, 110px); }
  .film-poster { display: none; }
  .strip-hint { display: none; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .links a { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .included li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 380px) {
  .site-header nav a { padding: 6px 8px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { transform: none; }
  .js .board .outline { stroke-dasharray: none; }
}
