/* Aozora (ArchViz studio) site, version 1 (2026-11-22)
   One stylesheet for every page. Colours and sizes are variables at the top,
   so a change of look is a change of a few lines here, not a hunt through the file. */

:root {
  --bg: #0d0d0c;          /* page background, near black with a warm cast */
  --bg-raised: #161614;   /* cards and tiles */
  --line: #2a2926;        /* thin dividing lines */
  --text: #ece8e1;        /* main text, warm white */
  --muted: #9a958b;       /* secondary text */
  --accent: #d9a25f;      /* the warm window light of the cabin film */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);  /* side margin: 16px on phones, up to 56px on wide screens */
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.3s, padding 0.3s;
}
.site-header.is-solid { background: rgba(13, 13, 12, 0.88); backdrop-filter: blur(10px); padding-block: 14px; }
.brand { font-family: var(--serif); font-size: 24px; letter-spacing: 0.12em; }
.brand small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; color: var(--muted); margin-left: 12px; text-transform: uppercase; }
.nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.08em; }
.nav a { opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { border: 1px solid rgba(236, 232, 225, 0.5); padding: 8px 18px; opacity: 1; }
.nav .nav-cta:hover { background: var(--text); color: var(--bg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero video, .hero .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {  /* darkens top and bottom so the text stays readable over any frame */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0) 28%, rgba(13,13,12,0) 50%, rgba(13,13,12,0.85) 100%);
}
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 9vh, 96px); max-width: 900px; }
.hero-copy h1 { font-size: clamp(40px, 7vw, 104px); }
.hero-copy p { margin-top: 20px; max-width: 520px; color: rgba(236, 232, 225, 0.85); }
.hero-note { position: absolute; z-index: 2; right: var(--gutter); bottom: 20px; font-size: 11px; color: rgba(236,232,225,0.55); letter-spacing: 0.04em; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 11vw, 160px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 64px); max-width: 16ch; }
.section-head p { max-width: 420px; color: var(--muted); }

.intro h2 { font-size: clamp(28px, 3.8vw, 56px); max-width: 22ch; }
.intro .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); margin-top: 40px; color: var(--muted); max-width: 1000px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raised); }
.service img, .service video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.service:hover img, .service:hover video { transform: scale(1.04); }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,0) 45%, rgba(13,13,12,0.8) 100%); }
.service-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; }
.service-copy h3 { font-size: clamp(26px, 2.6vw, 40px); }
.service-copy p { font-size: 14px; color: rgba(236,232,225,0.8); margin-top: 6px; max-width: 44ch; }
.service.is-empty { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.service.is-empty::after { display: none; }
.service.is-empty .service-copy { position: static; text-align: center; padding: 24px; }
.service.is-empty .service-copy p { margin-inline: auto; color: var(--muted); }

/* ---------- project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-raised); }
.card.wide { grid-column: span 2; aspect-ratio: auto; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
a.card:hover img { transform: scale(1.04); }
.card-copy { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.card-copy h3 { font-size: 26px; }
.card-copy .label { color: rgba(236,232,225,0.75); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,0) 55%, rgba(13,13,12,0.75) 100%); }
.card.is-soon { border: 1px solid var(--line); display: flex; align-items: flex-end; }
.card.is-soon::after { display: none; }
.card.is-soon .card-copy h3 { color: var(--muted); }
.card.is-soon .soon-tag { position: absolute; top: 18px; left: 20px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--serif); font-size: 40px; color: var(--accent); }
.step h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- contact + footer ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(36px, 6vw, 88px); }
.contact p { color: var(--muted); margin: 20px auto 32px; max-width: 46ch; }
.btn { display: inline-block; border: 1px solid var(--text); padding: 14px 34px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--text); color: var(--bg); }
.site-footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* Anything still to be decided is marked data-todo in the HTML.
   The dotted underline makes it impossible to publish by accident. */
[data-todo] { text-decoration: underline dotted var(--accent); text-underline-offset: 4px; }

/* ---------- project page ---------- */
.project-hero { padding-top: clamp(120px, 16vh, 180px); padding-bottom: 0; }
.project-hero h1 { font-size: clamp(40px, 6.4vw, 96px); max-width: 14ch; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 56px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.project-body { padding-top: clamp(40px, 6vw, 80px); }
.project-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); max-width: 1000px; color: var(--muted); margin-bottom: clamp(40px, 6vw, 80px); }
.stills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.stills figure { margin: 0; overflow: hidden; background: var(--bg-raised); }
.stills img, .stills video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stills .full { grid-column: 1 / -1; }
.stills .half { grid-column: span 3; }
.stills .third { grid-column: span 2; }
.stills .two-thirds { grid-column: span 4; }
.credit { margin-top: 40px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.back { display: inline-block; margin-top: 56px; }

/* ---------- reveal on scroll (only when the visitor has not asked for less motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand small { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .intro .cols, .project-text { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 24px 16px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .stills .half, .stills .third, .stills .two-thirds { grid-column: 1 / -1; }
  .hero-note { left: var(--gutter); right: auto; }
  .hero-copy { bottom: 64px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
}
