/* ============================================================
   OPEN DOOR DESIGN STUDIO: site stylesheet (design test, 10 Nov 2026)
   Paper white, one typeface, three sizes, almost no words.
   The earlier stylesheet is kept in git at the tag
   before-bang-test-2026-11-10.
   ============================================================ */
:root {
  --paper: #F6F5F2;
  --ink: #161514;
  --grey: #6B665E;
  --line: #D9D5CC;
  --amber: #F2A71B;
  --shade: #E9E6DF;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 2.4vw, 24px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8A5A00; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* three sizes: title, text, small caps */
.title { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.caps { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); }
.bold { font-weight: 600; }

/* ---------- header: the menu is a sentence ---------- */
header.site { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 32px; padding-top: 20px; padding-bottom: 20px; }
/* the name, set small in the same type as the home page */
.mark { display: flex; flex-direction: column; align-items: flex-start; font-size: 22px; font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; padding: 6px 0; }
.mark .second { padding-left: 2.6em; }
.mark .g { color: #767676; }
.mark:hover { color: var(--ink); }
nav.menu { display: flex; flex-wrap: wrap; gap: 0 12px; font-weight: 600; margin-left: auto; }
nav.menu a { padding: 10px 3px; border-bottom: 2px solid transparent; }
nav.menu a[aria-current="page"] { border-bottom-color: var(--amber); }

footer.site { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 48px; padding-bottom: 32px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site a { padding: 10px 0; }

/* ---------- centred pages ---------- */
main.col { display: flex; flex-direction: column; align-items: center; gap: 96px; padding-top: 56px; padding-bottom: 40px; text-align: center; }
main.col > section { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.text { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.sentence { max-width: 22em; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.sentence a, .sentence button { padding: 4px 0; font-weight: 600; letter-spacing: inherit; border-bottom: 3px solid transparent; min-height: 40px; }
.sentence button[aria-pressed="true"] { border-bottom-color: var(--amber); }
.more { font-weight: 600; padding: 10px 3px; border-bottom: 2px solid var(--amber); }
.rows { width: 100%; max-width: 640px; display: flex; flex-direction: column; }
.rows > * { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.rows > *:last-child { border-bottom: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 28px; width: 100%; max-width: 960px; text-align: left; }
.pair > div { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px 28px; width: 100%; max-width: 960px; }
.people .person { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.people .ph { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 10px; background: var(--shade); overflow: hidden; }
.people .ph img { width: 100%; height: 100%; object-fit: cover; }
.people.plain .ph { display: none; }

.st-lead { margin: 0 0 12px; width: min(100%, 760px); }
.st-lead img { width: 100%; }
.st-life { width: 100%; max-width: 960px; margin-top: 8px !important; }

/* ---------- work: one project at a time down a single path ---------- */
.kinds { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 72px; padding-bottom: 32px; }
.path { display: flex; flex-direction: column; align-items: center; gap: 110px; padding-top: 40px; padding-bottom: 60px; }
.stop { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stop img { width: 100%; margin-bottom: 14px; }

/* ---------- a project: one composition, nothing cropped ----------
   Twelve columns. The title is as large as the page allows and wraps rather
   than running off the edge. Facts sit in one ruled strip. The first picture
   takes the full width; the words sit in the right-hand columns; the rest of
   the pictures follow in rows of one or two, each shown whole. */
body.sheet-page { background: #FFFFFF; }
.pj { padding-bottom: 96px; }
main.pj { padding-top: 40px; }
.pj-title { margin: 0; max-width: 12em; font-size: clamp(44px, 8.6vw, 128px); font-weight: 600; line-height: 0.96; letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: break-word; }
.pj-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; margin-top: clamp(32px, 5vw, 64px); align-items: start; }
.pj-facts { grid-column: 1 / span 3; margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.pj-facts dt, .pj-facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.pj-facts dt { letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); padding-right: 20px; }
.pj-facts dd { text-align: right; font-weight: 600; }
.pj-text { grid-column: 5 / span 7; max-width: 64ch; display: flex; flex-direction: column; gap: 16px; }
.pj-lead { margin-top: clamp(40px, 6vw, 80px); }
.pj-lead img { width: 100%; height: auto; }
.pj-rows { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.pj-rows:empty { display: none; }
.row { display: flex; gap: 24px; align-items: flex-start; }
.row > div { min-width: 0; }
.row img { display: block; width: 100%; height: auto; }
.row.short { margin-left: auto; }
.pj-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(64px, 9vw, 128px); padding-top: 16px; border-top: 1px solid var(--ink); }
.pj-next a { display: flex; flex-direction: column; gap: 6px; }
.pj-next a:last-child { text-align: right; align-items: flex-end; }
@media (max-width: 760px) {
  .pj-facts, .pj-text { grid-column: 1 / -1; }
  .row { flex-direction: column; }
  .row > div { flex: none !important; width: 100%; }
  .row.short { width: 100% !important; }
  .pj-next { grid-template-columns: 1fr; }
  .pj-next a:last-child { text-align: left; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  body.sheet-page main.pj { animation: sheet-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes sheet-rise { from { transform: translateY(48px); opacity: 0; } }
}

/* ---------- home: pictures drift past the name ---------- */
html.home-live, html.home-live body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#home { position: relative; min-height: 100vh; }
html.home-live #home { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
#track { position: absolute; left: 0; top: 0; width: 1272px; transform-origin: 0 0; will-change: transform; }
#track::before { content: ""; position: absolute; left: -3000px; width: 8000px; top: -200000px; height: 400000px; background: var(--paper); }
#copyA, #copyB { position: absolute; left: 0; top: 0; width: 1272px; }
.pic { position: absolute; display: block; }
.pic img { width: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pic:hover img { transform: scale(1.035); }
.pic.blend { mix-blend-mode: multiply; }
.wordmark { position: fixed; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; justify-content: center; pointer-events: none; mix-blend-mode: difference; font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; font-size: clamp(38px, 6.6vw, 90px); }
.wordmark .lines { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark .second { padding-left: 2.6em; }
.wordmark .g { color: #8C8C8C; }
.wordmark .w { color: #FFFFFF; }
.home-menu { position: fixed; top: 20px; left: var(--pad); right: var(--pad); justify-content: flex-end; z-index: 6; mix-blend-mode: difference; color: #FFFFFF; }
.home-menu a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
nav.home-menu a[aria-current="page"] { border-bottom-color: #FFFFFF; }
.home-foot { position: fixed; left: var(--pad); bottom: 16px; z-index: 6; mix-blend-mode: difference; color: #B4B4B4; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.home-foot a:hover { color: #FFFFFF; }
#hovername { position: fixed; z-index: 8; pointer-events: none; display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; text-shadow: 0 0 2px var(--paper), 0 0 8px var(--paper), 0 0 16px var(--paper); }
#hovername { align-items: flex-start; }
#hovername .hn { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
#hovername .caps { color: var(--ink); font-weight: 400; }
#hovername::before { margin-top: 0.36em; }
#hovername::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }

/* ---------- home: a project opens as a sheet rising over the page ---------- */
#sheet { position: fixed; inset: 0; z-index: 20; }
.home-mark { position: fixed; top: 20px; left: var(--pad); z-index: 6; mix-blend-mode: difference; color: #FFFFFF; }
.home-mark .g { color: #8C8C8C; }
.home-mark:hover { color: #FFFFFF; }
@media (max-width: 700px) { .home-menu { top: 72px; justify-content: flex-start; } }
.home-menu, .home-foot, .home-mark { transition: opacity 0.3s; }
html.sheet-open .home-menu, html.sheet-open .home-foot, html.sheet-open .home-mark { opacity: 0; pointer-events: none; }
#sheet-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; transform: translateY(100%); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
#sheet.open #sheet-scroll { transform: none; }
#sheet-gap { height: 26vh; cursor: pointer; }
#sheet-body { background: #FFFFFF; min-height: 100vh; padding: clamp(40px, 6vw, 72px) var(--pad) 96px; }
#sheet-body > * { max-width: 1272px; margin-left: auto; margin-right: auto; }
#sheet-close { position: fixed; top: 16px; right: var(--pad); z-index: 2; padding: 10px 3px; min-height: 44px; font-weight: 600; opacity: 0; transition: opacity 0.3s 0.4s; }
#sheet.open #sheet-close { opacity: 1; }
#sheet-close:focus-visible, #close:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
#sheet-close:hover, #close:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { #sheet-gap { height: 18vh; } }
@media (prefers-reduced-motion: reduce) { #sheet-scroll, #sheet-close { transition: none; } }

@media (prefers-reduced-motion: reduce) { .pic img { transition: none; } .pic:hover img { transform: none; } }
@media (max-width: 560px) { main.col { gap: 72px; } .path { gap: 80px; } }
