/* Studio theme: architecture practice. Serif display, system fonts only. */
:root {
  --ink: #1c1b19;
  --paper: #f4f1ea;
  --stone: #8a8478;
  --gold: #d9a441;
  --line: #d9d3c7;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65;
  font-family: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, .wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 400; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1.02; margin: 18px 0 26px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
h3 { font-size: 1.5rem; margin: 6px 0; }
.frame { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--stone); margin: 0; }
.dim { color: var(--stone); }
.small { font-size: 0.88rem; }
.underline { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.underline:hover { color: var(--gold); border-color: var(--gold); }

/* Header */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.wordmark { font-size: 1.5rem; text-decoration: none; margin: 0; }
.links { display: flex; gap: 34px; }
.links a { text-decoration: none; font-size: 0.95rem; letter-spacing: 0.04em; }
.links a:hover { color: var(--gold); }

/* Intro */
.intro { padding: 110px 0 90px; }
.intro-text { font-size: 1.25rem; max-width: 34em; color: #3c3a35; }

/* Work tiles: gradients stand in for photography */
.work { padding: 40px 0 100px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { margin: 0; }
.tile .img { aspect-ratio: 4 / 5; border-radius: 2px; position: relative; overflow: hidden; }

.tile figcaption { display: flex; justify-content: space-between; padding-top: 12px; font-size: 0.95rem; }
.tile figcaption span { color: var(--stone); }







/* Approach */
.approach { background: var(--ink); color: #e9e5dc; padding: 90px 0; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.approach .num { color: var(--gold); font-family: Georgia, serif; font-size: 1.1rem; margin: 0; }
.approach p { color: #bdb7aa; }

/* Inner pages */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 48px 0; }
.facts div { padding: 26px 0; }
.facts b { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 2.6rem; }
.facts span { color: var(--stone); font-size: 0.9rem; }
.contact-list { display: grid; grid-template-columns: 180px 1fr; gap: 14px 24px; margin: 44px 0; font-size: 1.1rem; }
.contact-list dt { color: var(--stone); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; padding-top: 4px; }
.contact-list dd { margin: 0; }
.legal { max-width: 860px; margin: 0 auto; padding: 90px 32px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }

/* Footer */
.colophon { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 0.95rem; }
.colophon-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 36px; }
.colophon .label { margin-bottom: 8px; }
.fine { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--stone); font-size: 0.82rem; }

/* Cookie banner */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #e9e5dc; padding: 18px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; z-index: 100; font-size: 0.92rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--gold); }
.cookie-row { display: flex; gap: 12px; flex: none; }
.cookie button { font: inherit; padding: 9px 20px; cursor: pointer; border-radius: 0; }
.cookie .plain { background: transparent; color: #e9e5dc; border: 1px solid #5b5850; }
.cookie .solid { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .band-grid { grid-template-columns: 1fr !important; }
  .menu-btn { display: block; }
  .links { position: fixed; inset: 84px 0 auto 0; flex-direction: column; background: var(--paper); padding: 24px 32px; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.4s var(--ease); }
  body.menu-open .links { transform: none; }
  .tiles, .approach-grid, .colophon-grid, .facts { grid-template-columns: 1fr; }
  .links { gap: 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: flex-start; }
  .intro { padding: 70px 0 50px; }
}

/* ---- Motion & photography ----------------------------------------------- */
:root { --ease: cubic-bezier(0.22, 0.75, 0.15, 1); }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }

.masthead { position: sticky; top: 0; z-index: 40; background: rgba(244, 241, 234, 0.9); backdrop-filter: blur(10px); transition: box-shadow 0.4s; }
.masthead.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(28, 27, 25, 0.06); }
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; height: 1px; background: var(--ink); margin: 7px 4px; }

/* Full-bleed cover with a slow "Ken Burns" zoom */
.cover { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.cover-img { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 17, 0.15) 30%, rgba(20, 19, 17, 0.72) 100%), url("/assets/img/hero.jpg") center / cover; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.cover-text { position: relative; padding-bottom: 80px; width: 100%; }
.cover .label { color: #e8dcc0; }
.cover .intro-text { color: #ece7dc; }
.cover h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.scroll-cue { display: inline-block; width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; position: relative; margin-top: 18px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 1px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Project tiles: photo zoom + caption slide */
.tile .img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: #ddd6c8; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease), filter 0.8s; filter: saturate(0.9); }
.tile:hover .img img { transform: scale(1.1); filter: saturate(1.05); }
.tile .img::after { content: "View project"; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); transform: translateY(100%); transition: transform 0.6s var(--ease); }
.tile:hover .img::after { transform: none; }
.tiles .tile:nth-child(3n + 2) { margin-top: 60px; }

/* Dark band with counters */
.band { position: relative; overflow: hidden; color: #f4f1ea; padding: 120px 0; }
.band-img { position: absolute; inset: -10% 0; background: linear-gradient(rgba(20, 19, 17, 0.72), rgba(20, 19, 17, 0.72)), url("/assets/img/stair.jpg") center / cover fixed; }
.band-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.band b { display: block; font-family: Georgia, serif; font-weight: 400; font-size: clamp(3rem, 6vw, 4.6rem); color: var(--gold); line-height: 1; }
.band span { color: #cfc8ba; letter-spacing: 0.06em; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-img { margin: 0; overflow: hidden; }
.about-img img { width: 100%; transition: transform 1.6s var(--ease); }
.about-img:hover img { transform: scale(1.05); }
.cookie { animation: up 0.7s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
@media (max-width: 860px) {
  .tiles .tile:nth-child(3n + 2) { margin-top: 0; }
  .band-img { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Error pages (404, 405): illustration and the "What happened?" line.
   The illustration is inline SVG coloured here (no inline styles: CSP). */
.oops-art { display: block; width: min(320px, 82%); height: auto; margin: 0 auto 1rem; overflow: visible; }
.oops-art .oa-a { fill: var(--gold); }
.oops-art .oa-b { fill: #e8dcc4; }
.oops-art .oa-c { fill: var(--line); }
.oops-art .oa-paper { fill: #ffffff; }
.oops-art .oa-edge { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.oops-art .oa-ink { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.oops-art .oa-ink-fill { fill: var(--ink); }
.oops-art .oa-dash { stroke-dasharray: 2 9; opacity: 0.5; }
.oops { color: var(--stone); max-width: 34rem; margin: 0 auto 1.6rem; }
.oops b { color: var(--ink); }
.intro .oops-art { margin-left: 0; }
.intro .oops { margin-left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .oops-float { animation: oops-float 4.5s ease-in-out infinite; }
  .oops-bounce { animation: oops-bounce 2.2s ease-in-out infinite; }
  .oops-drift { animation: oops-drift 9s ease-in-out infinite; }
  .oops-drift-slow { animation: oops-drift 13s ease-in-out infinite reverse; }
  .oops-twinkle, .oops-twinkle-late { animation: oops-twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .oops-twinkle-late { animation-delay: 1.3s; }
  .oops-wave { animation: oops-wave 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
}
@keyframes oops-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes oops-bounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
@keyframes oops-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes oops-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
@keyframes oops-wave { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg); } }
