/* Corporate mode — minimal, clean. Edit the tokens below to restyle everything. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e3;
  --accent: #0f4c5c; /* deep ocean teal — placeholder */
  --max: 960px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* "Creative mode" button: the iridescent sheen of a Tahitian black pearl */
.mode-toggle {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; color: #f3f0f7;
  padding: 8px 16px;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 20%, #6b7f8c, #2f3540 45%, #1b1d24 80%);
  box-shadow: 0 1px 3px rgba(20, 22, 30, .25);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.mode-toggle::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, rgba(120,200,190,.55), rgba(170,140,220,.55), rgba(230,170,200,.45), rgba(140,190,230,.55), rgba(120,200,190,.55));
  mix-blend-mode: screen; filter: blur(6px);
  animation: pearl-spin 7s linear infinite;
}
.mode-toggle::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,.45), transparent 60%);
}
.mode-toggle:hover, .mode-toggle:focus-visible { transform: scale(1.05); box-shadow: 0 3px 10px rgba(20, 22, 30, .3); }
.mode-toggle:hover::before, .mode-toggle:focus-visible::before { animation-duration: 2.5s; }
.mode-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes pearl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mode-toggle::before { animation: none; } .mode-toggle { transition: none; } }
.mode-toggle[hidden] { display: none; }
.brand { font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mode-toggle:not([hidden]) + .brand { display: none; }
.nav { display: flex; gap: 22px; list-style: none; }
.nav a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--ink); }

/* ---------- Sections ---------- */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 24px;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }

/* ---------- Home ---------- */
#home { padding-top: 96px; }
.hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
}
.photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lead + .lead { margin-top: 14px; }

/* ---------- Path (About) ---------- */
.path { list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
.path li {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.path .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.path strong { font-weight: 600; margin-right: 6px; }
.hero .title { font-size: 20px; color: var(--accent); font-weight: 500; margin: 12px 0 20px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a {
  font-size: 14px; text-decoration: none;
  padding: 9px 16px;
  background: var(--bg-soft);
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.jump a:hover { background: var(--accent); color: #fff; }

/* ---------- Project card ---------- */
.card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .tag {
  display: inline-block; font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
.card .arrow { font-size: 22px; color: var(--accent); flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-links { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  padding: 12px 22px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 15px;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 32px 24px 48px;
}

/* ---------- One-pager ---------- */
.onepager { max-width: 760px; margin: 0 auto; padding: 80px 24px 112px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.onepager h1 { margin: 28px 0 8px; }
.onepager .ext { font-size: 15px; color: var(--accent); }
.facts { margin-top: 48px; display: grid; gap: 28px; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.fact h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.fact p { color: var(--ink); }
.onepager .when { color: var(--muted); font-size: 15px; margin-top: 6px; }
.onepager .ext { display: inline-block; margin-top: 14px; }
.fact ul { padding-left: 18px; display: grid; gap: 8px; }
.fact p + p { margin-top: 12px; }
.fact .note { font-size: 14px; color: var(--muted); }
.fact .note a { color: var(--accent); }
.figure { margin-top: 56px; }
.figure img { width: 100%; height: auto; border-radius: 8px; background: var(--bg-soft); }
.figure.square img { max-width: 440px; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  section { padding: 80px 20px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .photo { max-width: 240px; }
  .card { padding: 20px; }
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .path li { grid-template-columns: 1fr; gap: 2px; }
}
