:root {
  --bg: #0d060b;
  --surface: #1b0e17;
  --ink: #f2eae6;
  --muted: #bcb0b7;
  --accent: #e8b65a;
  --accent-ink: #0d060b;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 13vw, 12.5rem);
  --gutter: 16px;
  --gap: 16px;
  --section: clamp(96px, 13vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

.wrap { padding-inline: var(--gutter); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.site-header { position: relative; z-index: 10; }
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.wordmark { font-weight: 600; font-size: var(--step-body); text-decoration: none; letter-spacing: 0; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  font-size: var(--step-body);
  color: var(--muted);
  text-decoration: none;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 180ms var(--ease-out);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); }

.home .site-header { position: absolute; inset: 0 0 auto auto; }
.home .site-header .bar { justify-content: flex-end; gap: 12px; padding-block: 20px; }
.home .site-header .wordmark { display: none; }
@media (min-width: 768px) {
  .home .site-header .bar { gap: 24px; }
  .home .site-header .wordmark { display: inline; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out);
}
.button:hover { transform: translateY(-2px); background: #f1c673; }
.button:active { transform: translateY(0); }

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 88px var(--gutter) 20px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(0.55) contrast(1.05);
}
.hero h1 { grid-area: 1 / 1 / 4 / 2; display: grid; grid-template-rows: auto 1fr auto; font-weight: 400; }
.hero .line {
  display: block;
  overflow: hidden;
  font-size: calc(19vw);
  line-height: 0.85;
  letter-spacing: -0.02em;
  padding: 0.1em 0 0.1em;
  margin: -0.1em 0;
}
.hero .line > span { display: block; }
.hero .line-2 { text-align: right; align-self: end; grid-row: 3; }
.hero-mid {
  grid-area: 2 / 1 / 3 / 2;
  align-self: center;
  max-width: 44ch;
  padding-block: 24px;
}
.hero-mid p { font-size: 1.125rem; line-height: 1.5; margin-bottom: 24px; }

@media (min-width: 768px) {
  .hero { padding: 72px var(--gutter) 24px; }
  .hero .line { font-size: var(--step-display); }
  .hero .line-2 { text-align: left; margin-left: 28vw; }
  .hero-mid { margin-left: 30vw; }
  .hero-mid p { font-size: 1.125rem; }
}

.section { padding-block: var(--section); }

.section h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: var(--step-head);
}

.intro .text { grid-column: 1 / -1; }
.intro .text h2 { margin-bottom: 24px; }
.lang-switch { display: none; gap: 4px; margin-bottom: 20px; }
.js .lang-switch { display: flex; flex-wrap: wrap; }
.lang-switch button {
  font: inherit;
  font-size: var(--step-body);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px 8px 0;
  margin-right: 10px;
  cursor: pointer;
  transition: color 180ms var(--ease-out);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.statement {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 34em;
  transition: opacity 220ms var(--ease-out);
}
.statement.is-swapping { opacity: 0; }
.statement[dir="rtl"] { line-height: 1.7; }
.intro .side { grid-column: 1 / -1; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 16px; margin-top: 48px; }
.intro .side figure { flex: 0 0 62%; }
.intro .side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.note { flex: 1; font-size: var(--step-small); color: var(--muted); line-height: 1.5; }

@media (min-width: 900px) {
  .intro .grid { align-items: start; }
  .intro .text { grid-column: 7 / 13; grid-row: 1; padding-top: 4vh; }
  .intro .statement { text-indent: 3em; font-size: var(--step-lead); }
  .intro .side { grid-column: 1 / 5; grid-row: 1; display: block; margin-top: 0; }
  .intro .side figure { width: 100%; }
  .intro .side img { aspect-ratio: 1 / 1; }
  .intro .note { margin-top: 48px; max-width: 220px; }
}

.work .head { margin-bottom: 48px; }
.work .item { grid-column: 1 / -1; }
.work .item figure { position: relative; }
.work .name { font-size: var(--step-small); color: var(--muted); margin-bottom: 12px; }
.work .item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(0.8) contrast(1.05); transition: transform 1600ms var(--ease-soft); }
.work .frame { overflow: hidden; }
.work .frame:hover img { transform: scale(1.03); }
.work .desc { margin-top: 24px; font-size: var(--step-body); max-width: 36em; }
@media (min-width: 900px) {
  .work .item { grid-column: 1 / 9; }
  .work .aside { grid-column: 9 / 13; align-self: end; padding-left: 16px; }
  .work .desc { margin-top: 0; }
}
.work .aside { grid-column: 1 / -1; }
@media (min-width: 900px) { .work .aside { grid-column: 9 / 13; } }

.about .grid { row-gap: 40px; }
.about h2 { grid-column: 1 / -1; }
.about .facts { grid-column: 1 / -1; display: grid; gap: 32px; }
@media (min-width: 900px) {
  .about h2 { grid-column: 1 / 6; }
  .about .facts { grid-column: 6 / 13; grid-template-columns: 1fr 1fr; gap: 48px; }
}
.about dl { display: grid; gap: 24px; }
.about dt { font-size: var(--step-small); color: var(--muted); margin-bottom: 2px; }
.about dd { font-size: var(--step-body); }
.about .facts p { font-size: var(--step-body); max-width: 36em; }

.rest img {
  width: 100%;
  height: clamp(220px, 38vw, 540px);
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
}

.contact {
  background: var(--surface);
  min-height: 86svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 72px var(--gutter) 40px;
}
.contact h2 { font-weight: 400; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.3; max-width: 22ch; }
.email {
  align-self: center;
  display: block;
  font-size: 11.5vw;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  padding-block: 8vh;
  overflow-wrap: normal;
  transition: color 220ms var(--ease-out);
}
.email span { display: block; }
.email:hover, .email:focus-visible { color: var(--accent); }
@media (min-width: 768px) {
  .email { font-size: 8.2vw; white-space: nowrap; }
  .email span { display: inline; }
}
.contact .corners { display: flex; flex-direction: column; gap: 12px; font-size: var(--step-body); }
.contact .corners a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 180ms var(--ease-out); }
.contact .corners a:hover { color: var(--ink); }
.contact .corners .links { display: flex; gap: 24px; }
@media (min-width: 768px) {
  .contact .corners { flex-direction: row; justify-content: space-between; align-items: center; }
}

.site-footer { padding: 64px var(--gutter) 20px; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; font-size: var(--step-body); }
.f-cols p, .f-cols li { color: var(--muted); }
.f-cols .first { color: var(--ink); }
.f-cols ul { list-style: none; padding: 0; margin: 0; }
.f-cols a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; transition: color 180ms var(--ease-out); }
.f-cols a:hover { color: var(--ink); }
.f-cols address { font-style: normal; color: var(--muted); }
.f-cols .col-contact a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .f-cols { grid-template-columns: repeat(4, 1fr); }
}
.wordmark-fit { display: block; width: 100%; height: auto; margin-top: clamp(64px, 14vh, 160px); fill: var(--ink); }
.wordmark-fit.two { display: block; }
.wordmark-fit.one { display: none; }
@media (min-width: 768px) {
  .wordmark-fit.two { display: none; }
  .wordmark-fit.one { display: block; }
}
.wordmark-fit text { font-family: "Archivo", system-ui, sans-serif; font-weight: 400; letter-spacing: -0.02em; }
.legal { font-size: var(--step-small); color: var(--muted); margin-top: 16px; max-width: 70ch; }
.credits { font-size: var(--step-small); color: var(--muted); margin-top: 8px; max-width: 70ch; }

.doc { padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 140px); }
.doc .inner { max-width: 68ch; }
.doc h1 { font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; margin-bottom: 24px; }
.doc .updated { color: var(--muted); font-size: var(--step-body); margin-bottom: 32px; }
.banner { background: var(--surface); padding: 16px 20px; margin-bottom: 40px; font-weight: 600; }
.doc h2 { font-weight: 600; font-size: var(--step-lead); line-height: 1.25; margin: 48px 0 12px; letter-spacing: 0; }
.doc h3 { font-weight: 600; font-size: var(--step-body); margin: 28px 0 8px; }
.doc p, .doc li { font-size: var(--step-body); line-height: 1.65; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; margin-top: 12px; }
.doc li + li { margin-top: 8px; }
.doc a { text-decoration: underline; transition: color 180ms var(--ease-out); }
.doc a:hover { color: var(--accent); }
.doc .lede { font-size: var(--step-lead); line-height: 1.4; margin-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero .line > span {
    transform: translateY(108%);
    animation: line-up 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js .hero-media img { transform: scale(1.08); animation: drift 2600ms var(--ease-soft) forwards; }
  .js .hero-mid { opacity: 0; transform: translateY(20px); animation: fade-up 800ms var(--ease-out) 1000ms forwards; }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes drift { to { transform: scale(1); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
