/* ============================================================
   SYZYGY Architects — base
   Tokens, type, header, menu panel, search sheet, the loader,
   page changes.
   ============================================================ */

/* One typeface for everything: a plain, tightly set grotesque. */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --paper: #f6f2eb;                       /* cream */
  --ink: #302620;                         /* dark brown */
  --accent: #6b5a48;                      /* brown, for labels */
  --shade: 22 17 13;                      /* the dark laid over photographs */
  --line: rgb(48 38 32 / 0.14);
  --sand: #d4c9b4;                        /* hairlines on paper, text on dark */
  --linen: #ede6d8;                       /* behind a photograph while it loads */
  --oak: #a8967e;                         /* labels on dark */
  --dim: rgb(48 38 32 / 0.72);

  --quick: 0.3s;
  --fast: 0.4s;
  --mid: 0.6s;
  --slow: 0.9s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-settle: cubic-bezier(0.76, 0, 0.24, 1);

  --edge: clamp(24px, 5vw, 60px);         /* the page's side margin */
  --header-h: 88px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; font-size: 14px; background: var(--paper); scrollbar-width: thin; scrollbar-color: var(--sand) var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sand); color: var(--ink); }

/* the page's column: wide margins that step in on smaller screens */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 140px; }
@media (max-width: 1439px) { .container { padding: 0 80px; } }
@media (max-width: 1023px) { .container { padding: 0 40px; } }
@media (max-width: 767px)  { .container { padding: 0 24px; } }
.section-label {
  font-family: var(--font-body); font-size: 10px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}

h1, h2, h3, p, ol, ul, figure { margin: 0; font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.caps {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.6;
}
.muted { color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* a plain text button, used on the simple inner pages */
.pill {
  display: inline-flex; align-items: center; padding: 12px 20px;
  border: 1px solid rgb(48 38 32 / 0.3); border-radius: 999px; cursor: pointer; background: none;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out);
}
.pill:hover, .pill:focus-visible, .pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); outline: none; }
.pill--solid:hover, .pill--solid:focus-visible { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   Header — menu on the left, the name in the centre, search on
   the right. Cream marks over a photograph, brown on paper. It
   sits above the menu panel, so the same button opens and closes.
   ============================================================ */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 28px var(--edge); color: var(--ink); pointer-events: none;
  view-transition-name: site-header;
}
.hd.is-clear { color: var(--paper); }
.hd { transition: background-color 0.5s var(--ease-out), padding 0.5s var(--ease-out); }
.hd.is-scrolled { background: var(--paper); padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 1023px) { .hd { padding: 24px 40px; } }
@media (max-width: 767px)  { .hd { padding: 20px 24px; } }
.hd-inner {
  position: relative; display: flex; justify-content: center; align-items: center;
  height: 32px; max-width: 1440px; margin: 0 auto;
}
.hd-brand, .hd-menu, .hd-search { pointer-events: auto; }
/* thin, wide-spaced capitals; the loader's large name ends in exactly this style */
.hd-brand {
  position: relative; margin-right: -0.22em;
  font-family: var(--font-display); font-size: 18px; font-weight: 300; line-height: 1;
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
  transition: opacity var(--fast) var(--ease-out), visibility 0s;
}
.hd-brand:hover { opacity: 0.7; }
.hd-brand::before { content: ""; position: absolute; inset: -14px -8px; }      /* a comfortable area to press */
.hd-brand:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }
.hd-menu, .hd-search {
  position: absolute; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; background: none; cursor: pointer; color: inherit;
  transition: opacity var(--fast) var(--ease-out), color var(--fast) var(--ease-out), visibility 0s;
  -webkit-tap-highlight-color: transparent;
}
.hd-menu { left: 0; }
.hd-search { right: 0; }
.hd-menu:hover { opacity: 0.6; }
.hd-search:hover { opacity: 0.55; }
.hd-menu::before, .hd-search::before {            /* a comfortable area to press */
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.hd-menu:focus-visible, .hd-search:focus-visible { outline: 1px solid currentColor; outline-offset: 10px; }
.hd-search svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }

/* three hairlines that turn into a cross where they stand */
.hd-burger { position: relative; display: block; width: 20px; height: 13px; }
.hd-burger i {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform var(--fast) var(--ease-out), opacity var(--quick) var(--ease-out);
}
.hd-burger i:nth-child(1) { top: 0; }
.hd-burger i:nth-child(2) { top: 6px; }
.hd-burger i:nth-child(3) { top: 12px; }
.is-menu .hd-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu .hd-burger i:nth-child(2) { opacity: 0; }
.is-menu .hd-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* while the menu is open only the cross remains, in brown over the panel */
.is-menu .hd-menu { color: var(--ink); }
.is-menu .hd-brand, .is-menu .hd-search {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--fast) var(--ease-out), visibility 0s var(--fast);
}

/* ============================================================
   Menu — a frosted panel that slides in from the left while the
   page behind dims a little
   ============================================================ */
.mp-catch {
  position: fixed; inset: 0; z-index: 98; background: rgb(var(--shade) / 0.15);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}
.is-menu .mp-catch { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out), visibility 0s; }
.mp {
  position: fixed; inset: 0 auto 0 0; z-index: 99; width: min(420px, 86vw);
  display: flex; flex-direction: column; padding: 120px 56px 56px;
  background: rgb(246 242 235 / 0.5); color: var(--ink);
  -webkit-backdrop-filter: blur(26px) saturate(125%) brightness(1.1);
  backdrop-filter: blur(26px) saturate(125%) brightness(1.1);
  box-shadow: 0 0 60px rgb(var(--shade) / 0);
  transform: translate3d(-100%, 0, 0); visibility: hidden;
  transition: transform var(--mid) var(--ease-settle), box-shadow var(--mid) var(--ease-settle), visibility 0s var(--mid);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mp { background: rgb(246 242 235 / 0.94); }
}
/* short windows (a phone held sideways): the list starts higher and can be scrolled */
@media (max-height: 560px) {
  .mp { padding-top: 76px; padding-bottom: 24px; overflow-y: auto; overscroll-behavior: contain; }
}
.is-menu .mp {
  transform: none; visibility: visible; box-shadow: 0 0 60px rgb(var(--shade) / 0.18);
  transition: transform var(--mid) var(--ease-settle), box-shadow var(--mid) var(--ease-settle), visibility 0s;
}
@media (max-width: 767px) { .mp { padding: 100px 32px 40px; } }
.mp-label {
  margin-bottom: 36px; color: var(--accent);
  font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.mp-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
/* a link under the pointer slides a little to the right and softens */
.mp-links a, .mp-links button {
  position: relative; padding: 7px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 300;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
  transition: opacity var(--fast) var(--ease-out), transform 0.5s var(--ease-settle);
}
.mp-links a:hover, .mp-links button:hover { opacity: 0.6; transform: translateX(8px); }
.mp-links a:focus-visible, .mp-links button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.mp-links a[aria-current="page"]::before {
  content: ""; position: absolute; top: 50%; left: -20px; width: 10px; height: 1px; background: var(--accent);
}
.mp-foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 40px; }
.mp-foot a { width: fit-content; font-size: 13px; font-weight: 300; transition: color var(--fast) var(--ease-out); }
.mp-foot a:hover, .mp-foot a:focus-visible { color: var(--accent); outline: none; }
.mp-foot span { font-size: 11px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* ============================================================
   Search — a full-screen sheet of paper
   ============================================================ */
.sr {
  position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  visibility: hidden; clip-path: inset(100% 0 0 0);
  transition: clip-path 0.45s var(--ease-settle), visibility 0s 0.45s;
}
/* it wipes up from the bottom edge, like the page changes */
.sr.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path var(--card-wipe) var(--ease-settle), visibility 0s; }
.sr-top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 26px 40px; border-bottom: 1px solid var(--line);
}
.sr-brand {
  font-family: var(--font-display); font-size: 18px; font-weight: 300; line-height: 1;
  letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.9;
}
.sr-esc { display: flex; align-items: center; gap: 22px; }
.sr-esc span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.sr-close {
  position: relative; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0.6; transition: opacity 0.3s var(--ease-out);
}
.sr-close:hover { opacity: 1; }
.sr-close:focus-visible { outline: 1px solid var(--ink); outline-offset: 10px; }
.sr-close::before { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.sr-close i, .sr-close i::after {
  content: ""; position: absolute; display: block; width: 18px; height: 1px; background: var(--ink);
}
.sr-close i { top: 50%; left: 0; transform: rotate(45deg); }
.sr-close i::after { transform: rotate(-90deg); }

.sr-wrap {
  flex: 1 1 0; display: flex; flex-direction: column; width: 100%; max-width: 760px; min-height: 0;
  margin: 0 auto; padding: 0 40px;
}
.sr-field {
  display: flex; align-items: center; gap: 18px; padding: clamp(40px, 7vh, 72px) 0 20px;
  border-bottom: 1px solid var(--line); transition: border-color var(--mid) var(--ease-out);
}
.sr-field:focus-within { border-bottom-color: rgb(48 38 32 / 0.45); }
.sr-field svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--dim); stroke-width: 1; stroke-linecap: round; opacity: 0.9; }
.sr-input {
  flex: 1 1 0; min-width: 0; padding: 0; border: 0; outline: none; background: none; color: var(--ink);
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 300; letter-spacing: -0.01em;
}
.sr-input::placeholder { color: var(--dim); }
.sr-input::-webkit-search-cancel-button { display: none; }
.sr-content { flex: 1 1 0; overflow-y: auto; padding: clamp(28px, 4vh, 44px) 0 40px; overscroll-behavior: contain; }
.sr-label {
  margin: 0 0 6px; color: var(--dim);
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.sr-label + .sr-list + .sr-label, .sr-list + .sr-label { margin-top: clamp(30px, 4.5vh, 52px); }
/* a row under the pointer, or chosen with the arrow keys, steps in behind a small arrow */
.sr-row {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: padding-left 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}
.sr-row:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-row::before {
  content: "→"; position: absolute; left: -2px; color: var(--accent); opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.sr-row:hover, .sr-row.is-active { padding-left: 28px; }
.sr-row:hover::before, .sr-row.is-active::before { opacity: 1; transform: none; }
.sr-name { font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.375rem); font-weight: 300; letter-spacing: 0.01em; }
.sr-name span { margin-left: 12px; font-size: 0.8em; letter-spacing: 0.04em; color: var(--dim); }
.sr-meta { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.sr-none { padding: 18px 0; color: var(--dim); font-weight: 300; }
.sr-types { display: flex; border-top: 1px solid var(--line); }
.sr-type {
  flex: 1 1 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 24px 22px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.375rem); font-weight: 300; letter-spacing: 0.01em; color: var(--ink);
  transition: opacity 0.3s var(--ease-out);
}
.sr-type + .sr-type { padding-left: 24px; border-left: 1px solid var(--line); }
.sr-type small { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); font-variant-numeric: tabular-nums; }
.sr-type:hover, .sr-type:focus-visible { opacity: 0.6; outline: none; }
.sr-type.is-on small { color: var(--ink); font-weight: 500; }
.sr-type.is-on { box-shadow: inset 0 -1px 0 var(--ink); }
.sr-keys {
  flex: none; display: flex; justify-content: center; gap: clamp(20px, 3vw, 40px);
  padding: 20px 40px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.sr-keys span { display: inline-flex; align-items: center; gap: 8px; }
.sr-keys kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  border: 1px solid rgb(48 38 32 / 0.22); border-radius: 3px; font: inherit; font-size: 10px; letter-spacing: 0.04em;
}
@media (max-width: 767px) {
  .sr-top, .sr-wrap, .sr-keys { padding-left: 24px; padding-right: 24px; }
  .sr-keys { gap: 16px; }
  .sr-name span { display: none; }
  .sr-types { flex-direction: column; }
  .sr-type + .sr-type { padding-left: 0; border-left: 0; }
}

/* ============================================================
   Arriving — things rise 40px and fade in once as they are
   reached; a photograph settles from slightly large as it loads.
   If the script never arrives, everything simply shows.
   ============================================================ */
html.js:not(.rise-off) [data-rise] { opacity: 0; transform: translateY(40px); }
html.js:not(.rise-off) [data-rise].is-in {
  opacity: 1; transform: none;
  transition: opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1) var(--rise-delay, 0s), transform 1.2s cubic-bezier(0.33, 1, 0.68, 1) var(--rise-delay, 0s);
}
.fi { position: absolute; inset: 0; overflow: hidden; background: var(--linen); }
.fi img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
html.js:not(.rise-off) .fi img { opacity: 0; transform: scale(1.05); }
html.js:not(.rise-off) .fi img.is-loaded {
  opacity: 1; transform: none;
  transition: opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1), transform 1.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ============================================================
   Loader — photographs rise one by one onto a pile while a count
   runs, the pile fans out like a hand of cards, the top one opens
   to the full screen, and the name travels up over it in one
   move — large and bold at first, thinning down into its place
   in the header.
   ============================================================ */
.fs {
  position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #fff;
  -webkit-tap-highlight-color: transparent;
}
html:not(.has-intro) .fs, html:not(.has-intro) .fs-word, .fs[hidden], .fs-word[hidden] { display: none; }
.fs-pile { position: absolute; inset: 0; }
.fs-card {
  position: absolute; left: 50%; top: 50%; overflow: hidden; border-radius: var(--radius);
  background: var(--paper); will-change: transform, filter; visibility: hidden;
}
.fs-card img, .fs-hero img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.fs-hero { position: absolute; z-index: 200; overflow: hidden; visibility: hidden; border-radius: var(--radius); }
.fs-hero picture { position: absolute; inset: 0; }
.fs-hero i { position: absolute; inset: 0; opacity: 0; }
.fs-dim { background: rgb(0 0 0 / 0.22); }
.fs-count {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 56px); text-align: center;
  color: var(--accent); font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: 0.22em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.fs-word {
  position: fixed; inset: 0; z-index: 202; display: grid; place-items: center; overflow: hidden;
  pointer-events: none;
}
.fs-word span {
  display: block; visibility: hidden; color: var(--paper); will-change: transform;
  font-family: var(--font-display); font-size: clamp(56px, 13vw, 200px); font-weight: 600; line-height: 1;
  letter-spacing: -0.04em; margin-right: 0.04em; text-transform: uppercase; white-space: nowrap;
}
/* while the loader plays the header waits above it, unseen, so the name has a place to land */
html.has-intro .hd { z-index: 201; opacity: 0; }
html.has-intro .hd * { pointer-events: none; }
html.has-intro .hd-brand { visibility: hidden; }

/* ============================================================
   Moving between pages — the page fades to paper, and the next
   fades in; the header stays put.
   (The opt-in itself sits in each page's head.)
   ============================================================ */
::view-transition-group(root) { animation-duration: 1s; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root) { animation: page-out 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: page-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both; mix-blend-mode: normal; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }

/* ============================================================
   Name card — going to Work, Gallery, Studio, Contact or a
   project: a scene carrying its name wipes up from the bottom edge over
   the page you are on, holds for a beat, and then the new page
   wipes up over it in the same way. Nothing slides: only the edge
   travels. The scene is the footer's brown. --card-time is the
   whole thing, start to finish.
   ============================================================ */
:root { --card-time: 1.5s; --card-wipe: calc(var(--card-time) * 0.43); }
.tc, html.has-card.no-vt body::before {
  position: fixed; inset: 0; z-index: 9000; background: var(--ink); color: var(--paper);
}
.tc {
  display: grid; place-items: center; overflow: hidden; visibility: hidden; pointer-events: none;
  clip-path: inset(100% 0 0 0);
}
.tc.is-on {
  visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 0);
  transition: clip-path var(--card-wipe) var(--ease-settle);
}
/* the name starts a little low and rises to the centre as its scene arrives */
.tc-word, html.has-card.no-vt body::after {
  margin: 0; font-family: var(--font-display); font-size: clamp(44px, 8vw, 132px); font-weight: 500;
  line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
}
.tc-in { display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 0 24px; transform: translateY(22vh); }
.tc.is-on .tc-in { transform: none; transition: transform var(--card-wipe) cubic-bezier(0.215, 0.61, 0.355, 1); }
/* a project: its name a size down, and under it the line the landing shows for it */
.tc.is-project .tc-word { font-size: clamp(34px, 6.4vw, 104px); }
.tc-sub {
  margin: clamp(16px, 2.4vh, 26px) 0 0; color: var(--oak); text-align: center;
  font-family: var(--font-body); font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: 0.22em; text-transform: uppercase;
}
.tc-sub:empty { display: none; }

/* arriving: the browser keeps the old page, scene and all, as a still picture and lets the new
   page wipe up over it; the header travels with its page instead of floating above */
html.has-card .hd, html.is-leaving .hd { view-transition-name: none; }
html.has-card::view-transition-group(root) { animation-duration: var(--card-wipe); }
html.has-card::view-transition-old(root) { animation: none; }
html.has-card::view-transition-new(root) { animation: card-rise var(--card-wipe) var(--ease-settle) both; }
@keyframes card-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
/* browsers that cannot do that redraw the scene on the new page and wipe it away from below */
html.has-card.no-vt body::before { content: ""; animation: card-leave var(--card-wipe) var(--ease-settle) 60ms both; }
html.has-card.no-vt body::after {
  content: var(--card-word, ""); position: fixed; inset: 0; z-index: 9001; display: grid; place-items: center;
  color: var(--paper); animation: card-leave var(--card-wipe) var(--ease-settle) 60ms both;
}
@keyframes card-leave { to { clip-path: inset(0 0 100% 0); } }

/* ============================================================
   Footer — a cream sheet with a way to start, the pages and
   where to find the studio, resting on a dark band that carries
   the name. On a computer it fills the last screen, its words at
   the foot of the sheet; the open space above them is the whole
   gap between a page and its footer (pages add none of their
   own). As the page reaches its end the sheet lifts off the band,
   a dark edge comes in at both sides of the window, and the name
   rises and comes up to full strength.
   Sizes are set for a 1440px-wide window and grow beyond it.
   ============================================================ */
/* until the script has written the footer it takes no room and shows nothing: otherwise, on a
   slow connection, its dark ground flashes under the header before the page has its content */
.ft:empty { display: none; }
.ft {
  --u: max(1px, 0.0694444vw);
  --gap: calc(10.6667 * var(--u));
  --p: 1;                                   /* how far the band is uncovered, 0 to 1 */
  position: relative; display: flex; flex-direction: column; background: var(--ink); color: var(--ink);
  font-family: var(--font-display); font-size: calc(16.5 * var(--u)); line-height: calc(17.6 * var(--u)); font-weight: 560; letter-spacing: -0.028em;
}
.ft a { color: inherit; text-decoration: none; }
.ft-sheet {
  position: relative; z-index: 1; flex: 1 0 auto; display: grid; align-content: end;
  grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: 180px var(--edge) calc(20 * var(--u)); background: var(--paper);   /* small windows: this is the space between a page and its footer */
}
/* the dark edges: full height of the window (over the header's bar too), widening to 1% a side
   as the band is uncovered; they step aside while the menu is open */
.ft::before, .ft::after { content: ""; position: absolute; z-index: 101; top: -100vh; bottom: 0; width: calc(var(--p) * 1%); background: var(--ink); pointer-events: none; }
.ft::before { left: 0; }
.ft::after { right: 0; }
html.is-menu .ft::before, html.is-menu .ft::after { display: none; }
.ft-quiet { color: rgb(48 38 32 / 0.28); }

.ft-start { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 32px; font-size: 24.7px; line-height: 26.4px; letter-spacing: -0.035em; }
.ft-start a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.ft-pages { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: 32px; }
.ft-pages nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ft-find { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.ft-row { display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 30px; }
.ft-row address { font-style: normal; }
.ft-phones { display: flex; flex-direction: column; align-items: flex-start; }
.ft-social { display: flex; gap: 6px; }
.ft-small { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 48px; }
.ft-top { display: inline-flex; flex: none; align-items: center; gap: 10px; white-space: nowrap; padding: 0; border: 0; background: none; color: rgb(48 38 32 / 0.28); font: inherit; letter-spacing: inherit; cursor: pointer; }
.ft-top svg { width: 12px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ft-back { display: none; }

/* the band stays at the foot of the window while the sheet rides up off it */
.ft-band { position: sticky; bottom: 0; z-index: 0; overflow: hidden; padding: 16px var(--edge); background: var(--ink); color: var(--paper); }
.ft-band-in { display: flex; flex-direction: column; gap: calc(20 * var(--u)); transform: translate3d(0, calc((1 - var(--p)) * 33%), 0); opacity: calc(0.15 + 0.85 * var(--p)); }
.ft-word { display: block; width: 100%; height: auto; overflow: visible; }
.ft-word text { fill: currentColor; font-family: var(--font-display); font-size: 100px; font-weight: 800; letter-spacing: -2px; }
.ft-legal { display: none; }

.ft a:focus-visible, .ft-top:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .ft-pages a, .ft-find a { transition: color var(--quick) var(--ease-out); }
  .ft-pages a:hover, .ft-find a:hover { color: rgb(48 38 32 / 0.28); }
  .ft-top { transition: color var(--quick) var(--ease-out); }
  .ft-top:hover { color: var(--ink); }
  .ft-start a:hover { animation: ft-line 0.7s var(--ease-settle); }
}
@keyframes ft-line {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0% 1px; background-position: 100% 100%; }
  46% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

@media (min-width: 768px) {
  .ft-start { font-size: calc(37.1 * var(--u)); line-height: calc(39.6 * var(--u)); }
  .ft-find { gap: 12px; }
  .ft-band { padding-top: calc(20 * var(--u)); padding-bottom: calc(20 * var(--u)); }
}
@media (min-width: 1280px) {
  .ft { min-height: 100svh; }
  .ft-sheet { padding-top: 100px; }
  .ft-start { grid-column: 1 / span 5; margin-bottom: 0; }
  .ft-pages { grid-column: 7 / span 2; flex-direction: column; justify-content: space-between; gap: calc(100 * var(--u)); margin-bottom: 0; }
  .ft-pages nav { gap: calc(8 * var(--u)); }
  .ft-pages .ft-letter, .ft-find .ft-letter--s { display: none; }
  .ft-back { display: inline-flex; align-self: flex-start; }
  .ft-back svg { display: none; }
  .ft-find { grid-column: 10 / span 3; justify-content: space-between; gap: calc(100 * var(--u)); }
  .ft-rows { display: flex; flex-direction: column; gap: calc(20 * var(--u)); }
  .ft-row { flex-direction: row; justify-content: flex-start; gap: calc(30 * var(--u)); }
  .ft-small { display: none; }
  .ft-legal { display: flex; justify-content: space-between; gap: 20px; }
  .ft-legal span { opacity: 0.52; }
}
@media (max-width: 1279px) {
  .ft-rows { display: contents; }
  /* stacked layout, mostly touch screens: every link gets room for a finger */
  .ft-pages nav { gap: 0; }
  .ft-pages a, .ft-find a, .ft-find address, .ft-top { padding-top: 7px; padding-bottom: 7px; }
  .ft-start a { padding-top: 6px; }
  .ft-find { gap: 0; }
  .ft-row { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ft::before, .ft::after { display: none; }
  .ft-band-in { transform: none; opacity: 1; }
}

/* ============================================================
   Simple inner pages (until each is designed)
   ============================================================ */
.soon {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) var(--edge) 96px;
}
.soon h1 { font-family: var(--font-display); font-size: clamp(40px, 6.4vw, 104px); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; }
.soon h1 em { font-style: normal; color: var(--accent); }
.soon p:not(.caps) { margin: 22px auto 30px; max-width: 34ch; color: var(--dim); font-weight: 300; line-height: 1.62; }
.soon h1 + .soon-actions { margin-top: 34px; }
.soon .caps { margin-bottom: 18px; }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js [data-rise], html.js .fi img { opacity: 1 !important; transform: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .mp, .is-menu .mp, .mp-catch, .is-menu .mp-catch, .sr, .sr.is-open, .sr-row, .sr-row::before, .pill,
  .hd-brand, .hd-menu, .hd-search, .hd-burger i, .mp-links a, .mp-links button {
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
}
