/* ===== Tokens ===== */
:root {
  --color-surface: oklch(97.6% 0.012 90);        /* warm cream */
  --color-surface-raised: oklch(99% 0.008 92);
  --color-text: oklch(24% 0.015 70);              /* warm ink */
  --color-text-soft: oklch(48% 0.02 70);
  --color-accent: oklch(58% 0.16 45);             /* burnt sienna */
  --color-line: oklch(24% 0.015 70 / 0.14);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", Georgia, serif;

  --text-base: clamp(0.95rem, 0.91rem + 0.2vw, 1.0625rem);
  --text-name: clamp(1.9rem, 1.3rem + 3vw, 2.9rem);
  --text-tagline: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --column: 41rem;

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain atmosphere */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 2;
  max-width: var(--column);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) 1.5rem 6rem;
}

/* ===== Language switcher ===== */
.lang {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.lang a {
  text-decoration: none;
  color: var(--color-text-soft);
}

.lang a:hover,
.lang a:focus-visible { color: var(--color-accent); }

.lang a.is-active {
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1.5px solid var(--color-accent);
  padding-bottom: 1px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: oklch(24% 0.015 70 / 0.35);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease, text-decoration-color var(--duration-fast) ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--space-section) 0;
}

/* ===== Hero ===== */
.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: var(--text-name);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-tagline {
  margin: 0.5rem 0 0;
  font-size: var(--text-tagline);
  color: var(--color-text-soft);
  font-weight: 400;
}

.hero-tagline em {
  font-family: var(--font-display);
  color: var(--color-accent);
}

.hero-figure {
  margin: 3rem 0 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 1px 2px oklch(24% 0.015 70 / 0.08),
    0 12px 40px -12px oklch(24% 0.015 70 / 0.35);
}

.hero-figure figcaption,
.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
}

.hero-copy {
  margin-top: 3rem;
}

.hero-copy p { margin: 0 0 1.35rem; }
.hero-copy p:last-child { margin-bottom: 0; }

/* ===== Sections ===== */
.section-label {
  margin: 0 0 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* ===== Work accordion ===== */
.entry {
  border-bottom: 1px solid var(--color-line);
}

.entry summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.3rem 0.25rem;
  cursor: pointer;
  list-style: none;
  transition: background var(--duration-fast) ease;
  border-radius: 6px;
}

.entry summary::-webkit-details-marker { display: none; }

.entry summary:hover { background: oklch(24% 0.015 70 / 0.035); }

.entry summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.entry-chevron {
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  align-self: center;
  border-right: 1.5px solid var(--color-text-soft);
  border-bottom: 1.5px solid var(--color-text-soft);
  transform: rotate(-45deg);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.entry.is-open .entry-chevron { transform: rotate(45deg); }

.entry-name {
  font-weight: 600;
  flex: 0 0 auto;
}

@media (min-width: 561px) {
  .entry-name { white-space: nowrap; }
}

.entry-role { color: var(--color-text-soft); }

.entry-year {
  margin-left: auto;
  color: var(--color-text-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}

/* animated open/close via grid rows (script.js toggles) */
.entry-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-normal) var(--ease-out-expo);
}

.entry.is-open .entry-body { grid-template-rows: 1fr; }

.entry-inner {
  overflow: hidden;
  padding: 0 0.25rem 0 1.35rem;
}

.entry-inner > p:first-child { margin-top: 0.25rem; }

.entry-inner > :last-child { margin-bottom: 1.4rem; }

.worklist {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
}

.worklist li { margin-bottom: 0.7rem; }

.entry-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.entry-link a { font-size: 0.95rem; }

/* photos inside entries */
.shot { margin: 1.25rem 0; }

.shot img,
.collage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 1px 2px oklch(24% 0.015 70 / 0.1),
    0 10px 30px -10px oklch(24% 0.015 70 / 0.3);
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.collage img:first-child { transform: rotate(-1.2deg); }
.collage img:last-child  { transform: rotate(1deg); }

/* ===== Toolbox ===== */
.entry--wide { border-bottom: 0; }

.entry-inner--wide { padding-left: 0; }

.stack-intro {
  margin: 0.5rem 0 2.25rem;
  max-width: 36rem;
}

.stack-group { margin-bottom: 2rem; }
.stack-group:last-child { margin-bottom: 0; }

.stack-label {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.stack-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-raised);
  transition:
    transform var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

.chip img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.chip span {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: oklch(58% 0.16 45 / 0.45);
  box-shadow: 0 8px 20px -12px oklch(24% 0.015 70 / 0.35);
}

/* ===== Certifications ===== */
.entry--static .entry-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.3rem 0.25rem;
}

.entry-chevron.is-hidden { visibility: hidden; }

.shot--cert {
  margin: 1rem 0;
}

.shot--cert img {
  max-width: min(26rem, 100%);
  border: 1px solid var(--color-line);
  box-shadow: 0 6px 22px -10px oklch(24% 0.015 70 / 0.25);
}

/* ===== Footer ===== */
.footer p { margin: 0 0 0.5rem; }

.cta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.cta-sub {
  max-width: 32rem;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
}

.cta-sub a { color: var(--color-text); }

.footer-fine {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .entry summary,
  .entry--static .entry-row { flex-wrap: wrap; row-gap: 0.1rem; }
  .entry-role { order: 3; flex-basis: 100%; padding-left: 1.35rem; font-size: 0.9em; }
  .collage { grid-template-columns: 1fr; }
  .collage img { transform: none !important; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .chip { padding: 0.55rem 0.7rem; gap: 0.55rem; }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
