/* Tambour - interior design studio. All colours, fonts and the one radius live here in :root. */
:root {
  --dark: #191919;        /* dark sections: hero, projects, about, contact */
  --on-dark: #ffffff;
  --light: #e7e4df;       /* light sections: services, journal, footer */
  --ink: #191919;
  --muted-d: rgba(255, 255, 255, .58);
  --muted-l: #6b6863;
  --line-d: rgba(255, 255, 255, .22);
  --line-l: rgba(11, 11, 11, .14);
  --card: #d9d5ce;        /* journal cards on light */
  --accent: #e8582f;
  --f-head: "Switzer", system-ui, sans-serif;
  --f-body: "Switzer", system-ui, sans-serif;
  --w-head: 500;
  --ls-head: -.05em;
  --radius: 0px;
  --pad: 40px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --glow: 0 0 2px rgba(0, 0, 0, .6), 0 0 10px rgba(0, 0, 0, .55), 0 0 26px rgba(0, 0, 0, .45); /* outer glow for text over photos */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dark); color: var(--on-dark); font: 400 16px/1.3 var(--f-body); letter-spacing: -.04em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--on-dark); color: var(--ink); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.dark { background: var(--dark); color: var(--on-dark); }
.light { background: var(--light); color: var(--ink); }
.dark .muted { color: var(--muted-d); }
.light .muted, .foot .muted { color: var(--muted-l); }
.glow { text-shadow: var(--glow); }
main > section, .foot { overflow-x: clip; } /* entrances start larger than their box: never let that widen the page */

/* type scale (1440 px reference: 112 / 80 / 56 / 26 / 24 / 20 / 16 / 13) */
.label { font: 500 13px/1.3 var(--f-body); letter-spacing: -.03em; text-transform: uppercase; }
.h-xl, .h2, .h4, .h5, .h6 { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: var(--ls-head); }
.h-xl { font-size: clamp(44px, 5.6vw, 84px); line-height: 1.12; }
.h2 { font-size: clamp(32px, 3.9vw, 58px); line-height: 1.18; }
.h4 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.045em; }
.h5 { font-size: 24px; line-height: 1.3; letter-spacing: -.04em; }
.h6 { font-size: 20px; line-height: 1.4; letter-spacing: -.04em; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 8px; }
.col-a { padding-top: .9em; }

/* ---------- header + menu ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); color: #fff; mix-blend-mode: difference; transition: transform .6s var(--ease); }
.head.is-hidden { transform: translateY(-110%); }
.logo { font: 600 18px/1.3 var(--f-head); letter-spacing: -.02em; text-transform: uppercase; }
.menu-btn { position: relative; display: grid; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 500 16px/1 var(--f-body); text-transform: uppercase; letter-spacing: -.03em; overflow: hidden; }
.menu-btn span { grid-area: 1 / 1; text-align: right; transition: clip-path .5s var(--ease), transform .5s var(--ease); }
.menu-btn span:last-child { clip-path: inset(0 0 100% 0); transform: scale(1.4); transform-origin: right top; }
.menu-open .menu-btn span:first-child { clip-path: inset(100% 0 0 0); transform: scale(1.4); transform-origin: right bottom; }
.menu-open .menu-btn span:last-child { clip-path: inset(0); transform: none; }
.menu-open .head { mix-blend-mode: normal; transform: none; }
.menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--pad) 32px; background: var(--dark); color: var(--on-dark); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.menu.is-open { clip-path: inset(0); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: flex; align-items: baseline; gap: 18px; padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.menu-i { width: 32px; color: var(--muted-d); }
.menu-t { font: var(--w-head) clamp(40px, 6.4vw, 96px)/1.05 var(--f-head); letter-spacing: var(--ls-head); transform: scale(1.35); transform-origin: left bottom; transition: transform 1s var(--ease), color .3s; }
.menu.is-open .menu-t { transform: none; }
.menu-nav a:hover .menu-t { color: var(--accent); }
.menu-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted-d); }

/* ---------- hero: text and photo come in by zooming out to their size (no fade) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-ph { position: absolute; inset: 0; background: #000; }
.hero-zoom { position: absolute; inset: -6% 0; animation: zoom-photo 2.4s var(--ease) both; }
.hero-zoom img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 112px; padding-bottom: 40px; }
.hero-top { align-self: flex-end; width: min(680px, 100%); display: grid; gap: 22px; justify-items: start; transform-origin: right top; }
.hero-intro { font: var(--w-head) clamp(28px, 2.7vw, 42px)/1.1 var(--f-head); letter-spacing: -.045em; color: #fff; } /* editorial lead */
.hero .line-link, .hero-meta { font-size: 14px; }
.hero .line-link::after { box-shadow: var(--glow); }
.hero-name { display: grid; gap: 14px; }
.hero-meta { display: flex; gap: 12px; transform-origin: left bottom; }
.hero-meta .sep { color: var(--muted-d); }
.hero-title { display: flex; align-items: flex-end; gap: .06em; font: var(--w-head) clamp(84px, 15.2vw, 236px)/.82 var(--f-head); letter-spacing: var(--ls-head); margin-left: -.05em; }
.hero-word { transform-origin: left bottom; }
/* "Studio." stands upright beside the name, turned -90deg (reads bottom to top) */
.hero-small { font-size: .3em; line-height: 1; letter-spacing: -.04em; padding-bottom: .06em; transform-origin: left bottom; }
.hero-small-in { display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
/* "Studio" rises from below into its place, then the dot drops in behind it (transforms are in the turned box: -y = down on screen) */
.hero-small { overflow: hidden; padding: 1.4em .12em 0; margin: -1.4em -.12em 0; } /* room above for the bouncing dot */
.st-word, .st-dot { display: inline-block; }
.st-dot { color: var(--accent); } /* the bouncing dot is the one ember detail of the hero */
.hero .st-word { animation: st-rise 1s cubic-bezier(.2, .8, .2, 1) var(--st-d, .8s) both; }
.hero .st-dot { transform-origin: 50% 0; animation: st-drop 1.3s linear calc(var(--st-d, .8s) + .62s) both; }
.intro .hero .st-word, .intro .hero .st-dot { animation-play-state: paused; }
.intro .hero { --st-d: 1.05s; }
@keyframes st-rise { from { transform: translateY(-125%); } to { transform: none; } }
/* the dot falls on the "o" and bounces like a ball: each bounce keeps ~30 % of the height (restitution .55), flight time follows
   the square root of the height, gravity = ease-in on the way down and ease-out on the way up, a short squash on every impact.
   +y here = up on screen (the word is turned) */
@keyframes st-drop {
  0%    { transform: translateY(3.2em); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  33.1% { transform: translateY(0) scaleY(.72); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  51.2% { transform: translateY(.96em) scaleY(1.06); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  69.4% { transform: translateY(0) scaleY(.82); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  79.3% { transform: translateY(.29em) scaleY(1.03); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  89.2% { transform: translateY(0) scaleY(.9); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  94.6% { transform: translateY(.09em); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100%  { transform: none; }
}
[data-even] { letter-spacing: 0; }
[data-even] .wd { display: inline-block; white-space: nowrap; }
.zoom-out { animation: zoom-text 1.7s var(--ease) var(--d, 0s) both; }
@keyframes zoom-text { from { transform: scale(1.7); } to { transform: none; } }
@keyframes zoom-photo { from { transform: scale(1.4); } to { transform: none; } }
.line-link { position: relative; padding-bottom: 6px; }
.line-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.line-link:hover::after { transform: scaleX(.3); }

/* ---------- projects: a strip of squares, the one under the mouse grows to twice the size ---------- */
.projects { min-height: 100vh; display: flex; }
.projects-in { width: 100%; padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
/* fixed height: room for the biggest square (hovered = 2.05 of 7.05 shares of the row) + its caption, so the section never changes height */
.strip { display: flex; gap: 8px; align-items: center; height: calc((100vw - 2 * var(--pad) - 40px) * 2.05 / 7.05 + 120px); padding-bottom: 120px; }
.pj { flex: 1 1 0; min-width: 0; position: relative; transition: flex-grow .8s var(--ease); }
.strip:hover .pj:hover, .pj:focus-within { flex-grow: 2.05; }
.pj-link { display: block; }
.pj-ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #1a1a1a; border-radius: var(--radius); }
.pj-ph img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.85); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.pj:hover .pj-ph img, .pj:focus-within .pj-ph img { filter: none; }
.pj-more { position: absolute; left: 12px; bottom: 12px; color: #fff; text-shadow: var(--glow); clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease) .1s; }
.pj:hover .pj-more { clip-path: inset(0); }
.pj-text { position: absolute; left: 0; right: 0; top: calc(100% + 16px); display: grid; gap: 8px; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.pj:hover .pj-text, .pj:focus-within .pj-text { clip-path: inset(0); transition-delay: .25s; }
.pj-name { font-size: 16px; }
.pj-desc { color: var(--muted-d); max-width: 30em; }
.pj-meta { display: flex; gap: 14px; }

/* ---------- services: accordion ---------- */
.services { padding: 128px 0; }
.acc { border-top: 1px solid var(--line-l); }
.acc-item { border-bottom: 1px solid var(--line-l); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.acc-icon { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: var(--radius); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.4px; margin: -.7px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.is-open .acc-body { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; display: flex; justify-content: space-between; gap: 32px; }
.acc-text { max-width: 770px; display: grid; gap: 24px; padding-bottom: 28px; }
.acc-price { display: flex; align-items: baseline; gap: 10px; }
.acc-ph { flex: none; width: 160px; aspect-ratio: 4 / 3; margin-bottom: 28px; overflow: hidden; border-radius: var(--radius); }
.acc-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 1.2s var(--ease); }
.is-open .acc-ph img { transform: none; }

/* ---------- about: text in the middle, two photo columns drift in opposite directions ---------- */
.about { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 160px var(--pad); overflow: hidden; }
.about-col { position: absolute; top: 0; width: 180px; display: grid; gap: 8px; will-change: transform; }
.about-l { left: var(--pad); }
.about-r { right: var(--pad); }
.about-col figure { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.about-col img { width: 100%; height: 100%; object-fit: cover; }
.about-text { position: relative; width: min(600px, 100%); display: grid; gap: 28px; }
.about-text .label { margin-bottom: -4px; }

/* ---------- journal ---------- */
.journal { padding: 128px 0; }
.journal-head { margin-bottom: 64px; }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.post a { display: grid; gap: 0; height: 100%; padding: 12px; background: var(--card); border-radius: var(--radius); }
.post-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.post-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post a:hover .post-ph img { transform: scale(1.06); }
.post-text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 160px; padding: 20px 4px 4px; }

/* ---------- contact ---------- */
.contact { padding: 128px 0; }
.contact .h-xl { margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 422px) minmax(0, 1fr); gap: 80px; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.ci { display: grid; gap: 10px; justify-items: start; }
.ci .h5 { margin-bottom: 8px; }
.ci-ph { width: 100%; aspect-ratio: 422 / 113; overflow: hidden; border-radius: var(--radius); }
.ci-ph img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 10px; }
.field input, .field textarea, .select-btn { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line-d); border-radius: 0; background: none; font-size: 18px; outline: none; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .select-btn:focus-visible { border-color: var(--on-dark); }
.field.is-bad input, .field.is-bad textarea { border-color: #e2725b; }
.select { position: relative; }
.select-btn { display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.select-btn .acc-icon { width: 28px; height: 28px; border: 0; }
.select.is-open .acc-icon::after { transform: rotate(0deg); }
.select-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); padding: 6px 0; background: #1c1c1c; border: 1px solid var(--line-d); border-radius: var(--radius); }
.select-list li { padding: 10px 14px; cursor: pointer; }
.select-list li:hover, .select-list li:focus { background: rgba(255, 255, 255, .08); outline: none; }
.select-list li[aria-selected="true"] { color: var(--accent); }
.btn { justify-self: start; position: relative; overflow: hidden; min-width: 200px; padding: 13px 22px; border: 0; border-radius: var(--radius); cursor: pointer; font: 500 13px/1.2 var(--f-body); letter-spacing: -.03em; text-transform: uppercase; text-align: left; }
.btn { isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.btn:hover::before { clip-path: inset(0); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn span { position: relative; }
.form-note { color: var(--accent); }

/* ---------- footer ---------- */
.foot { background: var(--light); color: var(--ink); padding: 80px 0 32px; }
.foot-top { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 96px; }
.news { width: min(500px, 100%); display: grid; gap: 10px; }
.news-row { display: flex; gap: 8px; margin-top: 18px; }
.news-row input { flex: 1; min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-l); background: none; outline: none; font-size: 16px; }
.news-row input:focus { border-color: var(--ink); }
.news-row .btn { min-width: 120px; }
.foot-links { width: 300px; display: grid; gap: 4px; }
.foot-links a { font: var(--w-head) 32px/1.3 var(--f-head); letter-spacing: var(--ls-head); width: max-content; }

.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-social { display: flex; gap: 22px; }
.foot-social a:hover { color: var(--accent); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; background: var(--on-dark); color: var(--ink); border-radius: var(--radius); mix-blend-mode: difference; clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease); }
.to-top.is-on { clip-path: inset(0); }

/* ---------- entrances (JS adds .in when the element reaches the screen). Language: things settle from larger to their size. ---------- */
.js [data-reveal] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js [data-reveal] img { transform: scale(1.4); transition: transform 1.6s var(--ease), filter .7s var(--ease); }
.js [data-reveal].in > * { clip-path: inset(0); }
.js [data-reveal].in img { transform: none; }
/* project squares: only the photo is wiped in, the caption below must stay free to show on hover */
.js .pj[data-reveal] > * { clip-path: none; }
.js .pj[data-reveal] .pj-ph { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .pj[data-reveal].in .pj-ph { clip-path: inset(0); }
.js [data-wipe] > .w { display: inline-block; clip-path: inset(0 100% 0 0); transform: scale(1.3); transform-origin: left center; transition: clip-path 1s var(--ease), transform 1.2s var(--ease); }
.js [data-wipe].in > .w { clip-path: inset(0 -5% 0 0); transform: none; }
.js [data-lines] .ln { display: block; clip-path: inset(0 100% 0 0); transform: scale(1.12); transform-origin: left center; transition: clip-path 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--n) * .09s); }
.js [data-lines].in .ln { clip-path: inset(-10% -5% -20% 0); transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  :root { --pad: 28px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-col { width: 130px; }
  .about-text { width: min(520px, 100%); }
  .contact-grid { gap: 48px; }
}
/* ---------- phone (and every touch layout below 810 px) ---------- */
@media (max-width: 809px) {
  :root { --pad: 16px; }
  .head { padding: 16px var(--pad); }
  .hero-in { padding-top: 88px; padding-bottom: 28px; }
  .hero-top { align-self: stretch; width: 100%; }
  .hero-intro { font-size: clamp(25px, 7.4vw, 32px); line-height: 1.12; max-width: none; }
  .hero-title { font-size: clamp(56px, 22vw, 150px); }
  .hero-meta { flex-wrap: wrap; }
  .projects-in { padding-top: 72px; padding-bottom: 72px; }
  .strip { flex-direction: column; align-items: stretch; gap: 40px; height: auto; padding-bottom: 0; }
  .pj { flex: none; }
  .pj-ph { aspect-ratio: 4 / 3; }
  .pj-ph img { filter: none; }
  .pj-text { position: static; margin-top: 14px; clip-path: none; }
  .pj-more { display: none; }
  .services, .journal, .contact { padding: 88px 0; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .col-a { padding-top: 0; }
  .acc-in { flex-direction: column; gap: 0; }
  .acc-ph { width: 100%; max-width: 360px; }
  .acc-icon { width: 36px; height: 36px; }
  .about { display: flex; flex-direction: column; gap: 48px; padding: 88px 0; }
  .about-col { position: static; width: max-content; display: flex; gap: 8px; }
  .about-l { align-self: flex-start; }
  .about-r { align-self: flex-end; order: 3; }
  .about-col figure { width: 112px; flex: none; }
  .about-text { width: 100%; padding: 0 var(--pad); order: 2; }
  .journal-head { margin-bottom: 36px; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-info { order: 2; }
  .foot-top { margin-bottom: 64px; }
  .foot-links a { font-size: 28px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ================= inner pages ================= */
body.page { background: var(--light); }
.h3 { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: var(--ls-head); font-size: clamp(26px, 2.25vw, 34px); line-height: 1.25; }
.sep { color: inherit; opacity: 1; margin: 0 6px; }

/* page head: the same build as the Home hero, on light: intro top right, giant name bottom left, a word turned upright beside it */
.phead { min-height: 78vh; min-height: 78svh; display: flex; }
.phead-in { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-top: 120px; padding-bottom: 48px; }
.phead-intro { align-self: flex-end; width: min(430px, 100%); font-size: 18px; line-height: 1.35; }
.phead-title { display: flex; align-items: flex-end; gap: .06em; font: var(--w-head) clamp(80px, 15.2vw, 236px)/.82 var(--f-head); letter-spacing: var(--ls-head); margin-left: -.05em; }
.phead-word { transform-origin: left bottom; }
.phead-side { font-size: .13em; line-height: 1; letter-spacing: -.02em; overflow: hidden; padding: .2em .12em 0; margin: -.2em -.12em 0; color: var(--muted-l); }
.phead .st-word { animation: st-rise 1s cubic-bezier(.2, .8, .2, 1) .7s both; }

/* rows: the index of projects, notes and awards. A line draws in, the text wipes in; a photo opens beside the mouse */
.index { padding: 40px 0 128px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 24px; }
.filters button { position: relative; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; text-transform: inherit; color: var(--muted-l); transition: color .3s; }
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { transform: none; }
.rows { border-bottom: 1px solid var(--line-l); }
.rows [hidden] { display: none; }
.row { position: relative; }
.row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-l); transform-origin: left; }
.row-a { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 170px 170px 110px; align-items: baseline; gap: 16px; padding: 26px 0 24px; }
.row-t { font: var(--w-head) clamp(28px, 3.3vw, 50px)/1.05 var(--f-head); letter-spacing: var(--ls-head); transition: color .4s; }
.row-art .row-t { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.row-award .row-a { grid-template-columns: 120px minmax(0, 1fr) 220px; }
.row-award .row-t { font-size: clamp(22px, 2.2vw, 32px); }
.row-d { display: block; max-width: 620px; margin-top: 10px; font: 400 15px/1.4 var(--f-body); letter-spacing: -.03em; }
.row-go { justify-self: end; clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.row:hover .row-go { clip-path: inset(0); }
.rows:hover .row:not(:hover) .row-t { color: var(--muted-l); }
.peek { position: absolute; z-index: 3; left: var(--px, 60%); top: 50%; width: 300px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); pointer-events: none;
  transform: translate(-50%, -50%); clip-path: inset(50% 50% 50% 50%); transition: clip-path .55s var(--ease); }
.peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); transition: transform .9s var(--ease); }
.row:hover .peek { clip-path: inset(0); }
.row:hover .peek img { transform: none; }
.js [data-row]::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js [data-row] .row-a > span, .js [data-row] > dt, .js [data-row] > dd { clip-path: inset(0 100% 0 0); transform: scale(1.08); transform-origin: left center; transition: clip-path 1s var(--ease) .15s, transform 1.2s var(--ease) .15s, color .4s; }
.js [data-row].in::before { transform: none; }
.js [data-row].in .row-a > span, .js [data-row].in > dt, .js [data-row].in > dd { clip-path: inset(-10% -5% -20% 0); transform: none; }
.js [data-row].in .row-a > .row-go { clip-path: inset(0 100% 0 0); }
.js [data-row].in:hover .row-a > .row-go { clip-path: inset(0); }

/* featured note */
.feature { padding: 24px 0 40px; }
.feature-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.feature-ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.feature-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-in:hover .feature-ph img { transform: scale(1.04); }
.feature-text { display: grid; gap: 20px; justify-items: start; padding-bottom: 8px; }
.feature-text .muted { max-width: 30em; }

/* project page */
.hero-page .hero-in { justify-content: flex-end; gap: 22px; }
.page-title { transform-origin: left bottom; }
.facts-band { padding: 96px 0 72px; }
.facts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.facts4 > div { position: relative; display: grid; gap: 14px; padding-top: 16px; }
.facts4 > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-l); transform-origin: left; }
.facts4 dd { margin: 0; }
.lead { max-width: 900px; margin-top: 88px; }
.gallery { padding-bottom: 96px; }
.gallery .wrap { display: grid; gap: 8px; }
.g-wide { aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.g-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.g-pair figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.g-pair-b { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
.g-pair-b figure:first-child { aspect-ratio: 4 / 3; }
.g-wide img, .g-pair img { width: 100%; height: 100%; object-fit: cover; }
.g-text { display: grid; gap: 18px; width: min(560px, 100%); margin: 88px 0 96px auto; margin-right: calc(100% / 12); }
.g-text p { font-size: 17px; line-height: 1.45; }
.next { position: relative; display: block; height: 78vh; min-height: 520px; overflow: hidden; color: #fff; }
.next-ph { position: absolute; inset: 0; overflow: hidden; }
.next-ph img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transform: scale(var(--zs, 1.3)); }
.next-in { position: absolute; left: 0; right: 0; bottom: 40px; display: grid; gap: 18px; }
.next-t { font: var(--w-head) clamp(56px, 11vw, 170px)/.85 var(--f-head); letter-spacing: var(--ls-head); margin-left: -.05em; transition: transform .9s var(--ease); transform-origin: left bottom; }
.next:hover .next-t { transform: scale(.96); }

/* article page */
.ahead { padding: 132px 0 64px; }
.ahead .wrap { display: grid; gap: 28px; justify-items: start; }
.back { display: inline-flex; gap: 8px; }
.back span { transition: transform .5s var(--ease); }
.back:hover span { transform: translateX(-6px); }
.ahead-title { max-width: 15em; transform-origin: left bottom; }
.ahead-meta { transform-origin: left bottom; margin-top: 40px; }
.author { display: flex; gap: 12px; align-items: center; transform-origin: left top; }
.author img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.author p { display: grid; gap: 2px; }
.author .muted { font-size: 14px; }
.a-cover { height: 82vh; min-height: 420px; overflow: hidden; }
.a-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zs, 1.3)); }
.abody { padding: 96px 0 120px; }
.abody .wrap { display: grid; gap: 64px; }
.a-ex { max-width: 860px; }
.prose-art { display: grid; gap: 20px; width: min(680px, 100%); margin-left: auto; margin-right: calc(100% / 12); }
.prose-art p { font-size: 17px; line-height: 1.5; }
.prose-art .h3 { margin-top: 28px; }
.prose-art .h3:first-child { margin-top: 0; }
.cta-band { padding: 120px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.cta-side { display: grid; gap: 24px; justify-items: start; max-width: 340px; }
.more-notes { padding-top: 96px; }
.more-label { margin-bottom: 24px; }

/* about */
.metrics-band { padding: 24px 0 120px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.metric { position: relative; padding-top: 16px; }
.metric::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-l); transform-origin: left; }
.metric dt { font-size: 15px; color: var(--muted-l); }
.metric dd { margin: 20px 0 0; font: var(--w-head) clamp(56px, 6.4vw, 96px)/.9 var(--f-head); letter-spacing: var(--ls-head); }
.big-ph { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.big-ph figure { position: absolute; inset: 0; overflow: hidden; }
.big-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zs, 1.3)); }
.big-word { position: absolute; left: 0; right: 0; bottom: 40px; text-transform: uppercase; color: #fff; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin: 88px 0 48px; }
.team { padding: 40px 0 128px; }
.team-head { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 48px; }
.team-side { display: grid; gap: 14px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 8px; }
.person figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.person:hover img { filter: none; }
.person-cap { display: grid; gap: 4px; margin-top: 16px; }
.clients { padding: 96px 0; }
.clients-in { display: grid; gap: 48px; }
.logos { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px 48px; }
.logos li { font-family: var(--f-head); font-size: 26px; line-height: 1; white-space: nowrap; }
.logos .logo-01 { font-weight: 600; letter-spacing: -.06em; }
.logos .logo-02 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: .32em; }
.logos .logo-03 { font-style: italic; letter-spacing: -.03em; }
.logos .logo-04 { font-family: var(--f-body); font-size: 28px; font-weight: 400; letter-spacing: -.02em; text-transform: lowercase; }
.logos .logo-05 { font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.logos .logo-06 { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: .5em; }
.logos .logo-07 { font-size: 30px; letter-spacing: -.07em; font-weight: 400; }

/* 404 */
.nf-hero .hero-in { justify-content: space-between; }
.nf-text { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.nf-text .zoom-out { transform-origin: left bottom; }

@media (max-width: 1199px) {
  .row-a { grid-template-columns: 100px minmax(0, 1fr) 150px 90px; }
  .row-a .row-p { display: none; }
  .row-award .row-a { grid-template-columns: 90px minmax(0, 1fr) 160px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-text, .prose-art { margin-right: 0; }
}
@media (max-width: 809px) {
  .phead { min-height: 0; }
  .phead-in { padding-top: 104px; padding-bottom: 32px; gap: 72px; }
  .phead-intro { align-self: stretch; font-size: 17px; }
  .phead-title { font-size: clamp(56px, 22vw, 150px); }
  .index { padding-bottom: 88px; }
  .row-a, .row-award .row-a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 20px 0; }
  .row-a .peek { position: relative; left: auto; top: auto; grid-column: 1 / -1; grid-row: 1; width: 100%; transform: none; clip-path: none; margin-bottom: 8px; }
  .row-a .peek img { transform: none; }
  .row-n { grid-column: 2; grid-row: 2; }
  .row-t { grid-column: 1; grid-row: 2; }
  .row-c { grid-column: 1; grid-row: 3; }
  .row-go, .row-a .row-p { display: none; }
  .row-award .row-a .peek { display: none; }
  .row-award .row-n, .row-award .row-t, .row-award .row-c { grid-row: auto; }
  .row-award .row-n { grid-column: 2; grid-row: 1; }
  .row-award .row-t { grid-row: 1; }
  .rows:hover .row:not(:hover) .row-t { color: inherit; }
  .feature-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .facts-band { padding: 64px 0 48px; }
  .facts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
  .lead { margin-top: 56px; }
  .g-wide { aspect-ratio: 4 / 3; }
  .g-pair, .g-pair-b { grid-template-columns: minmax(0, 1fr); }
  .g-pair-b figure:first-child { aspect-ratio: 4 / 5; }
  .g-text { margin: 48px 0 56px; }
  .next { height: 64svh; min-height: 420px; }
  .next-in { bottom: 28px; }
  .ahead { padding: 104px 0 40px; }
  .ahead-meta { margin-top: 24px; }
  .a-cover { height: 56svh; min-height: 300px; }
  .abody { padding: 56px 0 72px; }
  .abody .wrap { gap: 40px; }
  .cta-band { padding: 80px 0; }
  .metrics-band { padding-bottom: 72px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8px; }
  .big-ph { height: 80svh; }
  .big-word { bottom: 24px; }
  .sec-head { margin: 64px 0 32px; }
  .team-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team { padding-bottom: 88px; }
  .people { gap: 32px 8px; }
  .clients { padding: 72px 0; }
  .logos { justify-content: flex-start; gap: 24px 32px; }
}

/* ---------- Home intro: giant name on white, zooms out to its place (JS 11) ---------- */
:root { --intro-bg: #ffffff; }
.intro-veil { position: absolute; inset: 0; z-index: 1; background: var(--intro-bg); clip-path: inset(0); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1); }
.intro .hero-title { position: relative; z-index: 2; }
.intro .hero-title .zoom-out { animation: none; }
.intro .hero { background: var(--intro-bg); }
.intro:not(.intro-ready) .hero > * { visibility: hidden; }
.intro .hero-title { color: var(--ink); text-shadow: none; }
.intro .hero .zoom-out, .intro .hero-zoom { animation-play-state: paused; }
.intro .head { transform: translateY(-110%); }
.intro.intro-go .hero-title { color: #fff; transition: transform 1.6s cubic-bezier(.7, 0, .2, 1), color 1.2s ease .3s; }
.intro.intro-go .intro-veil { clip-path: inset(0 0 100% 0); }
.intro.intro-go .hero .zoom-out, .intro.intro-go .hero-zoom { animation-play-state: running; }

/* ---------- ember details: the dot of the hero repeats across the site ---------- */
.dot { color: var(--accent); }
.label[data-wipe]::before, #projects-h::before { content: ""; display: inline-block; width: .5em; height: .5em; margin: 0 .6em .08em 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.is-open .acc-icon { color: var(--accent); }
.is-open .acc-price .h5 { color: var(--accent); transition: color .4s; }
.line-link, .back, .foot-links a, .ci .h5, .menu-foot a, .row-go, .filters button { transition: color .3s; }
.line-link:hover, .back:hover, .foot-links a:hover, .ci a.h5:hover, .menu-foot a:hover, .row:hover .row-go, .filters button:hover { color: var(--accent); }
.feature-in:hover .line-link, .next:hover .label { color: var(--accent); }
.row:hover .row-t, .post a:hover .h6, .feature-in:hover .h2, .pj:hover .pj-name { color: var(--accent); }
.post .h6, .feature-text .h2, .pj-name { transition: color .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
