/* Michael Ong Design Office — quiet, image-led */
:root {
  --paper: #f6f5f1;
  --ink: #1c1b19;
  --muted: #8a877f;
  --rule: #dddad2;
  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --measure: 34rem;
  --font: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; background: #e9e7e1; }
a { color: inherit; text-decoration: none; }
p a, .list a { border-bottom: 1px solid var(--rule); transition: border-color .2s; }
p a:hover, .list a:hover { border-color: var(--ink); }
h1, h2, h3 { font-weight: 400; font-size: inherit; margin: 0; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }

/* Header */
.head {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.head .mark { letter-spacing: 0.02em; }
.head nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.head nav a { color: var(--muted); transition: color .2s; }
.head nav a:hover, .head nav a[aria-current] { color: var(--ink); }

/* Home: the header floats over the opening photograph */
.home .head { position: fixed; left: 0; right: 0; background: none; backdrop-filter: none; color: #fff; mix-blend-mode: difference; }
.home .head nav a { color: #fff; opacity: .75; }
.home .head nav a:hover { opacity: 1; }
.hero { height: 100svh; min-height: 420px; position: relative; }
.hero picture { display: block; height: 100%; }
.hero img { height: 100%; object-fit: cover; }
.hero a { display: block; height: 100%; }
.hero figcaption { position: absolute; left: var(--gutter); bottom: 20px; color: #fff; mix-blend-mode: difference; }

.statement {
  padding: clamp(72px, 14vw, 200px) var(--gutter);
  max-width: 58rem;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.statement p { margin: 0; }

/* Selected work: one project per row, alternating scale and side */
.selected { padding: 0 var(--gutter); display: grid; gap: clamp(64px, 11vw, 168px); }
.selected a { display: block; }
.selected a:nth-child(3n+1) { width: 100%; }
.selected a:nth-child(3n+2) { width: min(100%, 62%); }
.selected a:nth-child(3n) { width: min(100%, 46%); margin-left: auto; }
.selected a.tall:nth-child(n) { width: min(100%, 46%); }
.cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; }
.cap span:last-child { color: var(--muted); }
.more { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.more a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Project index */
.page-title { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 56px); color: var(--muted); }
.grid {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 72px) var(--gap);
}
.grid a { display: block; }
.grid .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.grid img { height: 100%; object-fit: cover; transition: opacity .35s; }
.grid a:hover img { opacity: .86; }

/* Project page */
.intro {
  display: grid; grid-template-columns: 1fr minmax(0, var(--measure)); gap: var(--gap) clamp(24px, 6vw, 96px);
  padding: clamp(40px, 7vw, 96px) var(--gutter);
}
.intro h1 { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.25; }
.intro .kind { color: var(--muted); margin-top: 6px; }
.facts { margin: 28px 0 0; max-width: 26rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { border-bottom: 1px solid var(--rule); }
.facts a:hover { border-color: var(--ink); }
.lead img { max-height: 100svh; object-fit: cover; }
.plates { padding: var(--gap) var(--gutter) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.plates .wide { grid-column: 1 / -1; }
.plates .solo { grid-column: 1 / -1; width: calc(50% - var(--gap) / 2); margin-inline: auto; }
.next {
  display: block; margin-top: clamp(72px, 12vw, 180px); padding: clamp(40px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.next span { display: block; color: var(--muted); }
.next strong { font-weight: 400; font-size: clamp(20px, 2.3vw, 30px); }

/* Text pages */
.cols {
  display: grid; grid-template-columns: 1fr minmax(0, var(--measure)); gap: 40px clamp(24px, 6vw, 96px);
  padding: 0 var(--gutter) clamp(48px, 8vw, 120px);
}
.cols > h2 { color: var(--muted); }
.cols .big { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.35; }
.cols figure { margin: 0; max-width: 22rem; }
.sub { color: var(--muted); margin: 2.4em 0 .6em; }
.sub:first-child { margin-top: 0; }
blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 1px solid var(--rule); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.enquire { display: inline-block; margin-top: 1.4em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Working with us */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); color: var(--muted); grid-row: span 2; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink); }
.cols .big + .list { margin-top: 1.6em; }
.statement .go { font-size: 15px; letter-spacing: 0.005em; margin-left: .6em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.statement + .more { padding-top: 0; }
.ask { margin: clamp(56px, 9vw, 120px) var(--gutter) 0; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.35; max-width: 58rem; }
.ask a { border-bottom: 1px solid var(--ink); }
.ask + .next { margin-top: clamp(56px, 9vw, 120px); }

.points { list-style: none; margin: 1.8em 0 0; padding: 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; color: var(--muted); }

.more-list summary { cursor: pointer; padding: 14px 0; color: var(--muted); list-style: none; }
.more-list summary::-webkit-details-marker { display: none; }
.more-list summary::after { content: " +"; }
.more-list[open] summary::after { content: " −"; }
.more-list summary:hover { color: var(--ink); }
.more-list .list li:first-child { border-top: 1px solid var(--rule); }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding: 28px var(--gutter) 36px; margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--rule); color: var(--muted);
}
.next + .foot { margin-top: 0; }
.foot a:hover { color: var(--ink); }
.foot .ack { flex-basis: 100%; max-width: 44rem; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .head { padding: 14px var(--gutter); }
  .selected a:nth-child(n) { width: 100%; }
  .plates { grid-template-columns: 1fr; }
  .plates .solo { width: 100%; }
  .cap { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
