/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --panel: #f2f2f2;      /* grey behind the ink reveal and theme squares */
  --ghost: #e4e4e4;      /* corner words */
  --muted: #7a7a7a;
  --line: #e2e2e2;
  --menu-1: #cbcccd;
  --menu-2: #d8d9da;
  --menu-3: #e6e6e6;
  --gutter: 16px;
  --col: calc((100vw - var(--gutter) * 9) / 8);
  --ease: cubic-bezier(0.65, 0, 0.2, 1);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.skip-link { position: fixed; left: var(--gutter); top: -100px; z-index: 300; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip-link:focus { top: var(--gutter); }

/* ============ Type ============ */
.h1 {
  font-size: clamp(2.6rem, 6.15vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.p1 { font-size: 14px; line-height: 1.1; font-weight: 500; }
.muted { color: var(--muted); }
.indent { display: inline-block; padding-left: calc(var(--col) * 0.75); }

/* Links with an underline that wipes in on hover */
.u-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.08em no-repeat; transition: background-size 0.5s var(--ease); }
.u-link:hover, .u-link:focus-visible { background-size: 100% 0.08em; }
.all-works.u-link { background-size: 100% 0.06em; }
.all-works.u-link:hover { background-size: 0 0.06em; background-position: 100% 100%; }

/* Text that rolls up to a copy of itself on hover */
.roll { display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll > span { display: inline-block; position: relative; transition: transform 0.5s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span, button:focus-visible .roll > span { transform: translateY(-100%); }

/* ============ 8-column grid ============ */
.grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--gutter); }
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; } .c4 { grid-column: 4; }
.c5 { grid-column: 5; } .c7 { grid-column: 7; } .c8 { grid-column: 8; }
.c3-8 { grid-column: 3 / 9; } .c4-8 { grid-column: 4 / 9; } .c4-6 { grid-column: 4 / 7; }
.c3-6 { grid-column: 3 / 7; } .c7-8 { grid-column: 7 / 9; }
/* The thin vertical line runs along the left edge of column 4 */
.rule { position: relative; }
.rule::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -1 - 1px); width: 1px; background: var(--fg); transform-origin: top; transform: scaleY(var(--rule, 1)); }

/* ============ Nav + menu ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none; }
.nav-home { position: absolute; left: var(--gutter); top: 20px; width: 16px; height: 16px; background: var(--panel); pointer-events: auto; transition: background 0.3s; }
.nav-home:hover { background: var(--fg); }
.nav-button {
  position: absolute; right: var(--gutter); top: 16px; z-index: 3; pointer-events: auto;
  background: var(--fg); color: var(--bg); border-radius: 99px; padding: 4px 8px 5px;
  font-size: 14px; font-weight: 600; line-height: 1.1;
}
.menu { position: absolute; top: 0; right: 0; width: calc(var(--col) * 4 + var(--gutter) * 4); pointer-events: auto; z-index: 2; }
.menu[hidden] { display: none; }
.menu-links { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
.menu-link { display: flex; flex-direction: column; justify-content: space-between; padding: var(--gutter); transform-origin: top; color: #000; }
.menu-link:nth-child(1) { background: var(--menu-1); height: 360px; }
.menu-link:nth-child(2) { background: var(--menu-2); height: 280px; }
.menu-link:nth-child(3) { background: var(--menu-3); height: 216px; }
.menu-num { width: 23px; height: 23px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.menu-link[aria-current="page"] .menu-num { background: #000; color: #fff; }
.menu-label { font-size: 32px; letter-spacing: -0.04em; font-weight: 600; }
.menu-link:hover .menu-label { transform: translateX(6px); }
.menu-label { transition: transform 0.4s var(--ease); }

/* ============ Intro ============ */
.intro { position: relative; }
.ink-block { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; background: var(--panel); overflow: hidden; z-index: 0; }
.ink-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Without the ink effect the cover is solid so the page looks like the resting state */
.ink-block:not(.is-live) .ink-canvas { background: var(--bg); }
/* The hidden word wall: rows of packed, overlapping words drifting sideways.
   Outlined in grey so it reads as a layer *behind* the solid black headline, never part of it. */
.word-wall {
  position: absolute; inset: -4vh 0; display: flex; flex-direction: column; justify-content: center;
  color: transparent; -webkit-text-stroke: 1.5px var(--muted);
  font-weight: 600; letter-spacing: -0.05em; white-space: nowrap; user-select: none;
}
.word-row .w-s { -webkit-text-stroke: 0; color: var(--muted); }
.word-row { display: flex; align-items: baseline; width: max-content; font-size: 5.6vw; will-change: transform; }
.word-row + .word-row { margin-top: -0.05em; }
.word-row span { display: inline-block; line-height: 0.78; padding-right: 0.22em; }
.word-row .w-xl { font-size: 9vw; }
.word-row .w-l  { font-size: 5.6vw; }
.word-row .w-m  { font-size: 3.1vw; font-weight: 500; -webkit-text-stroke: 0; color: var(--muted); }
.word-row .w-s  { font-size: 1.6vw; font-weight: 500; letter-spacing: -0.02em; align-self: center; }

.intro-content { position: relative; z-index: 1; pointer-events: none; }
.intro-content a, .intro-content button { pointer-events: auto; }
.hero-top { padding-top: 16px; min-height: min(602px, 100vh); }
.hero-left { display: flex; flex-direction: column; justify-content: space-between; min-height: 586px; }
.logo-house { width: min(100%, 150px); height: auto; display: block; overflow: visible; }
.logo-house-shape, .dog-ink { fill: var(--fg); }
.dog-fill { fill: var(--bg); }
.logo-dog { cursor: pointer; pointer-events: auto; transform-box: fill-box; transform-origin: 30% 90%; }

/* The dog once it has hopped out of the house and follows you down the page */
.dog-buddy {
  position: fixed; left: 0; top: 0; z-index: 95; width: 118px; padding: 0;
  display: none; cursor: pointer; transform-origin: 30% 90%; will-change: transform;
}
.dog-buddy.is-out { display: block; }
.dog-buddy svg { display: block; width: 100%; height: auto; overflow: visible; }
.woof {
  position: absolute; left: 70%; top: -18px; padding: 4px 9px 5px; border-radius: 99px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap;
  pointer-events: none; opacity: 0;
}
.hero-right { display: flex; flex-direction: column; justify-content: space-between; }
.hero-mid .rule { padding-top: 20px; }
.toy-row { padding-top: 120px; align-items: start; }
.toy-cell { display: block; }
.toy {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 1;
  padding: 9% 9% 7%; background: var(--panel); color: var(--fg); cursor: pointer; transition: background-color 0.4s var(--ease);
}
.toy.is-tidy { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.toy-art { flex: 1; min-height: 0; width: 100%; overflow: visible; fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toy-art .fill { fill: var(--fg); stroke: none; }
.toy-art .soft { opacity: 0.22; }
.toy-art text { stroke: none; font-family: var(--font); font-weight: 600; }
.toy-art .badge { fill: var(--bg); font-size: 7.5px; letter-spacing: -0.02em; }
.toy-art .scrawl { fill: var(--fg); font-size: 15px; }
/* the mess fidgets; the phone rings */
.toy-mess { transform-box: view-box; transform-origin: 50% 50%; animation: fidget 0.5s steps(2, jump-none) infinite; transition: opacity 0.3s, transform 0.4s var(--ease); }
.toy[data-toy="phone"] .toy-mess { animation: ring 0.18s steps(2, jump-none) infinite; }
@keyframes fidget { 0% { transform: rotate(-1.5deg) translate(-0.5px, 0.5px); } 100% { transform: rotate(1.5deg) translate(0.5px, -0.5px); } }
@keyframes ring { 0% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
.toy.is-tidy .toy-mess { opacity: 0; transform: scale(0.55) rotate(-25deg); animation: none; }
/* the tidy version draws itself in */
.toy-tidy path, .toy-tidy rect:not(.fill) { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 0.6s var(--ease) 0.15s; }
.toy-tidy .fill, .check-badge { opacity: 0; transition: opacity 0.3s 0.5s, transform 0.4s var(--ease) 0.5s; }
.check-badge { transform-box: fill-box; transform-origin: center; transform: scale(0.4); }
.check-badge circle { fill: var(--fg); stroke: none; }
.check-badge path { stroke: var(--bg); stroke-width: 2.4; }
.toy.is-tidy .toy-tidy path, .toy.is-tidy .toy-tidy rect { stroke-dashoffset: 0; }
.toy.is-tidy .toy-tidy .fill, .toy.is-tidy .check-badge { opacity: 1; transform: none; }
.toy-label { position: relative; display: grid; font-size: 12px; font-weight: 600; text-align: left; line-height: 1.15; }
.toy-label > span { grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s var(--ease); }
.toy-label-tidy { opacity: 0; transform: translateY(6px); }
.toy.is-tidy .toy-label-mess { opacity: 0; transform: translateY(-6px); }
.toy.is-tidy .toy-label-tidy { opacity: 1; transform: none; }
.hero-copy .rule { padding-top: 22px; padding-bottom: 120px; }
.hero-motto { row-gap: 0; }
.hero-motto .c2 { grid-row: 1; }
.hero-motto .c4-8 { grid-row: 1; }
.hero-end .rule { padding-top: 260px; padding-bottom: 8px; }

/* ============ Featured (pinned) ============ */
/* ============ What we build: the floor plan ============ */
.floor { position: relative; }
/* Bottom padding keeps the plan clear of the corner words */
.floor-pin { height: 100vh; display: flex; flex-direction: column; padding: 80px 0 120px; box-sizing: border-box; }
.floor-head { align-items: end; row-gap: 20px; margin-bottom: 32px; }
.floor-head .h1 { grid-row: 1; }
.floor-intro { grid-row: 2; grid-column: 3 / 6; }
.floor-count { grid-row: 2; justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }
.floor-body { flex: 1; min-height: 0; }
/* the office floor plan */
.office { min-height: 0; align-self: start; }
.plan { display: block; width: 100%; height: auto; max-height: 100%; overflow: visible; font-family: var(--font); }
.plan .outer { fill: none; stroke: var(--fg); stroke-width: 8; }
.plan .wall { fill: none; stroke: var(--fg); stroke-width: 4; }
.plan .hall { fill: var(--bg); }
.plan .hall-label { font-size: 12px; fill: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; }
.plan .swing { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.plan .leaf { fill: none; stroke: var(--fg); stroke-width: 2; }
.plan .f { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.plan .f.thin { stroke-width: 1; }
.plan .plant circle { fill: var(--bg); }
.o-room { cursor: pointer; outline: none; }
.o-room .floor-fill { fill: var(--panel); transition: fill 0.6s var(--ease); }
.o-room.is-done .floor-fill { fill: var(--bg); }
.o-room .focus-ring { fill: none; stroke: var(--fg); stroke-width: 3; opacity: 0; transition: opacity 0.3s; }
.o-room.is-current .focus-ring, .o-room:focus-visible .focus-ring { opacity: 1; }
.o-room:hover .floor-fill { fill: var(--line); }
.o-room.is-done:hover .floor-fill { fill: var(--bg); }
.o-room .r-name { font-size: 15px; font-weight: 600; fill: var(--fg); letter-spacing: -0.02em; }
.o-room .r-num { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.o-room .r-check { opacity: 0; transform-box: fill-box; transition: opacity 0.4s 0.5s; }
.o-room .r-check circle { fill: var(--fg); }
.o-room .r-check path { fill: none; stroke: var(--bg); stroke-width: 2; }
.o-room.is-done .r-check { opacity: 1; }
/* paper piled on the desks; swept out of the door when the room is automated */
.sheet {
  fill: var(--bg); stroke: var(--fg); stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center; transform: rotate(var(--rot));
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.3, 1) var(--delay), opacity 0.4s ease-in calc(var(--delay) + 0.35s);
}
.o-room.is-done .sheet { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * 4)) scale(0.3); opacity: 0; }

/* the side panel: the selected room's busywork, then what replaced it */
.inspector { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0 4px; min-width: 0; }
.ins-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ins-count b { color: var(--fg); }
.ins-name { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.ins-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; }
.ins-tasks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ins-task { display: flex; align-items: center; gap: 8px; font-size: 14px; transition: color 0.3s; }
.ins-task i { width: 13px; height: 13px; border: 1px solid var(--fg); border-radius: 3px; flex: none; position: relative; transition: background 0.2s; }
.ins-task.is-done { color: var(--muted); text-decoration: line-through; }
.ins-task.is-done i { background: var(--fg); }
.ins-task.is-done i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ins-after { display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.inspector.is-done .ins-after { opacity: 1; transform: none; }
.ins-hint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.room-auto {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--fg); color: var(--bg); border-radius: 99px; padding: 5px 11px 6px; font-size: 13px; font-weight: 600;
}
.room-auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); }
.flow { list-style: none; position: relative; margin: 2px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.15; }
.flow::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--fg); }
.flow li { position: relative; }
.flow li::before { content: ""; position: absolute; left: -20px; top: 2px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--fg); background: var(--bg); }
.flow li:last-child::before { background: var(--fg); }
.flow-dot { position: absolute; left: 2px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg); opacity: 0; }
.inspector.is-done .flow-dot { opacity: 1; animation: flow-run 2.6s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes flow-run { 0% { top: 4px; } 90%, 100% { top: calc(100% - 9px); } }
.all-works-wrap { text-align: center; padding: 40px 0 320px; }

/* ============ Footer ============ */
.footer { position: relative; border-top: 1px solid var(--fg); margin: 0 var(--gutter); padding-top: 120px; }
.footer .grid { padding: 0; }
.footer-quote { row-gap: 32px; }
.clock { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr 2fr; align-items: center; justify-items: center; margin: 160px 0 120px; font-variant-numeric: tabular-nums; }
.clock-box {
  width: calc(var(--col) + var(--gutter) * 2); aspect-ratio: 3 / 4; background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.clock-box span { font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; }
.clock-box small { font-size: 11px; opacity: 0.6; text-align: center; padding: 0 6px; }
.footer-main { align-items: end; }
.hero-blurb { white-space: nowrap; }
.footer-sentence .s1 { padding-left: calc(var(--col) * 0.35); }
.footer-sentence .s2 { padding-left: calc(var(--col) * 0.85); }
.footer-sentence .s3 { padding-left: calc(var(--col) * 1.6); margin-top: 0.3em; }
.footer-sentence .s4 { padding-left: calc(var(--col) * 0.95); }
.socials { display: flex; justify-content: center; gap: 8px; margin: 120px 0 130px; }
.socials a { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--fg); display: grid; place-items: center; font-size: 13px; font-weight: 600; transition: background 0.3s, color 0.3s; }
.socials a:hover { background: var(--fg); color: var(--bg); }
/* ============ Rotary phone ============ */
.rotary-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 120px 0 110px; }
.rotary-title { color: var(--muted); }
.rotary { position: relative; width: min(400px, 86vw); aspect-ratio: 1; touch-action: none; user-select: none; }
.rotary-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.rotary-base { position: absolute; inset: 1%; border-radius: 50%; background: var(--panel); }
.rotary-label {
  position: absolute; transform: translate(-50%, -50%); width: 16.8%; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1;
}
.rotary-label small { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rotary-label svg { width: 42%; height: auto; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linejoin: round; }
.rotary-plate { position: absolute; inset: 0; will-change: transform; }
.rotary-plate > svg { display: block; width: 100%; height: 100%; }
.rotary-plate > svg path { fill: var(--fg); }
.rotary-hole {
  position: absolute; transform: translate(-50%, -50%); width: 16.8%; aspect-ratio: 1; border-radius: 50%;
  cursor: grab; transition: box-shadow 0.25s;
}
.rotary-hole:hover { box-shadow: inset 0 0 0 3px var(--bg); }
.rotary-hole:active { cursor: grabbing; }
.rotary-hole:focus-visible { outline: 2px solid var(--bg); outline-offset: -5px; }
.rotary-stop {
  position: absolute; width: 11%; height: 3.2%; border-radius: 99px; background: var(--muted);
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
}
.rotary-center {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bg); border: 1px solid var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; pointer-events: none;
}
.rotary-center span { font-size: clamp(15px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.03em; }
.rotary-center small { font-size: 10px; color: var(--muted); }
.rotary-readout { min-height: 1.2em; font-variant-numeric: tabular-nums; }
.socials:empty { display: none; }

.footer-end { display: flex; justify-content: space-between; align-items: end; padding-bottom: 16px; }
.footer-end-spacer { visibility: hidden; }

.corner-words {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 12px; z-index: 5;
  display: flex; justify-content: space-between; pointer-events: none; color: var(--ghost);
}
.corner-words span { display: inline-block; will-change: transform; }

.scrollbar { position: fixed; right: 3px; top: 0; bottom: 0; width: 6px; z-index: 120; }
.scrollbar-thumb { position: absolute; right: 0; width: 3px; height: 40px; border-radius: 3px; background: var(--ghost); cursor: grab; transition: width 0.2s, background 0.2s; }
.scrollbar:hover .scrollbar-thumb, .scrollbar-thumb.is-dragging { width: 6px; background: var(--muted); }


/* ============ Loading screen ============ */
/* While loading, only the small top texts, the growing line and the counter show. */
.goo-defs { position: absolute; width: 0; height: 0; }
.loader { position: fixed; left: var(--gutter); bottom: 4px; z-index: 260; pointer-events: none; display: none; }
.is-loading .loader, .loader.is-leaving { display: block; }
.loader-pct { display: block; font-size: clamp(4.5rem, 9.5vw, 12rem); font-weight: 600; line-height: 0.85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.is-loading, .is-loading body { overflow: hidden; }
.is-loading [data-load], .is-loading .corner-words, .is-loading .nav-button, .is-loading .nav-home, .is-loading .scrollbar { opacity: 0; }
.is-loading [data-load-rule] { --rule: 0; }
.is-loading .intro-content > :not(.hero-top) { visibility: hidden; }

/* ============ Reveal (only when JS runs) ============ */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal-text { visibility: hidden; }
.js.reduced .reveal, .js.no-anim .reveal { opacity: 1; transform: none; }
.js.reduced .reveal-text, .js.no-anim .reveal-text, .js .reveal-text.is-split { visibility: visible; }
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ============ Tablet & phone ============ */
@media (max-width: 767px) {
  .ink-block { display: none; }
  .corner-words { display: none; }
  .scrollbar { display: none; }
  :root { --col: calc((100vw - var(--gutter) * 5) / 4); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c1, .c2, .c3, .c4, .c5, .c7, .c8, .c3-8, .c4-8, .c4-6, .c3-6, .c7-8 { grid-column: auto / span 4; }
  .rule::before { display: none; }
  .hero-top { padding-top: 64px; min-height: 0; row-gap: 40px; }
  .hero-left { min-height: 0; flex-direction: row; align-items: end; }
  .logo-house { width: 96px; }
  .hero-right { gap: 80px; }
  .toy-row { grid-template-columns: repeat(5, 1fr); padding-top: 64px; }
  .toy-row > * { grid-column: auto !important; }
  .toy-label { display: none; }
  .hero-copy .rule { padding-bottom: 64px; }
  .hero-motto > * { grid-row: auto !important; }
  .hero-end .rule { padding-top: 64px; }
  .floor-pin { height: auto; padding: 64px 0 0; }
  .floor-intro, .floor-count { grid-row: auto; grid-column: auto / span 4 !important; justify-self: start; text-align: left; }
  .office { margin-bottom: 24px; }
  .plan .r-name { font-size: 22px; }
  .plan .r-num { display: none; }
  .inspector { min-height: 330px; }
  .all-works-wrap { padding: 48px 0 120px; }
  .clock { grid-template-columns: 2fr 0.6fr 1.6fr 0.6fr 2fr; margin: 80px 0; }
  .clock-box { width: 100%; }
  .footer-main { row-gap: 56px; }
  .footer-sentence p { padding-left: 0 !important; }
  .socials { margin: 64px 0; }
  .footer-end { flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
  .footer-end-spacer { visibility: visible; order: -1; width: 100%; }
  .menu { width: 100%; }
  .menu-links { grid-template-columns: 1fr; }
  .menu-link { height: 110px !important; }
}

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