/* ARKEA — arkea.studio. The drawing set: every section is a sheet. */

@font-face { font-family: "Darker Grotesque"; font-weight: 500; font-display: swap; src: url("../fonts/DarkerGrotesque-Medium.woff") format("woff"); }
@font-face { font-family: "Darker Grotesque"; font-weight: 600; font-display: swap; src: url("../fonts/DarkerGrotesque-SemiBold.woff") format("woff"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/Geist-Regular.woff") format("woff"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/Geist-SemiBold.woff") format("woff"); }

:root {
  --paper: #ECECEA;
  --canvas: #DFDFDD;
  --ink: #161615;
  --orange: #E2622B;
  --travertine: #D8CCB9;
  --charcoal: #3A3A38;
  --line: #4A4A47;
  --muted: #5E5E5A;

  --display: "Darker Grotesque", "Geist", sans-serif;
  --text: "Geist", system-ui, sans-serif;

  --m: clamp(16px, 2.2vw, 32px);          /* the one pair of outer margins */
  --gap: clamp(12px, 1.6vw, 24px);         /* grid gutter */
  --section: clamp(96px, 13vw, 200px);     /* space between sheets */

  --t-display: clamp(48px, 11.6vw, 190px); /* the H1 */
  --t-h2: clamp(44px, 7.2vw, 124px);
  --t-h3: clamp(28px, 2.7vw, 42px);
  --t-lead: clamp(19px, 1.55vw, 24px);
  --t-body: 17px;
  --t-label: 11.5px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper) url("../img/grain.png");
  background-blend-mode: soft-light;
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Numerals are Darker Grotesque 600, set 118% (brand). */
.n { font-family: var(--display); font-weight: 600; font-size: 1.18em; line-height: 1; letter-spacing: 0; }

.label {
  font: 400 var(--t-label)/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.label .n { font-size: 1.35em; letter-spacing: .02em; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.display {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.012em;
}

.skip { position: absolute; left: var(--m); top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Buttons: square, one fill. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  font: 600 15px/1 var(--text); text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--orange); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Loading screen: the lynx runs on the Paper ground ---------- */
.loader { display: none; }
.js:not(.seen) .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--paper) url("../img/grain.png"); background-blend-mode: soft-light;
  transition: opacity .5s var(--ease), visibility 0s .5s;
  animation: loader-failsafe .5s 4.5s forwards;   /* never stays up, even if a script fails */
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__lynx { width: clamp(84px, 7vw, 112px); aspect-ratio: 320 / 204; overflow: hidden; }
.loader__lynx img { width: 800%; max-width: none; height: 100%; animation: lynx-run .72s steps(8) infinite; }
@keyframes lynx-run { to { transform: translateX(-100%); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Header: a plain bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding-inline: var(--m);
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 22, 21, .14);
}
.bar__logo { display: block; flex: none; padding-block: 8px; }   /* clear space: half the logo's height */
.bar__logo img { width: auto; height: 17px; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav a, .lang a { text-decoration: none; font-size: 14px; }
.bar__nav a { position: relative; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.bar__nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 6px; font-size: 14px; color: var(--muted); }
.lang [aria-current] { color: var(--ink); font-weight: 600; }
.lang a:hover { color: var(--ink); }
.bar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Sheet strip: the drawing set's running head ---------- */
.sheet { display: flex; align-items: baseline; gap: 18px; padding-block: 14px; border-top: 1px solid currentColor; }
.sheet__code { min-width: 56px; }
.sheet__end { margin-left: auto; }
.sheet > * { opacity: .78; }
.field--orange .sheet > * { opacity: 1; }   /* full Ink on Orange: small labels need the contrast */

/* ---------- A-00 Hero ---------- */
.hero { padding-top: clamp(84px, 11vw, 190px); }
.hero h1 { font-size: clamp(40px, 6.6vw, 116px); margin-bottom: clamp(24px, 2.6vw, 44px); }   /* small, sitting low over the picture (Eron, 25.10) */
.hero h1 span { display: block; }
.js .hero h1 span { transform: translateY(.12em); }
.js.ready .hero h1 span { transform: none; animation: lift 1s var(--ease) both; }
.js.ready .hero h1 span + span { animation-delay: .08s; }
@keyframes lift { from { transform: translateY(.12em); } }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font-size: var(--t-lead); line-height: 1.45; max-width: 30ch; }
.hero__body { align-items: stretch; }
.hero__media { grid-column: 1 / span 8; position: relative; overflow: hidden; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__side { grid-column: 9 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }

/* The title block: real facts, set like the corner of a drawing sheet. */
.tblock { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); font-size: 13px; }
.tblock dt, .tblock dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(22, 22, 21, .22); }
.tblock dt { padding-right: 22px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: var(--t-label); padding-top: 11px; }
.tblock dd { text-align: right; }
.cap { margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }

/* ---------- A-01 Work: the title holds while the plates pass ---------- */
.work { margin-top: var(--section); }
.work__head { grid-column: 1 / span 4; }
.work__pin { position: sticky; top: 96px; padding-bottom: 40px; }
.work__pin h2 { font-size: clamp(40px, 4.9vw, 84px); }
.work__pin h2 .n { white-space: nowrap; }
.work__pin h2 .n { font-size: 1em; font-weight: 500; }
.work__index { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.work__index li { border-bottom: 1px solid rgba(22, 22, 21, .22); }
.work__index a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  text-decoration: none; font-size: 15px;
  transition: padding-left .3s var(--ease), color .2s;
}
.work__index a:hover, .work__index a.is-current { padding-left: 14px; }
.work__index a { position: relative; }
.work__index a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--orange); opacity: 0; transform: scale(.5); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.work__index a:hover::before, .work__index a.is-current::before { opacity: 1; transform: none; }
.work__index span:last-child { color: var(--muted); }
.work__plates { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: clamp(56px, 7vw, 110px); }

.plate { margin: 0; scroll-margin-top: 96px; }
.plate:nth-child(odd of .plate--half) { }
.plate--half:nth-child(3), .plate--half:nth-child(5) { margin-top: clamp(0px, 9vw, 150px); }
.plate__img { overflow: hidden; background: var(--canvas); }
.plate__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.plate:hover .plate__img img { transform: scale(1.025); }
.plate__name { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; font: 500 var(--t-h3)/1 var(--display); text-transform: uppercase; }
.tag { font: 400 var(--t-label)/1 var(--text); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--orange); padding: 6px 9px 5px; color: var(--ink); }
.plate__facts { margin-top: 10px; color: var(--muted); }
.plate__text { margin-top: 12px; max-width: 46ch; }
.swatches { display: flex; gap: 0; margin-top: 18px; }
.swatches span { flex: 1; height: 30px; position: relative; }
.swatches span::after {
  content: attr(data-hex); position: absolute; left: 0; top: calc(100% + 6px);
  font: 600 11px/1 var(--display); letter-spacing: .04em; color: var(--muted);
}

.plate--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: start; }
.plate--wide .plate__img img { aspect-ratio: 5 / 4; }
.plate--wide .plate__dwg { padding-top: clamp(8px, 1vw, 16px); }

.plate--wide .plate__dwg .label { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); }
.plate--wide .plate__meta { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); }
.plate--wide .plate__meta > div:first-child .plate__name { margin-top: 0; }

/* Drawings */
.dwg-slot { position: relative; }
.dwg-slot > img, .dwg-slot > svg { width: 100%; height: auto; }
.js .dwg-slot > img { visibility: hidden; }                 /* no flash before the drawing swaps in */
.js .dwg-slot.dwg-failed > img { visibility: visible; }
.dwg text { font-family: var(--text); }
/* Drawings sit straight on the page: their white fills take the Paper ground. */
.dwg-slot .dwg [fill="#ffffff"], .dwg-slot .dwg [fill="#FFFFFF"] { fill: var(--paper); }

/* ---------- A-02 The drawing, and the live piece ---------- */
.drawing { margin-top: var(--section); }
.drawing__h { grid-column: 1 / -1; font-size: var(--t-h2); margin-bottom: clamp(32px, 4vw, 64px); }
.drawing__copy { grid-column: 1 / span 4; align-self: start; display: flex; flex-direction: column; gap: 28px; }
.drawing__copy p { max-width: 44ch; font-size: var(--t-lead); line-height: 1.5; }
.drawing__live { grid-column: 6 / -1; }

.wipe { position: relative; margin-left: auto; max-width: calc((100svh - 170px) * 1649 / 2048); }
.wipe__stage {
  position: relative; aspect-ratio: 1649 / 2048;
  overflow: hidden; background: var(--canvas); touch-action: pan-y; cursor: ew-resize; user-select: none;
}
.wipe__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wipe__line {
  position: absolute; inset: 0; background: var(--paper) url("../img/grain.png"); background-blend-mode: soft-light;
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
}
.wipe__handle {
  position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 0; pointer-events: none;
  border-left: 1px solid var(--orange);
}
.wipe__handle::after {
  content: ""; position: absolute; top: 50%; left: -22px; width: 44px; height: 44px; margin-top: -22px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M18 15l-7 7 7 7M26 15l7 7-7 7' fill='none' stroke='%23161615' stroke-width='1.6'/%3E%3C/svg%3E") center / 44px no-repeat;
  transition: transform .25s var(--ease);
}
.wipe__stage:hover .wipe__handle::after, .wipe.is-drag .wipe__handle::after { transform: scale(1.1); }
.wipe__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wipe__range:focus-visible + .wipe__handle::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.wipe__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: 14px; }
.wipe__tabs { display: flex; gap: 4px; }
.wipe__tabs button {
  font: 400 14px/1 var(--text); color: var(--ink); background: transparent; border: 1px solid rgba(22, 22, 21, .3);
  padding: 10px 14px; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.wipe__tabs button:hover { border-color: var(--ink); }
.wipe__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wipe__hint { color: var(--muted); }
html:not(.js) .wipe__stage { aspect-ratio: auto; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; cursor: auto; }
html:not(.js) .wipe__stage img, html:not(.js) .wipe__line { position: static; clip-path: none; }
html:not(.js) .wipe__handle, html:not(.js) .wipe__range, html:not(.js) .wipe__tabs { display: none; }

/* ---------- A-03 Studio: one hand, on Ink ---------- */
.field { margin-top: var(--section); padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 140px); }
.field--ink { background: var(--ink) url("../img/grain.png"); background-blend-mode: soft-light; color: var(--paper); }
.field--trav { background: var(--travertine) url("../img/grain-soft.png"); background-blend-mode: soft-light; }
.field--orange { background: var(--orange) url("../img/grain-soft.png"); background-blend-mode: soft-light; }
.field + .field { margin-top: 0; }

.studio h2 { grid-column: 1 / span 9; font-size: var(--t-h2); margin-top: clamp(48px, 6vw, 96px); }
.studio__text { grid-column: 1 / span 5; margin-top: 36px; font-size: var(--t-lead); line-height: 1.5; max-width: 40ch; }
.studio__pair { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(48px, 6vw, 90px); align-items: end; }
.studio__pair figure { margin: 0; }
.studio__pair .label { display: flex; justify-content: space-between; margin-top: 12px; opacity: .72; }
.studio__dwg { border: 1px solid rgba(236, 236, 234, .22); padding: clamp(18px, 2.4vw, 36px); }
.studio__pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* A drawing printed in Paper on the Ink field (colouring a real drawing, never redrawing it). */
.on-ink .dwg [stroke]:not([stroke="none"]) { stroke: rgba(236, 236, 234, .78); }
.on-ink .dwg [fill="#3A3A38"], .on-ink .dwg [fill="#2C2C2A"] { fill: var(--paper); }
.on-ink .dwg [fill="#4A4A47"], .on-ink .dwg [fill="#5E5E5A"], .on-ink .dwg [fill="#8E8E8A"] { fill: rgba(236, 236, 234, .8); }
.on-ink .dwg [fill="#ffffff"], .on-ink .dwg [fill="#FFFFFF"] { fill: none; }
.on-ink .dwg [stroke="#E2622B"] { stroke: var(--orange); }
.on-ink .dwg [fill="#E2622B"] { fill: var(--orange); }

/* ---------- A-04 Services, on Travertine ---------- */
.services h2 span { display: block; }
.services h2 { grid-column: 1 / span 4; font-size: var(--t-h2); margin-top: clamp(40px, 5vw, 80px); align-self: start; }
.services__list { grid-column: 6 / -1; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: s; }
.services__list li { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--gap); padding: clamp(18px, 2vw, 30px) 0; border-bottom: 1px solid rgba(22, 22, 21, .28); }
.services__list h3 { font: 500 var(--t-h3)/1 var(--display); text-transform: uppercase; }
.services__list p { max-width: 42ch; }

/* ---------- A-05 Guarantees ---------- */
.guarantees { margin-top: var(--section); }
.guarantees h2 { grid-column: 1 / -1; font-size: var(--t-h2); }
.guarantees__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.guarantees__list li { border-top: 2px solid var(--ink); padding-top: 18px; }
.guarantees__list h3 { font: 500 clamp(56px, 7.4vw, 128px)/.9 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.guarantees__list p { max-width: 34ch; font-size: var(--t-lead); line-height: 1.45; }

/* ---------- A-06 How a room gets made ---------- */
.process { margin-top: var(--section); }
.process { container-type: inline-size; }
.process h2 { grid-column: 1 / -1; font-size: min(var(--t-h2), 9.4cqi); white-space: nowrap; }   /* one line: the line is ~10.25 × its size */
.process__intro { grid-column: 9 / -1; align-self: end; color: var(--muted); }
.process__steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.step__pic { aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.step__pic img { width: 100%; height: 100%; object-fit: cover; }
.step__pic .dwg-slot { width: 100%; }
.step__head { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ink); }
.step__head .n { font-size: 15px; color: var(--orange); }
.step__head h3 { font: 500 var(--t-h3)/1 var(--display); text-transform: uppercase; }
.step p { margin-top: 10px; max-width: 32ch; }
.step__cap { margin-top: 8px; color: var(--muted); }

/* ---------- A-07 Contact, the one Orange field ---------- */
.contact { margin-top: var(--section); }
.contact h2 { grid-column: 1 / -1; font-size: clamp(48px, 9vw, 160px); margin-top: clamp(48px, 6vw, 96px); }
.contact__text { grid-column: 1 / span 5; margin-top: 36px; font-size: var(--t-lead); line-height: 1.5; max-width: 38ch; }
.contact__lines { grid-column: 7 / -1; margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.contact__lines dt, .contact__lines dd { margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(22, 22, 21, .3); }
.contact__lines dt { padding-right: 28px; padding-top: 22px; }
.contact__lines dd { font-size: clamp(20px, 2vw, 30px); line-height: 1.2; }
.contact__lines a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .3s var(--ease); }
.contact__lines a:hover { text-decoration-color: currentColor; }
.contact__reach { grid-column: 7 / -1; margin-top: 18px; }
.contact .btn { margin-top: 32px; }
.contact .btn:hover { background: var(--paper); color: var(--ink); }

/* The stamp: one colour, no ground. The H1 in a ring, inked with grain, turning slowly around a still lynx. */
.contact .grid { position: relative; }
.stamp {
  grid-column: 10 / -1; grid-row: 1; justify-self: end; align-self: end;
  position: relative; width: clamp(150px, 15vw, 224px); aspect-ratio: 1;
  color: var(--paper);   /* one colour: on the Orange field the whole stamp is Paper */
  border-radius: 50%; overflow: hidden;   /* the turning square never pokes past the page edge */
}
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: stamp-turn 36s linear infinite; }
.stamp__text { font: 600 19px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; fill: currentColor; }
@keyframes stamp-turn { to { transform: rotate(360deg); } }
.contact h2 { grid-row: 1; grid-column: 1 / span 9; }
.contact__text { grid-row: 2; }
.contact__lines { grid-row: 2; }

/* The lynx runs along the Studio sheet's rule as the page scrolls. */
.sheet--run { position: relative; }
.run { position: absolute; left: 0; right: 0; bottom: 100%; height: 0; pointer-events: none; }
.run__lynx { position: absolute; left: 0; bottom: -1px; width: clamp(72px, 7vw, 104px); aspect-ratio: 320 / 204; overflow: hidden; transform: translateX(var(--run-x, 0px)); }
.run__lynx img { width: 800%; max-width: none; height: 100%; transform: translateX(calc(var(--run-f, 0) * -12.5%)); }
.studio { padding-top: clamp(96px, 9vw, 140px); }

/* ---------- Footer: the logo at full width ---------- */
.foot { padding-block: 0 24px; }
.foot__logo { padding-block: 10.4%; }           /* clear space: half the logo's height (291 / 1400 / 2 of its width) */
.foot__logo img { width: 100%; }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 14px; }
.foot__row .lang { margin-left: auto; }

/* ---------- Motion: entrances, staggered; content is never hidden without script ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .dwg.drawing-in .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .dwg.drawn .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }
.js .dwg.drawing-in .fillin { opacity: 0; }
.js .dwg.drawn .fillin { opacity: 1; transition: opacity 1.2s .9s var(--ease); }
.js .dwg.dwg-fade { opacity: 0; transform: translateY(14px); }
.js .dwg.dwg-fade.drawn { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero__media img { transform-origin: 50% 60%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .hero h1 span, .js.ready .hero h1 span { transform: none; animation: none; }
  .loader__lynx img { animation-duration: 1.6s; }
  .js .dwg.drawing-in .ln { stroke-dasharray: none; }
  .js .dwg.drawing-in .fillin { opacity: 1; }
  .js .dwg.dwg-fade { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
  .stamp__ring { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero__media { grid-column: 1 / -1; order: 2; }
  .hero__side { grid-column: 1 / -1; order: 1; margin-bottom: 32px; }
  .hero__side .tblock { display: none; }
  .work__head { grid-column: 1 / -1; }
  .work__pin { position: static; padding-bottom: 32px; }
  .work__index { display: none; }
  .work__plates { grid-column: 1 / -1; }
  .drawing__copy { grid-column: 1 / -1; }
  .drawing__live { grid-column: 1 / -1; margin-top: 40px; }
  .wipe { max-width: none; }
  .studio h2, .studio__text { grid-column: 1 / -1; }
  .services h2, .services__list { grid-column: 1 / -1; }
  .process h2, .process__intro { grid-column: 1 / -1; }
  .process__intro { margin-top: 20px; }
  .process__steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .contact__text, .contact__lines, .contact__reach { grid-column: 1 / -1; }
  .contact__lines { grid-row: 3; }
  .contact__reach { grid-row: 4; }
  .contact h2 { grid-column: 1 / -1; }
  .stamp { grid-column: 1 / -1; grid-row: 5; justify-self: end; margin-top: 40px; }
}

/* ---------- Phone: its own composition ---------- */
@media (max-width: 680px) {
  :root { --t-body: 16px; }
  .bar { gap: 14px; }
  .bar__nav { display: none; }
  .lang { margin-left: auto; }
  .bar .btn { padding: 0 12px; }
  .bar .btn span { display: none; }
  .hero__media img { aspect-ratio: 4 / 5; }
  .hero h1 { font-size: 10.4vw; }
  .sheet .sheet__end { display: none; }
  .work__plates { grid-template-columns: 1fr; }
  .plate--half:nth-child(3), .plate--half:nth-child(5) { margin-top: 0; }
  .plate--wide { grid-template-columns: 1fr; }
  .plate--wide .plate__meta { grid-template-columns: 1fr; }
  .studio__pair { grid-template-columns: 1fr; }
  .services__list li { grid-template-columns: 1fr; gap: 10px; }
  .guarantees__list { grid-template-columns: 1fr; row-gap: 40px; }
  .process h2 { font-size: var(--t-h2); white-space: normal; }
  .process__steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step__head h3 { font-size: 24px; }
  .contact__lines dd { font-size: 20px; }
  .foot__row .lang { margin-left: 0; }
}

/* ---------- 404: a missing sheet, the lynx running off it ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; }
.lost__main { flex: 1; display: flex; flex-direction: column; padding-top: clamp(20px, 3vw, 44px); }
.lost__h { font-size: clamp(48px, 9.4vw, 160px); margin-top: clamp(40px, 6vw, 96px); max-width: 12ch; }
.lost__text { margin-top: 32px; font-size: var(--t-lead); line-height: 1.5; max-width: 38ch; }
.lost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.lost__link { text-decoration: underline; text-underline-offset: 4px; }
.lost__link:hover { color: var(--orange); }
.lost__ground { position: relative; margin-top: auto; padding-top: clamp(72px, 10vw, 140px); border-bottom: 1px solid var(--ink); overflow: hidden; }
.lost__lynx { position: absolute; left: 0; bottom: -1px; width: clamp(84px, 8vw, 120px); aspect-ratio: 320 / 204; animation: lost-cross 7s linear infinite; }
.lost__frames { width: 100%; height: 100%; overflow: hidden; }
.lost__frames img { width: 800%; max-width: none; height: 100%; animation: lynx-run .72s steps(8) infinite; }
@keyframes lost-cross { from { transform: translateX(-100%); } to { transform: translateX(calc(100vw)); } }
.lost__foot { padding-top: 24px; }
.lost__foot .foot__row { border-top: 0; padding-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .lost__lynx { animation: none; left: auto; right: 0; }
  .lost__frames img { animation: none; }
}
.lost .lang { margin-left: auto; }
@media (max-width: 680px) { .lost .bar .btn span { display: none; } }
