/* ─────────────────────────────────────────────
   Mitchie Amejado: personal site
   Baby-blue theme, matches the portfolio deck.
   ───────────────────────────────────────────── */

:root {
  --bg: #f4f9fd;
  --bg-tint: #eaf5fc;
  --surface: #ffffff;
  --surface-2: #f7fbfe;
  --ink: #0f2238;
  --ink-2: #3c5068;
  --ink-3: #6b7f96;
  --line: #d6e7f3;
  --baby: #89cff0;
  --baby-2: #b9e2f7;
  --accent: #2e7dbf;
  --deep: #1f5f99;
  --navy: #112a4a;
  --glow: rgba(137, 207, 240, .45);
  --shadow: 0 1px 2px rgba(17, 42, 74, .05), 0 8px 30px -12px rgba(17, 42, 74, .18);
  --shadow-lg: 0 30px 80px -30px rgba(17, 42, 74, .35);
  --radius: 28px;
  --radius-sm: 16px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081320;
    --bg-tint: #0c1b2d;
    --surface: #0f2034;
    --surface-2: #12263d;
    --ink: #eaf4fc;
    --ink-2: #b5c8db;
    --ink-3: #7f95ad;
    --line: #1d3550;
    --baby: #89cff0;
    --baby-2: #2a5a7d;
    --accent: #89cff0;
    --deep: #b9e2f7;
    --navy: #eaf4fc;
    --glow: rgba(137, 207, 240, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081320;
  --bg-tint: #0c1b2d;
  --surface: #0f2034;
  --surface-2: #12263d;
  --ink: #eaf4fc;
  --ink-2: #b5c8db;
  --ink-3: #7f95ad;
  --line: #1d3550;
  --baby: #89cff0;
  --baby-2: #2a5a7d;
  --accent: #89cff0;
  --deep: #b9e2f7;
  --navy: #eaf4fc;
  --glow: rgba(137, 207, 240, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--baby); color: #0f2238; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* subtle film grain for depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1200px, 100% - 64px); } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--navy); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(17, 42, 74, .55); }
.btn-dark:hover { box-shadow: 0 16px 40px -12px rgba(17, 42, 74, .6); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--baby); }
.btn-ghost:hover svg { transform: translateY(2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s;
}
.icon-btn:hover { transform: rotate(-12deg); border-color: var(--baby); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Nav ──────────────────────────────────── */
.nav-wrap { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .3s;
}
.nav.is-hidden { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--baby); color: #112a4a;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
  padding-bottom: 3px;
}
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.is-current { background: var(--bg-tint); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
@media (min-width: 860px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand-name { display: none; } }

/* ── Hero ─────────────────────────────────── */
.hero { position: relative; padding: 140px 0 0; isolation: isolate; }
.hero-sky, .contact-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.hero .b1 { width: 520px; height: 520px; background: var(--baby); top: -160px; right: -120px; }
.hero .b2 { width: 380px; height: 380px; background: #c8e6ff; bottom: 60px; left: -140px; animation-delay: -6s; }
.hero .b3 { width: 260px; height: 260px; background: #d9f0ff; top: 40%; left: 45%; animation-delay: -12s; opacity: .5; }
:root[data-theme="dark"] .blob { opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .22; } }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
  100% { transform: translate(-20px, 25px) scale(.96); }
}

.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 40px; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.hero-title {
  margin-top: 26px;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero-title .line { display: block; }
.hero-title em { font-size: 1.08em; color: var(--accent); letter-spacing: -.02em; }
.hl {
  background: linear-gradient(transparent 62%, var(--baby-2) 62%, var(--baby-2) 92%, transparent 92%);
  padding: 0 .06em;
}
.hero-sub { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; justify-self: center; width: min(420px, 86%); }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 32px 32px;
  overflow: hidden;
  background: var(--baby);
  box-shadow: var(--shadow-lg);
  outline: 10px solid color-mix(in srgb, var(--surface) 85%, transparent);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.hero-visual:hover .portrait img { transform: scale(1.04); }

.float-card {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: bob 6s ease-in-out infinite;
}
.fc-1 { left: -12%; bottom: 18%; }
.fc-2 { right: -10%; top: 14%; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; animation-delay: -3s; }
.fc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.fc-value { font-weight: 600; }
.fc-time { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 500; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-left: 4px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
  .fc-1 { left: -6%; }
  .fc-2 { right: -6%; }
}

.spin-badge {
  position: absolute; right: -6%; bottom: -6%;
  width: 124px; height: 124px;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy);
  fill: var(--bg);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em;
  animation: spin 22s linear infinite;
  box-shadow: var(--shadow);
}
@keyframes spin { to { rotate: 360deg; } }

/* Marquee */
.marquee {
  margin-top: 96px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.02em; font-weight: 500;
  white-space: nowrap;
}
.marquee li::after { content: "✦"; font-size: .6em; color: var(--baby); }
.marquee li:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────── */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.section-head.split > div { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
h2 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
h2 em { color: var(--accent); }

/* ── Bento ────────────────────────────────── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); }
  .tile-intro { grid-column: span 2; grid-row: span 2; }
  .tile-tools, .tile-lang, .tile-edu { grid-column: span 2; }
}
.tile {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.glow::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), var(--glow), transparent 60%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.glow:hover::before { opacity: 1; }
.tile-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 16px; }
.tile-lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.tile-body { margin-top: 20px; color: var(--ink-2); }
.tile-intro { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, var(--surface) 40%, var(--bg-tint)); }

.tile-stat { display: flex; flex-direction: column; justify-content: flex-end; }
.tile-stat p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.stat-num { font-size: 84px; line-height: .9; font-weight: 600; letter-spacing: -.06em; }
.stat-plus { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent); margin-left: 6px; }
.tile-stat > .stat-num + .stat-plus { display: inline; }
.tile-stat { display: block; }
.tile-stat p { max-width: 20em; }
.tile-blue { background: var(--baby); border-color: transparent; color: #0f2238; }
.tile-blue p { color: #1d3a5c; }

.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cloud li {
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.pill-cloud li:hover { transform: translateY(-3px) rotate(-2deg); background: var(--baby-2); border-color: var(--baby); }

.lang { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; margin-top: 12px; font-weight: 500; }
.lang small { color: var(--ink-3); font-size: 13px; }
.lang-bar { height: 8px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.lang-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--baby), var(--accent)); }

.edu-title { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.edu-sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* ── Work gallery ─────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 0;
  background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--navy); color: var(--bg); }

/* 20-column grid: wide = half, tall = quarter, phone screenshots = fifth */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row; /* tiles are pre-ordered by format so rows line up */
}
.work { grid-column: span 2; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.work.w-tall, .work.w-phone, .work.w-sq { grid-column: span 1; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(20, 1fr); }
  .work { grid-column: span 10; }
  .work.w-tall { grid-column: span 5; }
  .work.w-sq { grid-column: span 5; }
  .work.w-phone { grid-column: span 4; }
}
.work.is-out { display: none; }
/* Product "show all": only the first rows of products until expanded */
.gallery.is-collapsed .work.is-extra { display: none; }
.gallery.is-collapsed[data-view="product"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent);
}
.more-wrap { display: flex; justify-content: center; margin-top: 28px; position: relative; z-index: 1; }
.gallery.is-collapsed[data-view="product"] + .more-wrap { margin-top: -72px; }
.more-wrap[hidden] { display: none; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease), border-color .25s;
}
.more-btn:hover { transform: translateY(-2px); border-color: var(--baby); }
.more-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.work-btn {
  position: relative; display: block; width: 100%;
  padding: 0; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work-btn:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-btn img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-btn:hover img { transform: scale(1.05); }
.w-wide img { aspect-ratio: 4 / 3; }
.w-tall img { aspect-ratio: 9 / 14; }
.w-sq img { aspect-ratio: 1 / 1; }
.w-phone img { aspect-ratio: 9 / 15; object-position: top; }
.work-meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  transform: translateY(8px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.work-btn:hover .work-meta, .work-btn:focus-visible .work-meta { transform: none; opacity: 1; }
@media (hover: none) { .work-meta { transform: none; opacity: 1; } }
.work-title { font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.work-tag { order: 2; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); white-space: nowrap; }
.work-foot { margin-top: 40px; text-align: center; color: var(--ink-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.up::after { content: "↑"; }
.link-arrow.up:hover::after { transform: translateY(-3px); }

/* ── Timeline ─────────────────────────────── */
.timeline { position: relative; display: grid; gap: 16px; }
.job { display: grid; gap: 10px; }
@media (min-width: 860px) {
  .job { grid-template-columns: 200px 1fr; gap: 32px; }
  .job-when { position: sticky; top: 110px; align-self: start; padding-top: 26px; }
}
.job-when { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.job-card {
  position: relative;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .3s;
}
.job-card[open] { border-color: var(--baby); }
.job-card summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-head { display: grid; gap: 4px; }
.job-role { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.job-org { color: var(--ink-3); font-size: 15px; }
.badge {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 3px 10px;
  border-radius: 999px;
  background: var(--baby-2); color: var(--navy);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
:root[data-theme="dark"] .badge { color: var(--ink); }
.plus {
  position: relative; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), background-color .3s;
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.8px; border-radius: 2px;
  background: currentColor; translate: -50% -50%;
}
.plus::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.job-card[open] .plus { background: var(--baby); border-color: var(--baby); color: #0f2238; transform: rotate(180deg); }
.job-card[open] .plus::after { rotate: 0deg; }
.job-body { position: relative; padding: 0 26px 26px; color: var(--ink-2); }
.job-body > ul:first-child { display: grid; gap: 10px; }
.job-body > ul:first-child li { position: relative; padding-left: 22px; }
.job-body > ul:first-child li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 8px; height: 8px; border-radius: 3px; rotate: 45deg;
  background: var(--baby);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.job-card[open] .job-body { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ── Services ─────────────────────────────── */
.services { display: grid; gap: 16px; }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative; overflow: hidden;
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.svc:hover { transform: translateY(-6px); }
.svc-num { position: absolute; right: 26px; top: 20px; font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; color: var(--baby-2); }
.svc-icon {
  width: 52px; height: 52px; padding: 12px;
  border-radius: 16px;
  background: var(--baby); color: #0f2238;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.svc h3 { margin-top: 26px; font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.svc ul { margin-top: 16px; display: grid; gap: 10px; color: var(--ink-2); }
.svc li { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.svc li::before { content: "✦"; font-size: 10px; color: var(--accent); }

/* ── Contact ──────────────────────────────── */
.contact { padding: clamp(80px, 11vw, 140px) 0; }
.contact-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.contact .b1 { width: 480px; height: 480px; background: var(--baby); right: -160px; top: -200px; }
.contact .b2 { width: 360px; height: 360px; background: #cfe9ff; left: -160px; bottom: -200px; animation-delay: -8s; }
.contact h2 { font-size: clamp(36px, 6vw, 76px); max-width: 14em; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.mail-link {
  font-size: clamp(16px, 4.6vw, 40px);
  font-weight: 500; letter-spacing: -.03em;
  text-decoration: none;
  overflow-wrap: break-word;
  background: linear-gradient(var(--baby), var(--baby)) 0 100% / 100% 3px no-repeat;
  transition: background-size .35s var(--ease);
}
.mail-link:hover { background-size: 100% 40%; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; font-size: 14px; font-weight: 500;
  transition: border-color .25s, transform .25s var(--ease);
}
.copy-btn:hover { border-color: var(--baby); transform: translateY(-2px); }
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.contact-list { display: grid; gap: 0; margin-top: 40px; max-width: 760px; }
@media (min-width: 760px) { .contact-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.contact-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.contact-list a, .contact-list p { font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 20px; max-width: 560px; margin: 48px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.cf-head { text-align: center; }
.cf-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cf-sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.cf-field { display: grid; gap: 6px; }
.cf-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-field input, .cf-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink-3) 45%, var(--line)); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.cf-field textarea { min-height: 140px; resize: vertical; }
.cf-field input:hover, .cf-field textarea:hover { border-color: var(--ink-3); }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--baby) 40%, transparent);
}
.cf-field [aria-invalid="true"] { border-color: #c0392b; }
.cf-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .2); }
.cf-err { min-height: 0; font-size: 13px; font-weight: 500; color: #c0392b; }
.cf-err:empty { display: none; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 12px 16px; margin-top: 4px; }
.cf-status:empty { display: none; }
.cf-status { flex-basis: 100%; }
.cf-submit { min-height: 48px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cf-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.cf-status { font-size: 14px; color: var(--ink-2); }
.cf-status.is-ok { color: #1e8449; font-weight: 600; }
.cf-status.is-bad { color: #c0392b; font-weight: 600; }
@media (max-width: 560px) { .cf-submit { width: 100%; justify-content: center; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cf-err, :root:not([data-theme="light"]) .cf-status.is-bad { color: #ff8a80; }
  :root:not([data-theme="light"]) .cf-status.is-ok { color: #58d68d; }
}
:root[data-theme="dark"] .cf-err, :root[data-theme="dark"] .cf-status.is-bad { color: #ff8a80; }
:root[data-theme="dark"] .cf-status.is-ok { color: #58d68d; }

/* ── Footer ───────────────────────────────── */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-words { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }

/* ── Lightbox ─────────────────────────────── */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 24px;
  border: 0; background: transparent;
  display: none; align-items: center; justify-content: center; gap: 16px;
}
.lightbox[open] { display: flex; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: rgba(8, 19, 32, .82); backdrop-filter: blur(10px); }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1000px, 100%); }
.lightbox img { max-height: calc(100dvh - 140px); width: auto; border-radius: 18px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); animation: pop .4s var(--ease); }
.lightbox figcaption { display: grid; gap: 2px; text-align: center; color: #eaf4fc; }
.lightbox figcaption span { color: #b5c8db; font-size: 15px; }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; flex: none; }
@media (max-width: 640px) {
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
  .lightbox img { max-height: calc(100dvh - 200px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ── Toast ────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  padding: 12px 20px; border-radius: 999px;
  background: var(--navy); color: var(--bg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ── Scroll reveal ────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
