/* Foldmark. Matte black and warm porcelain. The colour lives in the showcased work, not in the chrome. */

:root {
  --ink: #0c0c0b;
  --porcelain: #efeae2;
  --porcelain-2: #e4ddd0;
  --dark-soft: rgba(239, 234, 226, .66);
  --dark-faint: rgba(239, 234, 226, .42);
  --hair-dark: rgba(239, 234, 226, .14);
  --light-soft: rgba(12, 12, 11, .68);
  --light-faint: rgba(12, 12, 11, .44);
  --hair-light: rgba(12, 12, 11, .14);
  --serif: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 4.4vw, 68px);
  --max: 1480px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  --pearl: linear-gradient(105deg, transparent 22%, rgba(238, 230, 255, .30) 38%, rgba(212, 240, 232, .26) 47%, rgba(255, 230, 206, .28) 56%, transparent 72%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--porcelain);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain: one static tile over the whole page. Texture only, never animated. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px;
  opacity: .06;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { overflow-wrap: break-word; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--porcelain); color: var(--ink); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Sections carry their own colour tokens so every child picks the right hairline and muted text. */
.section { position: relative; padding: clamp(96px, 13vw, 200px) 0; }
.section-dark { --line: var(--hair-dark); --soft: var(--dark-soft); --faint: var(--dark-faint); background: var(--ink); color: var(--porcelain); }
.section-light { --line: var(--hair-light); --soft: var(--light-soft); --faint: var(--light-faint); background: var(--porcelain); color: var(--ink); background-image: var(--grain); background-size: 180px; }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(24px, 3vw, 36px); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(46px, 5.6vw, 100px); }
h2 { font-size: clamp(44px, 6vw, 100px); }
h1 em, h2 em { font-style: normal; color: var(--soft); }
.lede { margin: 0; max-width: 40ch; font: 300 clamp(19px, 1.7vw, 24px)/1.5 var(--sans); color: var(--soft); }
.num { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--faint); }
.statement { margin: 0; max-width: 24em; font: 300 clamp(32px, 4.3vw, 68px)/1.12 var(--serif); letter-spacing: -.015em; }
.note { margin: 0; color: var(--soft); max-width: 46ch; }

/* Buttons and links. Hover is a reflective sweep, not a bounce. */
.pearl { position: relative; overflow: hidden; isolation: isolate; }
.pearl::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--pearl); transform: translate3d(-101%, 0, 0); pointer-events: none; }
.pearl:hover::before, .pearl:focus-visible::before { animation: sheen 1.2s var(--ease) forwards; }
@keyframes sheen { from { transform: translate3d(-101%, 0, 0); } to { transform: translate3d(101%, 0, 0); } }

.btn { display: inline-flex; align-items: center; gap: 14px; padding: 17px 28px; border: 1px solid currentColor; border-radius: 999px; font: 500 15px/1 var(--sans); }
.btn-solid { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.btn-ink { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.btn .arr { display: inline-block; transition: transform .6s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.link-arrow { padding-bottom: 6px; border-bottom: 1px solid currentColor; font: 500 15px/1.2 var(--sans); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 40px; }

/* Header */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--pad);
  color: var(--porcelain);
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
}
.site-head.scrolled { background: rgba(12, 12, 11, .74); border-bottom-color: var(--hair-dark); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-head.on-light { color: var(--ink); }
.site-head.on-light.scrolled { background: rgba(239, 234, 226, .8); border-bottom-color: var(--hair-light); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 400 23px/1 var(--serif); letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; }
.mark path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.site-nav { display: flex; gap: 38px; font-size: 14px; }
.site-nav a { position: relative; padding: 6px 0; opacity: .66; transition: opacity .4s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.head-cta { justify-self: end; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; }

/* Hero */
@media (min-width: 961px) { .h-line > span { white-space: nowrap; } }
.h-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.h-line > span { display: inline-block; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.js .h-line > span { transform: translate3d(0, 110%, 0); }
.js.is-ready .h-line > span { transform: none; }

/* Frames: porcelain bezel around a screen. Shared by the hero fallback, the deck and the work page. */
.frame { position: relative; border-radius: 18px; padding: 9px; background: linear-gradient(160deg, #fbf9f4 0%, #ddd6ca 52%, #f1ece3 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px rgba(12, 12, 11, .32), 0 50px 70px -50px rgba(0, 0, 0, .85); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; }
.frame-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(12, 12, 11, .2); }
.frame-screen { position: relative; overflow: hidden; border-radius: 10px; background: var(--bg, #fff); aspect-ratio: 16 / 10; container-type: inline-size; }
.frame-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 36%); }
.frame-screen > .mock { height: 100%; }

/* Concept mockups. Type is sized in container units so each mock scales with its frame. */
.mock { --bg: #fff; --ink: #111; --acc: #111; --soft: #eee; --m-head: var(--serif); --m-sans: var(--sans); position: relative; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1.25cqw/1.45 var(--m-sans); }
.mock .m-top { display: flex; align-items: center; justify-content: space-between; padding: 2.6cqw 4cqw; font-size: 1.3cqw; }
.mock .m-logo { font: 400 2.1cqw/1 var(--m-head); letter-spacing: -.01em; }
.mock .m-links { display: flex; gap: 2.4cqw; opacity: .7; }
.mock .m-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3cqw; padding: 1cqw 4cqw 2.4cqw; }
.mock .m-kicker { margin: 0 0 1.8cqw; font-size: 1.05cqw; letter-spacing: .16em; text-transform: uppercase; opacity: .68; }
.mock h3 { margin: 0 0 2.2cqw; font: 400 4.8cqw/.98 var(--m-head); letter-spacing: -.02em; }
.mock .m-btn { display: inline-block; padding: 1.1cqw 2.2cqw; border-radius: 99px; background: var(--acc); color: var(--bg); font-size: 1.25cqw; }
.mock .m-art { position: relative; aspect-ratio: 1; }
.mock .m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; padding: 0 4cqw 3.6cqw; }
.mock .m-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 8.5cqw; padding: 1.4cqw; border-radius: 1.2cqw; background: var(--soft); }
.mock .m-tile b { font-weight: 500; font-size: 1.35cqw; }
.mock .m-tile span { font-size: 1.1cqw; opacity: .7; }

.mock--bake { --bg: #f5e9d6; --ink: #2a1a10; --acc: #b84a1c; --soft: #ecd3b1; --m-head: "Newsreader", Georgia, serif; }
.mock--bake .m-sun { position: absolute; top: 4%; right: 2%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #f2b84b; opacity: .85; }
.mock--bake .m-loaf { position: absolute; left: 14%; top: 26%; width: 64%; aspect-ratio: 1.5; border-radius: 46% 46% 16% 16% / 60% 60% 16% 16%; background: linear-gradient(165deg, #e7a25a 0%, #b84a1c 100%); box-shadow: inset 0 -2cqw 0 rgba(90, 30, 8, .22), 0 6cqw 8cqw -4cqw rgba(60, 20, 8, .45); transform: rotate(-6deg); }

.mock--physio { --bg: #edf1e8; --ink: #17271d; --acc: #3f6e4f; --soft: #d9e4d3; --m-head: var(--sans); }
.mock--physio h3 { font-weight: 500; letter-spacing: -.035em; }
.mock--physio .m-leaf { position: absolute; left: 18%; top: 14%; width: 46%; aspect-ratio: 1; border-radius: 0 100% 0 100%; background: var(--acc); transform: rotate(-32deg); }
.mock--physio .m-leaf--2 { left: 42%; top: 40%; width: 26%; background: #a9c9a4; transform: rotate(18deg); }

.mock--oriel { --bg: #0f1828; --ink: #f2eee3; --acc: #f0c24b; --soft: #1b2a44; --m-head: var(--sans); }
.mock--oriel h3 { font-weight: 600; letter-spacing: -.04em; }
.mock--oriel .m-bolt { position: absolute; left: 24%; top: 8%; width: 46%; height: auto; fill: var(--acc); }

.mock--phone .m-top { padding: 7cqw 7cqw 3cqw; font-size: 3cqw; }
.mock--phone .m-logo { font-size: 5cqw; }
.mock--phone .m-links { display: none; }
.mock--phone .m-hero { grid-template-columns: 1fr; gap: 6cqw; padding: 4cqw 7cqw; }
.mock--phone .m-art { display: none; }
.mock--phone .m-kicker { font-size: 2.6cqw; }
.mock--phone h3 { font-size: 11cqw; margin-bottom: 4cqw; }
.mock--phone .m-btn { font-size: 3cqw; padding: 2.6cqw 4.4cqw; }
.mock--phone .m-tiles { grid-template-columns: 1fr 1fr; padding: 0 7cqw 7cqw; gap: 3cqw; }
.mock--phone .m-tile { min-height: 20cqw; padding: 3cqw; border-radius: 3cqw; }
.mock--phone .m-tile b { font-size: 3.2cqw; }
.mock--phone .m-tile span { font-size: 2.6cqw; }

/* Pinned concept builds: a deck of mockups that rises, tilts and settles as you scroll. */
.pin { position: relative; height: 300vh; }
.pin-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pin-stage { position: absolute; inset: 0; perspective: 1600px; }
.pin-item { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); align-items: center; gap: clamp(28px, 4vw, 72px); padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; left: 0; right: 0; transform: translate3d(0, var(--y, 0px), 0) rotateX(var(--rx, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); will-change: transform, opacity; }
.pin-cap h3 { margin: 18px 0 16px; font-size: clamp(34px, 3.8vw, 60px); }
.pin-cap p { margin: 0; max-width: 30ch; color: var(--soft); }
.pin-item .frame { width: 100%; }

/* Scroll-linked reading: words sharpen as the statement passes the reader. */
.reading .w { opacity: .16; transition: opacity .5s var(--ease); }
.reading .w.on { opacity: 1; }

/* Rows: the working list used for the stakes and the process. */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); column-gap: clamp(16px, 3vw, 56px); align-items: baseline; padding: clamp(24px, 2.8vw, 36px) 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(28px, 2.9vw, 44px); letter-spacing: -.012em; }
.row--stack { grid-template-columns: 64px minmax(0, 1fr); }
.row p { margin: 0; max-width: 48ch; color: var(--soft); }

/* Parallax wrapper: moves the whole frame a little against the scroll. */
.px { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* Work page */
.page-top { padding-top: 180px; padding-bottom: clamp(64px, 9vw, 120px); }
.page-top h1 { max-width: 13ch; }
.work-item { border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: clamp(32px, 5vw, 96px); }
.work-meta h2 { margin: 22px 0 24px; font-size: clamp(40px, 4.6vw, 76px); }
.ticks { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ticks li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.work-grid .frame { width: 100%; }

/* Approach page */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; list-style: none; cursor: pointer; font: 400 clamp(24px, 2.6vw, 36px)/1.15 var(--serif); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 34px/1 var(--sans); transition: transform .6s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 30px; max-width: 60ch; color: var(--soft); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px); margin-top: 18px; }
.two-col h4 { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.two-col p { margin: 0; color: var(--soft); }

/* Contact page: the brief */
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: 24px; }
.field { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 0 16px; border-bottom: 1px solid var(--hair-dark); transition: border-color .5s var(--ease); }
.field:focus-within { border-bottom-color: var(--porcelain); }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .field-label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dark-faint); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--porcelain); font: 300 clamp(24px, 2.4vw, 34px)/1.25 var(--serif); outline: none; resize: none; appearance: none; }
.field textarea { min-height: 120px; font-size: clamp(20px, 1.9vw, 26px); font-family: var(--sans); font-weight: 300; line-height: 1.5; }
.field select option { background: var(--ink); color: var(--porcelain); }
.field input::placeholder, .field textarea::placeholder { color: var(--dark-faint); }
.chips { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.chips .field-label { width: 100%; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { padding: 11px 17px; border: 1px solid var(--hair-dark); border-radius: 999px; font: 400 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--porcelain); cursor: pointer; transition: background-color .4s, color .4s, border-color .4s; }
.chips label:hover { border-color: var(--porcelain); }
.chips input:checked + label { background: var(--porcelain); border-color: var(--porcelain); color: var(--ink); }
.chips input:focus-visible + label { outline: 1px solid var(--porcelain); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 48px; }
.form-note { margin: 0; max-width: 46ch; color: var(--dark-soft); font-size: 14px; }
.form-note:empty { display: none; }
button.btn { cursor: pointer; font-family: inherit; }

/* Footer */
.foot { padding: 72px 0 44px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.foot-nav { display: flex; gap: 30px; font-size: 14px; }
.foot-nav a { opacity: .66; transition: opacity .4s; }
.foot-nav a:hover { opacity: 1; }
.foot small { font: 400 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--faint); }

/* Reveals. Only applied when JS is running, so content still shows without it. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Hero: a 3D scene of porcelain-framed concept sites, headline and offer on the left. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 clamp(32px, 4.5vw, 56px); overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { position: absolute; top: 12%; right: 6%; width: 50%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(239, 234, 226, .16), 0 60px 90px -60px #000; }
.hero.is-webgl .hero-still { display: none; }
.hero-inner { position: relative; padding-top: 160px; }
.hero-title { margin: 0; font-size: clamp(40px, 6.8vw, 128px); font-weight: 300; letter-spacing: -.045em; line-height: .92; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--hair-dark); }
.hero .lede { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); }
.hero .cta-row { margin: 0; }
.hero-caption { position: absolute; right: var(--pad); top: 112px; margin: 0; max-width: 28ch; text-align: right; font: 400 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dark-faint); z-index: 1; }
@media (max-width: 960px) { .hero-foot { grid-template-columns: 1fr; } .hero-caption { display: none; } }
@media (max-width: 560px) { .hero-inner { padding-top: 58svh; } .hero-title { font-size: clamp(40px, 13vw, 64px); } }

/* Responsive */
@media (max-width: 1100px) {
  .site-nav { gap: 26px; }
}
@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr auto; }
  .head-cta { display: none; }
  .site-nav { gap: 18px; font-size: 13px; }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row p { grid-column: 2; }
  .pin { height: auto; }
  .pin-stick { position: static; height: auto; overflow: visible; padding: 16px 0 40px; }
  .pin-stage { position: static; }
  .pin-item { position: relative; inset: auto; grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; transform: none; opacity: 1; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pin { height: auto; }
  .pin-stick { position: static; height: auto; overflow: visible; padding: 16px 0 40px; }
  .pin-stage { position: static; }
  .pin-item { position: relative; inset: auto; grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; transform: none; opacity: 1; }
  .phone, .stage .frame--browser { transform: none; }
}

/* Page transitions between the static pages, where the browser supports them. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
