/* Blacklisted Web — full-screen chapters: one giant word over the real work */
:root {
  /* Ink, paper, two concretes and one signal colour, used only where a visitor acts */
  --bg: #000000;
  --surface: #1c1c1c;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --accent: #ffd60a;
  --accent-ink: #000000;
  --field: #f3f3f1;
  --field-ink: #000000;
  --field-muted: #4d4d4d;
  --field-step: #e4e4e1;
  --scrim: rgba(0, 0, 0, .4);
  --note: #000000;

  --display: "Boska", Georgia, serif;
  --text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-h3: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
  --step-head: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  --step-display: clamp(3.25rem, 9vw, 10rem);
  --step-word: clamp(5rem, 17vw, 18.75rem);

  --gutter: clamp(16px, 2.2vw, 32px);
  --section: clamp(80px, 9vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
[id] { scroll-margin-top: 74px; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 74, 31, .2); }
h1, h2, h3, .panel-word span { text-wrap: balance; }
p, li { text-wrap: pretty; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.h-head { font: 500 var(--step-head)/1 var(--display); letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-small)/1 var(--text); text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { background: #ffe24d; }
.btn:active { background: #f0c800; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--step-body); }
.go {
  display: inline-block; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .25s;
}
.go:hover { color: var(--accent); }

/* ---------- Bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* the yellow line belongs to the bar, so it stays at the top while the page scrolls */
  border-top: 6px solid var(--accent);
  display: flex; align-items: center; gap: 28px; height: 74px; padding: 0 var(--gutter);
  background: var(--bg); color: var(--ink); transition: background-color .3s, color .3s;
}
.bar[data-ink="light"] { background: var(--field); color: var(--field-ink); }
.mark { font: 700 1.5rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.mark span { font-weight: 400; font-style: italic; margin-left: 1px; }
.bar-links { display: flex; gap: 26px; }
.bar-links a { font: 500 var(--step-small)/1 var(--text); text-decoration: none; padding: 14px 0; position: relative; }
.bar-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.bar-links a:hover::after { transform: scaleX(1); }
.bar-menu { display: none; }

/* ---------- Panel: one full screen, one giant word ---------- */
.panel { position: relative; min-height: 100svh; overflow: clip; background: var(--surface); isolation: isolate; }
.panel-bg { position: absolute; inset: 0; z-index: -1; }
.panel-bg > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.panel-bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.panel-word { position: absolute; inset: 0; margin: 0; padding: 0 var(--gutter); pointer-events: none; }
.panel-word span {
  position: sticky; top: 50%; display: block; transform: translateY(-50%);
  text-align: center; color: var(--ink);
  font: 700 var(--step-word)/0.9 var(--display); letter-spacing: -0.045em;
  transition: opacity 1s var(--ease);
}
.panel-word.w-name span { font-size: clamp(4rem, 14vw, 16rem); }
.panel-word.w-phrase span { font-size: clamp(3.5rem, 11vw, 12.5rem); }
.js .panel-word span { opacity: .15; }
.js .panel.is-in .panel-word span { opacity: 1; }

.panel-note {
  position: absolute; z-index: 2; left: var(--gutter); bottom: var(--gutter); max-width: 44ch;
  padding: 24px 28px 26px; background: var(--note); color: var(--ink); font-size: var(--step-body);
}
.pn-t { font: 500 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 8px; }
.pn-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.go-cta { color: var(--accent); border-bottom-color: currentColor; }
.go-cta:hover { color: var(--ink); }

.panel-light { background: var(--field); color: var(--field-ink); }
.panel-light .panel-bg::after { background: rgba(239, 240, 241, .5); }
.panel-light .panel-word span { color: var(--field-ink); }

/* ---------- Hero ---------- */
.hero .panel-bg::after { background: rgba(14, 15, 16, .5); }
.hero-in {
  position: relative; min-height: 100svh; padding: 120px var(--gutter) 96px;
  display: grid; justify-items: center; align-content: center; text-align: center;
}
.hero-head { font: 700 var(--step-display)/0.92 var(--display); letter-spacing: -0.045em; }
.hero-sub { margin-top: 28px; font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; }
.hero-acts { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.hero-proof { margin-top: 40px; font-size: var(--step-small); color: var(--muted); }
.hero-proof a { color: var(--ink); text-decoration: none; font-weight: 500; }
.hero-proof a:hover { text-decoration: underline; }

/* ---------- Our work ---------- */
.work { background: var(--field); color: var(--field-ink); padding: var(--section) var(--gutter); }
.work-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: end; }
/* Each project gets a full row: the site on desktop and phone, then what we built */
.projects { margin-top: clamp(64px, 7vw, 112px); display: grid; gap: clamp(112px, 12vw, 200px); }
.proj { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 112px); align-items: center; }
.proj-flip { grid-template-columns: 5fr 7fr; }
.proj-flip .proj-media { order: 2; }
.proj-media { position: relative; padding: 0 clamp(28px, 5vw, 80px) clamp(36px, 4vw, 64px) 0; }
.proj-flip .proj-media { padding: 0 0 clamp(36px, 4vw, 64px) clamp(28px, 5vw, 80px); }
.proj-phone {
  position: absolute; right: 0; bottom: 0; width: clamp(110px, 21%, 220px);
  border: 7px solid #000; border-radius: 30px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .22); /* taste-skill-ignore: the phone floats over the browser (data-ui) */
}
.proj-flip .proj-phone { right: auto; left: 0; }
.proj-phone img { width: 100%; height: auto; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }
.proj-text h3 { font: 500 var(--step-head)/1 var(--display); letter-spacing: -0.03em; }
.proj-kind { margin-top: 10px; font-size: var(--step-lead); line-height: 1.3; }
.proj-text > p:not(.proj-kind) { margin-top: 16px; color: var(--field-muted); max-width: 46ch; }
.proj-text .ticks { margin-top: 20px; }
.proj-text .go { margin-top: 28px; }
.screen { background: var(--surface); border-radius: 10px; overflow: hidden; transition: transform .5s var(--ease); }
.screen-top { display: flex; align-items: center; height: 34px; padding: 0 14px; background: #2c2e32; }
.screen-top::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #55585e; box-shadow: 14px 0 #55585e, 28px 0 #55585e; margin-right: 28px; } /* taste-skill-ignore: browser chrome dots (data-ui) */
.screen-url { margin: 0 auto; padding: 3px 16px; background: var(--bg); border-radius: 6px; font-size: var(--step-small); color: var(--muted); }
.screen video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.screen-light { background: #fff; }
.screen-light .screen-top { background: var(--field-step); }
.screen-light .screen-top::before { background: #b9bbbf; box-shadow: 14px 0 #b9bbbf, 28px 0 #b9bbbf; } /* taste-skill-ignore: browser chrome dots (data-ui) */
.screen-light .screen-url { background: #fff; color: var(--field-muted); }
.lazy-v { cursor: pointer; }
/* Cake Studio: the section holds still while the steps play through */
.story { position: relative; margin-top: clamp(96px, 10vw, 160px); height: 320svh; }
.story-pin {
  position: sticky; top: 74px; height: calc(100svh - 74px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center;
}
.story-say .lead { margin-top: 20px; }
.story-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.story-steps button {
  display: grid; grid-template-columns: 12px 1fr; column-gap: 16px; width: 100%; text-align: left;
  padding: 12px 0; border: 0; background: none; cursor: pointer; color: #8f8f8b; font: inherit;
  transition: color .35s;
}
.story-steps button::before { content: ""; grid-row: 1 / span 2; width: 12px; height: 12px; margin-top: .42em; background: #c9c9c5; transition: background-color .35s; }
.story-steps b { font: 500 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; }
.story-steps span {
  grid-column: 2; display: block; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .45s var(--ease), margin-top .45s var(--ease);
}
.story-steps .is-on span { max-height: 4em; opacity: 1; margin-top: 4px; }
.story-steps button:hover { color: var(--field-muted); }
.story-steps .is-on button { color: var(--field-ink); }
.story-steps .is-on button::before { background: var(--field-ink); }
.story-vids { position: relative; aspect-ratio: 16 / 10; background: #fbf5ec; }
.story-vids { overflow: hidden; }
.story-v {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform-origin: var(--ox, 50%) var(--oy, 50%); transition: opacity .5s var(--ease);
}
/* Start wide, push in on the part of the studio the step is about, then keep drifting closer */
.story-v.is-focus { animation: focus 7s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes focus {
  0% { transform: scale(1); }
  28% { transform: scale(var(--z, 1.5)); }
  100% { transform: scale(calc(var(--z, 1.5) * 1.07)); }
}
.story-cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 14px; align-items: baseline;
  padding: 10px 16px; background: var(--bg); color: var(--ink); font-size: var(--step-small);
}
.story-cap span:first-child { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.story-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; background: var(--field-step); }
.story-meter i { display: block; height: 6px; background: #c9c9c5; overflow: hidden; position: relative; }
.story-meter i::after { content: ""; position: absolute; inset: 0; background: var(--field-ink); transform: scaleX(var(--f, 0)); transform-origin: left; }
.story-v.is-on { opacity: 1; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--field-ink); }
.work .pn-links { margin-top: 28px; }
.work .go, .studio .go { border-bottom-color: var(--field-ink); }
.work .go-cta { color: var(--field-ink); }
.work .go:hover { color: var(--field-muted); }

/* ---------- Offer details ---------- */
.offer { background: var(--field); color: var(--field-ink); padding: var(--section) var(--gutter); }
.offer-in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.offer-say .lead { margin-top: 24px; }
.rs { font-family: var(--text); font-weight: 600; font-size: .8em; letter-spacing: -0.03em; }
.star { color: inherit; text-decoration: none; margin-left: 2px; }
.plan { background: var(--field-ink); color: var(--ink); padding: clamp(28px, 3.5vw, 52px); }
.plan-name { font: 500 var(--step-lead)/1.2 var(--display); }
.plan-price { margin-top: 18px; font-size: var(--step-lead); color: var(--muted); }
.plan-price span { display: block; font: 600 var(--step-head)/1 var(--text); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; }
.plan-sub { margin-top: 6px; color: var(--muted); }
.plan .ticks { margin-top: 28px; }
.plan .ticks li::before { background: var(--accent); }
.plan-life { margin-top: 28px; padding: 20px 22px; background: var(--surface); display: grid; gap: 6px; font-size: var(--step-lead); }
.plan-life b { font-weight: 600; }
.plan .btn { margin-top: 28px; width: 100%; }
.plan .bill-fine { color: var(--muted); }
.plan .bill-fine a { color: var(--ink); }
.offer-two { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.limits li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.limits li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--field-ink); }
.offer-two .limits { margin-top: 0; background: #fff; padding: clamp(28px, 3vw, 48px); }
.offer-say .btn { margin-top: 32px; }
.bill { background: #fff; color: var(--field-ink); padding: clamp(28px, 3vw, 48px); }
.bill-title { font: 500 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 20px; }
.bill table { width: 100%; border-collapse: collapse; }
.bill th { text-align: left; font-weight: 400; padding: 14px 0; border-bottom: 1px dashed #b9bbbf; }
.bill td { text-align: right; padding: 14px 0; border-bottom: 1px dashed #b9bbbf; font-variant-numeric: tabular-nums; font-weight: 600; }
.bill tfoot th, .bill tfoot td { border-bottom: 0; padding-top: 22px; }
.bill tfoot th { font: 500 var(--step-lead)/1 var(--display); vertical-align: bottom; }
.bill tfoot td { font: 600 var(--step-head)/1 var(--text); letter-spacing: -0.03em; }
.terms { margin-top: clamp(72px, 8vw, 128px); background: #fff; padding: clamp(28px, 4vw, 64px); }
.terms h3 { font: 500 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; }
.terms-cols { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 80px); }
.terms-h { font-weight: 600; margin-bottom: 12px; }
.terms li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--field-ink); }
.terms-cols > div:last-child li::before { background: #9a9a96; }
.pn-fine { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.pn-fine a { color: var(--ink); }
.bill sup { font-size: 0.45em; vertical-align: super; margin-left: 2px; }
.bill-fine { margin-top: 14px; font-size: var(--step-small); color: var(--field-muted); }
.bill-fine a, .limits a { color: var(--field-ink); }
.limits { margin-top: 32px; padding: clamp(20px, 2.5vw, 32px); background: var(--field); }
.limits p + p, .limits ul + p { margin-top: 12px; }
.limits ul { margin-top: 12px; }
.limits p { max-width: 80ch; }
.terms-note { margin-top: 24px; font-size: var(--step-small); color: var(--field-muted); max-width: 80ch; }

/* ---------- About ---------- */
.about {
  background: var(--bg); padding: clamp(96px, 10vw, 160px) var(--gutter);
  display: grid; grid-template-columns: 2fr 10fr; gap: clamp(24px, 3vw, 48px);
}
.about-facts { display: grid; gap: 18px; align-content: start; padding-top: 6px; font-size: var(--step-small); color: var(--muted); }
.about-facts b { display: block; color: var(--ink); font-weight: 600; }
.bio { font: 400 var(--step-h3)/1.3 var(--display); letter-spacing: -0.01em; max-width: 46ch; }
.bio strong { font-weight: 700; }
.bio-soft { margin-top: 1.25em; color: var(--muted); }
.cap {
  float: left; width: 3.6em; height: 3.6em; margin: 0.12em 0.5em 0 0;
  display: grid; place-items: center; background: var(--field); color: var(--field-ink);
  font: 700 1.5em/1 var(--display); letter-spacing: -0.04em;
}

/* ---------- Let’s talk ---------- */
.talk { min-height: 86svh; }

/* ---------- Closing chapter: contact and footer ---------- */
.close { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); padding: clamp(80px, 9vw, 140px) var(--gutter) 0; }
.close-top { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 4vw, 80px); align-items: end; }
.close-top .lead { max-width: 34ch; }
.close-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 32px; }
.close-mail {
  position: relative; display: block; margin-top: clamp(40px, 5vw, 80px);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 500 calc((100vw - 2 * var(--gutter)) / 10.05)/1 var(--display); letter-spacing: -0.04em;
}
@media (min-width: 1800px) { .close-mail { font-size: calc(1760px / 10.05); } }
.close-mail .cm { display: block; padding: 0.06em 0 0.12em; }
/* White by default; turns yellow while it sits in the middle of the screen, or under the pointer */
.close-mail { transition: color .6s var(--ease); }
.close-mail.is-centre { color: var(--accent); }
@media (hover: hover) { .close-mail:hover { color: var(--accent); } }
.close-mail .at { font-family: var(--text); font-weight: 400; font-size: .78em; margin: 0 .03em; }
.close-mail .m1, .close-mail .m2 { display: inline; }
.close .foot-cols { margin-top: clamp(64px, 7vw, 112px); display: grid; grid-template-columns: 2fr 3fr 2fr 4fr; gap: 32px clamp(24px, 3vw, 56px); }
.foot-h { font-weight: 600; margin-bottom: 14px; }
.close .foot-cols ul { display: grid; gap: 2px; }
.close .foot-cols li a { display: inline-block; padding: 8px 0; }
.close .foot-cols a { text-decoration: none; color: var(--muted); transition: color .25s; overflow-wrap: anywhere; }
.close .foot-cols a:hover { color: var(--ink); }
.foot-note p:last-child { color: var(--muted); max-width: 40ch; }
.foot-note .star { color: var(--muted); }
.foot-legal { margin-top: clamp(56px, 6vw, 96px); display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); color: var(--muted); }

/* ---------- WhatsApp, always one tap away ---------- */
.wa {
  position: fixed; right: calc(var(--gutter) + env(safe-area-inset-right)); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  background: #25d366; color: #000; border-radius: 999px; text-decoration: none;
  font: 600 var(--step-small)/1 var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.28); /* taste-skill-ignore: floats over the page */
  transition: transform .25s var(--ease);
}
.wa:hover { background: #2ee374; }
.wa svg { width: 24px; height: 24px; }


/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .offer-in, .work-head, .offer-two, .proj, .proj-flip { grid-template-columns: 1fr; }
  .proj-flip .proj-media { order: 0; }
  .story { height: auto; }
  .story-pin { position: static; height: auto; grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-facts { order: 2; grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Phone ---------- */
/* ---------- Tablets: the menu folds into one button ---------- */
@media (max-width: 1100px) {
  .bar-menu {
    display: block; background: none; border: 0; color: inherit; cursor: pointer;
    font: 500 var(--step-small)/1 var(--text); min-height: 44px; padding: 0 8px;
  }
  .bar-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: inherit;
    max-height: calc(100svh - 74px); overflow-y: auto; overscroll-behavior: contain;
  }
  .bar-links.is-open { display: flex; }
  .bar-links a { font-size: var(--step-lead); padding: 12px 0; }
  .bar-links a::after { display: none; }
  .bar-links .menu-cta { display: block; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .bar { height: 66px; gap: 12px; }
  .mark { font-size: 1.25rem; }
  .bar .btn { padding: 0 14px; }
  .panel-word span { top: 40%; }
  .panel-word span { font-size: 24vw; }
  .panel-word.w-name span { font-size: 17vw; }
  .panel-word.w-phrase span { font-size: 15vw; }
  .panel-note { left: 16px; right: 16px; padding: 18px 20px 20px; }
  .hero-in { padding: 110px 16px 120px; }
  .hero-head { font-size: 15vw; }
  .hero-sub { font-size: var(--step-body); }
  .terms-cols { grid-template-columns: 1fr; }
  .proj-phone { border-width: 5px; border-radius: 20px; }
  .bio { font-size: var(--step-lead); }

  .panel-note { bottom: 84px; }
  .wa { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); padding: 0 14px; min-height: 52px; }
  .wa span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .panel-word span { opacity: 1; transition: none; }
  .btn, .go, .screen, .story-v, .story-steps button, .story-steps span { transition: none; }
  .story-v.is-focus { animation: none; }
}

/* ---------- Every size: shared fixes ---------- */
.mark { min-height: 44px; display: inline-flex; align-items: center; }
.bar-links .menu-cta { display: none; color: var(--accent); }

/* Small phones: the bar keeps the name and the menu; the action moves into the menu */
@media (max-width: 400px) {
  .bar .btn { display: none; }
  .bar-menu { margin-left: auto; }
  .hero-sub { font-size: 1rem; }
}

/* Phones (portrait) and any short screen: the contact card sits below the words, never over them */
@media (max-width: 720px), (max-height: 560px) {
}

/* Phones held sideways and other short screens */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-in { padding: 88px var(--gutter) 40px; }
  .hero-head { font-size: min(9vw, 18vh); }
  .hero-sub { margin-top: 14px; font-size: var(--step-body); }
  .hero-acts { margin-top: 18px; }
  .hero-proof { margin-top: 16px; }
  .panel-word span, .panel-word.w-name span, .panel-word.w-phrase span { font-size: min(15vw, 34vh); top: 42%; }
  .panel-note { max-width: 52ch; padding: 14px 18px; font-size: var(--step-small); }
  .pn-t { font-size: var(--step-body); margin-bottom: 4px; }
}

/* Big monitors: type grows a little and content keeps a readable width */
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2400px) { html { font-size: 131.25%; } }
@media (min-width: 1800px) {
  .work, .offer, .close { padding-left: max(var(--gutter), calc((100vw - 1760px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1760px) / 2)); }
  .about { padding-left: max(var(--gutter), calc((100vw - 1760px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1760px) / 2)); }
}

/* ---------- The name across the bottom of the footer ---------- */
.foot-name span { font-weight: 400; font-style: italic; letter-spacing: -0.03em; margin-left: 0.01em; }
.foot-name {
  margin: clamp(40px, 5vw, 80px) 0 0 -0.03em; white-space: nowrap; pointer-events: none; user-select: none;
  font: 700 16.4vw/0.8 var(--display); letter-spacing: -0.05em; color: #1f1f1f;
  transform: translateY(18%);
}
@media (min-width: 1800px) { .foot-name { margin-left: calc(-0.03em - max(0px, (100vw - 1760px) / 2)); } }

/* ---------- Closing chapter on smaller screens ---------- */
@media (max-width: 1024px) {
  .close-top { grid-template-columns: 1fr; align-items: start; }
  .close-acts { justify-content: flex-start; }
  .close .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 720px) {
  .close { padding-top: 72px; }
  .close-mail { white-space: normal; font-size: 12.6vw; line-height: .98; }
  .close-mail .m1, .close-mail .m2 { display: block; }
  .close-acts .btn { width: 100%; }
}
@media (max-width: 400px) {
  .close .foot-cols { grid-template-columns: 1fr; }
}
