/* Deviant Studio design prototype.
   Ink and blue come from the logo. The cut corner is the dot on the "i". */
:root {
  --ink: #2b2928;
  --blue: #0a87b3;
  --blue-deep: #0b5e80;
  --paper: #fbf8f4;
  --mist: #eef4f5;
  --muted: #625d59;
  --white: #fff;
  --sun: #f7c325;

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --gut: clamp(20px, 5vw, 80px);
  --dot: 6px 34px 6px 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.h-xl { font-size: clamp(2.8rem, 8vw, 7rem); }
.h-lg { font-size: clamp(2.2rem, 5.4vw, 4.5rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--gut); max-width: 1440px; margin-inline: auto; }
.sec { padding-block: clamp(80px, 11vw, 170px); position: relative; }
.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .25s, transform .25s var(--ease); }
.btn:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn::after { content: ""; width: 9px; height: 9px; border-radius: 1px 5px 1px 1px; background: currentColor; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: var(--sun); }

/* header */
/* A flat rail across the whole top edge. On the home page the pendulum cord hangs from it. */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: stretch; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); transition: transform .4s var(--ease); }
.top.away { transform: translateY(-100%); }
/* Home, at the very top: no bar at all, so colour and cord run to the edge of the screen.
   An open phone menu always keeps the solid bar. */
.top { transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.top.clear:not(.menu-open) { background: transparent; border-bottom-color: transparent; }
.top.clear:not(.menu-open) :is(nav a, .logo) { transition: color .2s; }
.top.clear:not(.menu-open) :is(.say, .menu) { align-self: center; height: 46px; background: transparent; color: var(--ink); border: 2px solid currentColor; border-radius: 4px 20px 4px 4px; margin-right: var(--gut); padding: 0 22px; transition: color .2s, background-color .2s; }
.top.clear:not(.menu-open) .say:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.top.clear:not(.menu-open) .on-dark { color: var(--white); }
.top.clear:not(.menu-open) .logo.on-dark img { filter: brightness(0) invert(1); }
.top.clear:not(.menu-open) nav a::after { background: currentColor; }
.top:focus-within { transform: none; }
.top .logo { display: flex; align-items: center; margin-right: auto; padding-left: var(--gut); }
.top .logo img { width: 122px; height: auto; }
.top nav { display: flex; align-items: stretch; gap: clamp(18px, 2.6vw, 42px); padding-right: clamp(24px, 3.4vw, 54px); }
.top nav a { position: relative; display: flex; align-items: center; text-decoration: none; font: 600 1.05rem var(--display); }
/* the dot from the "i" marks where you are */
.top nav a::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 1px 5px 1px 1px; background: var(--blue); scale: 0; transition: scale .25s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current]::after { scale: 1; }
.top nav a[href="contact.html"] { display: none; }
.say { display: flex; align-items: center; padding: 0 var(--gut) 0 34px; background: var(--ink); color: var(--white); text-decoration: none; font: 700 1.1rem var(--display); transition: background .25s; }
.say:hover { background: var(--blue-deep); }
.menu { display: none; padding: 0 var(--gut); border: 0; background: var(--ink); color: var(--white); font: 700 1.05rem var(--display); cursor: pointer; }
@media (max-width: 980px) {
  .top { height: 68px; }
  .menu { display: block; }
  .say { display: none; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0; background: var(--paper); border-bottom: 2px solid var(--ink); }
  .top.menu-open nav { display: flex; }
  .top nav a, .top nav a[href="contact.html"] { display: flex; padding: 18px var(--gut); font-size: 1.35rem; border-top: 1px solid #ded7cf; }
  .top nav a::after { left: auto; right: var(--gut); bottom: 50%; margin: 0 0 -5px; }
}

/* reveal: only hide when script is there to show it again */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.words span { transition: opacity .2s linear; }

/* pendulum hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; user-select: none; }
.panel { position: absolute; inset: 0; display: grid; justify-content: center; align-content: start; padding-top: 25vh; padding-top: 25svh; background: var(--bg); color: var(--fg); transition: background-color .3s; }
.panel p { font: 800 clamp(2.9rem, min(9.4vw, 17vh), 9.5rem)/.94 var(--display); letter-spacing: -.04em; text-align: center; white-space: pre; width: max-content; }
.rig { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.rig line { stroke: #1d1b1a; stroke-width: 2; }
.bob { --size: clamp(76px, 8vw, 118px); position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); margin: 0 0 0 calc(var(--size) / -2); padding: 0; cursor: grab; touch-action: none; transform-origin: 50% 0; perspective: 500px; border: 0; background: none; }
.bob:active { cursor: grabbing; }
.bob i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12% 36% 12% 12%; background: linear-gradient(145deg, #25a8d6, #0a87b3 45%, #075775); box-shadow: inset 0 2px 1px rgb(255 255 255 / .55), inset 0 -8px 14px rgb(0 0 0 / .28), 0 26px 40px -8px rgb(0 0 0 / .45); transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); color: var(--white); font: normal 800 calc(var(--size) * .62)/1 var(--display); padding-bottom: 8%; text-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.bob::before { content: ""; position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 3px solid #1d1b1a; }
.dock { position: absolute; z-index: 3; left: 50%; bottom: 20px; translate: -50% 0; width: min(980px, calc(100% - 24px)); display: grid; justify-items: center; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; padding: 8px 8px 8px 24px; border-radius: 40px; background: var(--ink); color: var(--white); box-shadow: 0 14px 40px rgb(0 0 0 / .3); }
.pitch .btn { min-height: 42px; padding-block: 8px; }
.pills { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .94); scrollbar-width: none; }
.pills button { display: flex; align-items: center; gap: 8px; flex: none; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pills button[data-c]::before { content: ""; width: 10px; height: 10px; border-radius: 1px 5px 1px 1px; background: var(--c); }
.pills button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
@media (max-width: 640px) {
  .pitch { padding: 14px; text-align: center; font-size: .95rem; line-height: 1.4; }
  .panel p { font-size: 11.6vw; }
  .panel { padding-top: 24vh; padding-top: 24svh; }
}

/* thread that runs down the home page */
.threaded { position: relative; isolation: isolate; }
.thread { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; opacity: .5; }
.thread rect { fill: var(--blue); }

/* work cards */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 44px); }
.card { grid-column: span 6; text-decoration: none; display: grid; gap: 18px; align-content: start; }
.cards.featured .card:nth-child(4n+1) { grid-column: span 7; }
.cards.featured .card:nth-child(4n+2) { grid-column: span 5; margin-top: 110px; }
.cards.featured .card:nth-child(4n+3) { grid-column: span 5; }
.cards.featured .card:nth-child(4n+4) { grid-column: span 7; margin-top: 90px; }
.card .shot { aspect-ratio: 5 / 4; border-radius: var(--dot); overflow: hidden; background: var(--c); position: relative; box-shadow: 0 24px 50px -24px rgb(30 20 10 / .5); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.card:hover .shot img { scale: 1.07; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .meta span { color: var(--muted); font-size: .95rem; }
.card p { color: var(--muted); max-width: 48ch; margin-top: -10px; }
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards.cards .card:nth-child(n) { grid-column: 1; margin-top: 0; }
}

[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .25), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
[data-tilt]:hover::after { opacity: 1; }

/* two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.door { position: relative; display: grid; align-content: space-between; gap: 44px; padding: clamp(28px, 4vw, 56px); min-height: 480px; border-radius: 10px 70px 10px 10px; text-decoration: none; background: var(--c); color: var(--fg); }
.door ul { list-style: none; font: 600 clamp(1.15rem, 1.8vw, 1.6rem)/1.3 var(--display); }
.door li { padding-block: 10px; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); transition: padding .3s var(--ease); }
.door:hover li { padding-left: 10px; }
.door p { margin-top: 16px; max-width: 40ch; }
.door .btn { justify-self: start; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }

/* numbers */
.nums { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.nums div { display: grid; }
.nums b { font: 800 clamp(3.2rem, 8vw, 6.8rem)/1 var(--display); letter-spacing: -.04em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.nums span { color: var(--muted); max-width: 18ch; }

.marquee { overflow: hidden; margin-top: 70px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .run { display: flex; width: max-content; gap: 20px; animation: run 60s linear infinite; }
.marquee:hover .run { animation-play-state: paused; }
.marquee figure { flex: none; width: 170px; height: 96px; display: grid; place-items: center; background: var(--white); border-radius: 4px 22px 4px 4px; padding: 14px; }
.marquee img { max-width: 140px; max-height: 68px; object-fit: contain; }
@keyframes run { to { transform: translateX(calc(-50% - 10px)); } }

/* how we work: a real sequence, so it is numbered */
.steps { list-style: none; display: grid; gap: clamp(30px, 6vw, 90px); counter-reset: s; }
.steps li { counter-increment: s; width: min(520px, 100%); padding: 34px; background: var(--white); border-radius: var(--dot); box-shadow: 0 24px 50px -30px rgb(30 20 10 / .35); }
.steps li:nth-child(even) { justify-self: end; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 3px 18px 3px 3px; background: var(--blue); color: var(--white); font: 800 1.3rem var(--display); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* client voices: one quote at a time, chosen by face */
.voices { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.said { display: grid; }
.said blockquote { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 18px; transition: opacity .45s, translate .6s var(--ease), visibility .45s; }
.said blockquote.on { opacity: 1; visibility: visible; translate: 0 0; }
.said blockquote::before { content: "“"; display: block; height: .62em; font: 800 clamp(5rem, 9vw, 8rem)/1 var(--display); color: var(--blue); }
.said p { font: 500 clamp(1.25rem, 2.2vw, 1.9rem)/1.4 var(--display); letter-spacing: -.01em; }
.said p + p { margin-top: 14px; }
.said footer { display: grid; margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--ink); }
.said footer strong { font: 750 1.2rem var(--display); }
.said footer span { color: var(--muted); }
.faces { display: grid; }
.faces button { display: flex; align-items: center; gap: 16px; padding: 12px 10px; border: 0; border-bottom: 1px solid #ded7cf; background: none; text-align: left; cursor: pointer; transition: background .25s; }
.faces button:hover { background: var(--mist); }
.faces img { flex: none; width: 58px; height: 58px; object-fit: contain; background: var(--white); border-radius: 4px 20px 4px 4px; filter: grayscale(1); transition: filter .3s; }
.faces span { display: grid; line-height: 1.35; }
.faces small { color: var(--muted); font-size: .88rem; }
.faces button[aria-pressed="true"] { box-shadow: inset 4px 0 0 var(--blue); background: var(--white); }
.faces button[aria-pressed="true"] img { filter: none; }
@media (max-width: 860px) { .voices { grid-template-columns: minmax(0, 1fr); } }

/* journal */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 34px; }
.post { display: grid; gap: 16px; align-content: start; text-decoration: none; }
.post .shot { aspect-ratio: 3 / 2; border-radius: var(--dot); overflow: hidden; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.post:hover img { scale: 1.06; }
.post h3 { font-size: 1.45rem; line-height: 1.15; }
.post p { color: var(--muted); }

/* closing call and footer */
.end { background: var(--ink); color: var(--white); border-radius: 0 clamp(40px, 9vw, 130px) 0 0; padding-block: clamp(80px, 10vw, 150px) 40px; }
.end h2 { max-width: 14ch; }
.end .lead { color: #cfc9c4; margin-block: 26px 36px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 70px; }
.people a { position: relative; display: grid; gap: 8px; padding: 28px; border-radius: var(--dot); background: #383533; text-decoration: none; }
.people a:hover { background: var(--blue-deep); }
.people strong { font: 750 1.5rem var(--display); }
.people span { color: #cfc9c4; }
.people em { font-style: normal; font-weight: 700; font-size: 1.15rem; margin-top: 12px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 80px; padding-top: 30px; border-top: 1px solid #4a4643; color: #cfc9c4; font-size: .95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* inner page opening */
.open { padding-top: clamp(150px, 20vh, 230px); padding-bottom: 60px; }
.open .lead { margin-top: 28px; }

/* work page opening: one compact band, so the gallery is on screen from the start */
.work-open { max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 40px; padding-top: 106px; padding-bottom: 10px; }
.work-open h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.work-open .lead { grid-row: 2; grid-column: 1 / -1; font-size: 1.08rem; max-width: none; }
.switch { grid-row: 1; grid-column: 2; }
.switch { display: inline-flex; border-bottom: 2px solid var(--ink); }
.switch button { position: relative; min-height: 46px; padding: 8px 22px 12px; border: 0; background: none; font: 600 1.05rem var(--display); color: var(--muted); cursor: pointer; }
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch button::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 1px 6px 1px 1px; background: var(--blue); scale: 0; transition: scale .25s var(--ease); }
.switch button[aria-pressed="true"]::after { scale: 1; }
@media (max-width: 760px) { .work-open { grid-template-columns: minmax(0, 1fr); padding-top: 92px; } .switch { grid-row: 3; grid-column: 1; justify-self: start; margin-top: 8px; } }

/* gallery walk: same paper as the page, so there is no seam where the room begins */
.walk { position: relative; background: var(--paper); }
.stage { --vx: 80%; --vy: 16%; --rail: 70px; --lift: 0px; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.room { position: absolute; inset: 0 0 var(--lift) 0; background: linear-gradient(180deg, var(--paper) 0 60%, #f1ede7 100%); }
.floor { position: absolute; left: 0; right: 0; top: 60%; width: 100%; height: calc(40% - var(--rail)); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.floor line { stroke: #d6cec4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.floor .thread-line { stroke: var(--blue); stroke-width: 2.5; }
.bead { --run: 0; position: absolute; left: 71%; top: calc(60% + (40% - var(--rail) - 18px) * (.2 + var(--run) * .8)); width: 16px; height: 16px; margin-left: -8px; border-radius: 2px 9px 2px 2px; background: var(--blue); }
/* the part of the room you can see, above the rail */
.view { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--rail) + var(--lift)); perspective: 1200px; perspective-origin: var(--vx) var(--vy); }
.world { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }

.frame { position: absolute; left: 0; top: 0; display: block; padding: 12px; background: var(--white); border: 1px solid #d8d1c9; border-radius: 8px 44px 8px 8px; text-decoration: none; box-shadow: 0 40px 60px -34px rgb(43 41 40 / .5); transition: border-color .3s; }
.frame.front, .frame:hover { border-color: var(--ink); }
.frame .mat { display: block; width: 100%; height: 100%; background: #f1eeea; border-radius: 4px 34px 4px 4px; overflow: hidden; }
.frame .mat img { width: 100%; height: 100%; object-fit: contain; }

/* the story of the piece in front */
.story { position: absolute; z-index: 15; left: var(--gut); top: 50%; translate: 0 -50%; width: min(34vw, 460px); }
.story .kind { display: flex; align-items: center; gap: 12px; font: 600 1.05rem var(--display); color: var(--blue-deep); }
.story .kind::before { content: ""; width: 12px; height: 12px; border-radius: 1px 7px 1px 1px; background: var(--blue); }
.story h2 { margin-top: 8px; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.story .about { margin-top: 14px; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.story ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 20px; }
.story li { padding: 6px 13px; border: 1.5px solid #cfc7be; border-radius: 3px 14px 3px 3px; font-size: .9rem; font-weight: 600; }
.story .btn { margin-top: 26px; }

/* the rail along the bottom mirrors the navigation rail along the top */
.deck { position: absolute; z-index: 20; left: 0; right: 0; bottom: var(--lift); height: var(--rail); background: var(--paper); border-top: 2px solid var(--ink); }
.deck .track { position: absolute; left: 0; right: 0; top: -2px; height: 4px; }
.deck .track i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.index { display: flex; align-items: stretch; justify-content: space-between; height: 100%; padding-inline: var(--gut); overflow-x: auto; scrollbar-width: none; }
.index button { position: relative; flex: none; padding: 0 12px; border: 0; background: none; font: 600 1.02rem var(--display); color: var(--muted); white-space: nowrap; cursor: pointer; }
.index button:hover { color: var(--ink); }
.index button[aria-current="true"] { color: var(--ink); }
.index button::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 1px 5px 1px 1px; background: var(--blue); scale: 0; transition: scale .25s var(--ease); }
.index button[aria-current="true"]::after { scale: 1; }

@media (max-width: 1100px) and (min-width: 860px) { .story .about { font-size: 1.02rem; } .story ul { display: none; } }
@media (max-width: 859px) {
  .stage { --rail: 62px; }
  .world { top: 31%; }
  .work-open .lead { font-size: 1rem; line-height: 1.5; }
  .story { top: auto; bottom: 14px; translate: none; left: var(--gut); right: var(--gut); width: auto; }
  .story h2 { font-size: 2.2rem; }
  .story .about { margin-top: 8px; font-size: 1rem; }
  .story ul { display: none; }
  .story .btn { margin-top: 14px; }
  .bead, .floor { display: none; }
}

/* work grid: whole artwork on the same quiet mat as the walk */
#grid .card .shot { aspect-ratio: 4 / 3; background: #f1eeea; border: 1px solid #d8d1c9; box-shadow: 0 26px 40px -30px rgb(43 41 40 / .45); }
#grid .card .shot img { object-fit: contain; }
#grid .card:hover .shot { border-color: var(--ink); }
#grid .card:hover .shot img { scale: 1.03; }

/* tag chips, used on the service cards */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li { padding: 8px 16px; border-radius: 3px 14px 3px 3px; background: var(--white); font-weight: 600; font-size: .95rem; }

/* studio */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.mate { position: relative; border-radius: var(--dot); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.mate img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, scale .6s var(--ease); }
.mate:hover img { filter: none; scale: 1.05; }
/* stands in until a team member's photo is added */
.mate .initial { height: 100%; display: grid; place-items: center; padding-bottom: 18%; background: #f1eeea; font: 800 clamp(5rem, 9vw, 8rem)/1 var(--display); color: var(--blue); }
.mate figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 4px 20px 4px 4px; background: rgb(255 255 255 / .95); line-height: 1.35; }
.mate strong { display: block; font: 750 1.3rem var(--display); }
.mate span { font-size: .9rem; color: var(--muted); }
@media (hover: none) { .mate img { filter: none; } }
.photo { border-radius: 10px clamp(40px, 7vw, 100px) 10px 10px; overflow: hidden; height: clamp(240px, 52vw, 680px); }
.photo img { width: 100%; height: 116%; object-fit: cover; margin-top: -4%; }

/* stacking service cards */
.stack { display: grid; gap: 9vh; }
.slab { position: sticky; top: calc(96px + var(--i) * 14px); display: grid; grid-template-columns: .78fr 1.22fr; min-height: min(540px, 74vh); border-radius: 12px 70px 12px 12px; overflow: hidden; background: var(--white); border: 1px solid #d8d1c9; box-shadow: 0 -12px 36px -22px rgb(0 0 0 / .28); }
.slab .copy { display: grid; align-content: space-between; gap: 30px; padding: clamp(26px, 4vw, 60px); }
.slab .copy p { font-size: 1.15rem; max-width: 46ch; margin-top: 20px; }
.slab .copy p { color: var(--muted); }
.slab .tags li { box-shadow: inset 0 0 0 1.5px #cfc7be; }
/* a quiet neutral mat, so the artwork brings the only colour */
.slab .art { position: relative; min-height: 260px; background: #f1eeea; }
/* for artwork with white lettering */
.slab .art.dark { background: var(--ink); }
/* artwork is always shown whole: the pictures come in every shape, so they are framed, never cropped */
.slab .art img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 56px); max-height: calc(100% - 56px); border-radius: var(--dot); filter: drop-shadow(0 18px 22px rgb(0 0 0 / .3)); }
.slab .copy { padding-right: clamp(10px, 1.6vw, 24px); }
@media (max-width: 860px), (max-height: 640px) {
  .slab { position: static; grid-template-columns: 1fr; }
  .slab .copy { padding-right: clamp(26px, 4vw, 60px); }
  .slab .art { min-height: 0; padding: 18px; }
  .slab .art img { position: static; display: block; max-width: 100%; max-height: 80svh; }
}

.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; }
.beliefs article { position: relative; padding: 34px; border-radius: var(--dot); background: var(--white); box-shadow: 0 24px 50px -34px rgb(30 20 10 / .4); }
.beliefs h3 { font-size: 1.5rem; margin-bottom: 12px; }
.beliefs p { color: var(--muted); }

/* contact form (design only) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border-radius: 10px 60px 10px 10px; background: var(--white); box-shadow: 0 30px 60px -36px rgb(30 20 10 / .45); }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, textarea, select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfc7be; border-radius: 4px 14px 4px 4px; background: var(--paper); font-weight: 400; }
textarea { min-height: 130px; resize: vertical; }
form .btn { justify-self: start; }
.note { padding: 14px 18px; border-radius: 4px 18px 4px 4px; background: var(--mist); }
.reach { list-style: none; display: grid; gap: 14px; margin-top: 36px; }
.reach a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 20px 24px; border-radius: var(--dot); background: var(--mist); text-decoration: none; font-weight: 700; }
.reach a:hover { background: var(--ink); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
  .marquee .run { width: auto; flex-wrap: wrap; justify-content: center; }
}
