:root {
  --ink: #0c0c0b;
  --line: rgba(236, 231, 220, 0.1);
  --paper: #ece7dc;
  --paper-2: #b9b4a8;
  --muted: #7d796f;
  --accent: #c2ad7e;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--mx, 75%) var(--my, 15%), rgba(236, 231, 220, 0.035), transparent 60%);
}
main, .nav, .footer { position: relative; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  font-size: 14px;
}
.brand { font-weight: 450; letter-spacing: 0.01em; }
.nav-link { color: var(--paper-2); transition: color 0.2s; }
.nav-link:hover { color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding-top: clamp(96px, 16vh, 180px);
  padding-bottom: clamp(96px, 14vh, 160px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(68px, 10vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}
.name .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.1em; }
.name .word { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.name .line:nth-child(2) .word { animation-delay: 0.1s; }
@keyframes rise { to { transform: none; } }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--paper-2);
  font-weight: 300;
  max-width: 36ch;
  margin: 0;
}

.portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transition: filter 1.2s var(--ease);
}
.portrait:hover img { filter: grayscale(0.2) contrast(1.02) brightness(0.95); }


@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 72px; }
  .portrait { max-width: 320px; grid-row: 1; }
}

/* ---------- blocks ---------- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px clamp(24px, 5vw, 80px);
  padding-top: 40px;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  align-self: start;
}

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows li, .rows li > a {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 90px;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
}
.rows li:has(> a) { display: block; padding: 0; }
.rows li > a:hover .r-main { color: var(--accent); }
.rows li.r-group {
  display: block;
  padding: 28px 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rows li.r-group:first-child { padding-top: 14px; }
.r-main { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; transition: color 0.2s; }
.r-detail { color: var(--paper-2); font-size: 15px; }
.r-meta { color: var(--muted); font-size: 12px; text-align: right; font-family: var(--mono); }

@media (max-width: 700px) {
  .block { grid-template-columns: 1fr; }
  .rows li, .rows li > a { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .r-main { grid-column: 1; }
  .r-meta { grid-column: 2; grid-row: 1; }
  .r-detail { grid-column: 1 / -1; }
}

/* ---------- work ---------- */

.work { border-top: 1px solid var(--line); }
.item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 4px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.i-name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; grid-row: span 2; transition: color 0.2s; }
a.item:hover .i-name { color: var(--accent); }
.i-role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); padding-top: 6px; }
.i-desc { color: var(--paper-2); font-size: 15.5px; max-width: 52ch; }
.i-desc a { border-bottom: 1px solid var(--line-2); transition: border-color 0.2s, color 0.2s; }
.i-desc a:hover { color: var(--paper); border-color: var(--paper); }
.also { color: var(--muted); font-size: 14px; margin: 22px 0 0; }

@media (max-width: 700px) {
  .item { grid-template-columns: 1fr; }
  .i-name { grid-row: auto; }
}

/* ---------- contact ---------- */

.contact { border-top: 1px solid var(--line); padding-top: 18px; }
.mail {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.mail:hover { background-size: 100% 1px; }
.links { display: flex; gap: 28px; margin: 20px 0 0; font-size: 14px; }
.links a { color: var(--paper-2); transition: color 0.2s; }
.links a:hover { color: var(--paper); }

.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- motion ---------- */

.intro {
  opacity: 0;
  animation: intro 1.2s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i, 0) * 0.15s);
}
@keyframes intro { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .name .word { transform: none; }
  .intro, .reveal { opacity: 1; transform: none; }
}
