/* TONN DESIGN — Option 2 (magazine look). Spacing follows an 8px grid. */
:root {
  --dark: #2B2A2B;
  --ink: #403F40;
  --white: #FFFFFF;
  --soft: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.25);
  --pad: 48px;
  --shade: linear-gradient(to bottom, rgba(0,0,0,0.38), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: Prompt, system-ui, sans-serif;
  font-size: 15px;
  line-height: 24px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button { font: inherit; color: inherit; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.upper { text-transform: uppercase; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 32px; padding-bottom: 32px; color: var(--white);
}
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid currentColor; }

/* Full-screen image with text on top */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #222122; }
.hero.capped { height: min(100vh, 900px); height: min(100svh, 900px); }
.hero > img, .hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slide { opacity: 0; transition: opacity 1200ms ease; }
.hero .slide.on { opacity: 1; }
.hero .shade { position: absolute; inset: 0; background: var(--shade); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 48px; }
.home-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; }
.home-title { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.home-title .meta { font-size: 14px; letter-spacing: 0.04em; }
.mega { font-size: 73px; line-height: 72px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.controls { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.round { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.8); background: transparent; cursor: pointer; font-size: 20px; }

/* Projects */
.tabs { display: flex; gap: 32px; overflow-x: auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; color: rgba(255,255,255,0.7); }
.tab[aria-selected="true"] { color: var(--white); font-weight: 700; border-bottom-color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 96px; }
.card { position: relative; display: block; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #222122; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.42), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6)); }
.card .top { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.card .bottom { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.card .name { font-size: 32px; line-height: 32px; font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
.card .place { font-size: 14px; font-weight: 300; }
.empty { grid-column: 1 / -1; margin: 0; padding: 48px 0; font-size: 17px; font-weight: 300; color: var(--soft); }

/* Project page */
.detail-head { display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.big { margin: 0; font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.facts { max-width: 960px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin-top: 8px; }
.fact { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.4); }
.fact span:first-child { font-size: 13px; opacity: 0.8; }
.fact span:last-child { font-size: 16px; }
.text { display: flex; justify-content: center; padding-top: 96px; padding-bottom: 96px; }
.text > div { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 24px; }
.text p { margin: 0; font-size: 17px; line-height: 32px; font-weight: 300; text-align: justify; hyphens: auto; color: rgba(255,255,255,0.88); }
.gallery { display: flex; flex-direction: column; gap: 32px; padding-bottom: 96px; }
.gallery .wide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery .pair { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 32px; }
.gallery .pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.next .all { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.next .to { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.next .to span:first-child { font-size: 13px; color: var(--soft); }
.next .to span:last-child { font-size: 22px; line-height: 32px; font-weight: 700; text-transform: uppercase; }

/* Contact + simple pages */
.page-main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.contact { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 32px 96px; align-items: flex-start; padding-top: 56px; padding-bottom: 96px; }
.contact h1 { flex: 1 1 420px; }
.rows { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.row span:first-child { font-size: 13px; color: var(--soft); }
.row .val { font-size: 17px; line-height: 24px; font-weight: 300; white-space: pre-line; }
.page-body { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.page-body .text { padding: 0; justify-content: flex-start; }
.page-body .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.site-footer .social { display: flex; gap: 24px; }

.notice { padding: 160px var(--pad); font-size: 17px; font-weight: 300; color: var(--soft); }

@media (max-width: 640px) {
  :root { --pad: 24px; }
  .site-header { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 48px; padding-bottom: 16px; }
  .site-header .logo { align-self: flex-start; }
  .site-header .logo img { height: 40px; }
  .site-nav { gap: 0; justify-content: space-between; }
  .mega { font-size: 36px; line-height: 40px; }
  .big { font-size: 28px; line-height: 32px; }
  .card .name { font-size: 26px; }
  .contact { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide { transition: none; }
}
