/* Roei Romano — site styles. Navy and gold, built from tiles: filled rectangles with 8px gaps.
   Right-to-left page: layouts use logical properties, so "start" is the right edge. */

:root {
  --paper: #F1F1EE;
  --paper-2: #E4E5E2;
  --ink: #0C2134;
  --ink-soft: #46586A;
  --navy: #0C2134;
  --navy-deep: #081826;
  --slate: #2B3947;
  --gold: #C9B772;
  --gold-soft: #E3D6A3;
  --gold-deep: #B8A55F;
  --on-dark: #F1F1EE;
  --on-dark-soft: #C1CEDB;

  --font: "Heebo", Arial, sans-serif;

  /* type steps */
  --t-hero: clamp(40px, 5vw, 72px);
  --t-1: clamp(32px, 3.4vw, 52px);
  --t-2: clamp(22px, 2vw, 30px);
  --t-3: clamp(19px, 1.4vw, 21px);
  --t-4: 18px;
  --t-5: 15px;

  --gap: 8px;
  --margin: clamp(16px, 3vw, 40px);
  --max: 1200px;
  --bar: 68px;
  --section: clamp(80px, 9vw, 136px);

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-4);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
html { scrollbar-color: var(--slate) var(--paper-2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.h-1 { font-size: var(--t-1); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.h-small { font-size: var(--t-2); font-weight: 800; line-height: 1.25; }
.lead { font-size: var(--t-3); line-height: 1.6; max-width: 62ch; margin-top: 16px; color: var(--ink-soft); }
.statement { font-size: var(--t-2); font-weight: 500; line-height: 1.5; max-width: 46ch; margin-top: 20px; }
.arrow { display: inline-block; transition: transform 220ms var(--ease-out); }
a[href^="tel:"] { white-space: nowrap; }

.link {
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: .07em;
  transition: text-decoration-thickness 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-thickness: .14em; } }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  appearance: none; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: var(--t-4);
  background: var(--gold); color: var(--navy-deep);
  min-height: 52px; padding: 0 28px;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.button:active { transform: scale(.97); }
.button-ink { background: var(--navy); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--gold-soft); }
  .button-ink:hover { background: var(--slate); }
}

/* ================= Tiles and boards ================= */
.board { display: grid; gap: var(--gap); }
.tile { display: block; text-decoration: none; min-width: 0; }
.tile-ink { background: var(--navy); color: var(--on-dark); }
.tile-slate { background: var(--slate); color: var(--on-dark); }
.tile-paper { background: var(--paper); color: var(--ink); }
.tile-paper2 { background: var(--paper-2); color: var(--ink); }
.tile-gold { background: var(--gold); color: var(--navy-deep); }
a.tile { transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover .arrow { transform: translateX(-6px); }
  a.tile-gold:hover { background: var(--gold-soft); }
  a.tile-ink:hover { background: var(--slate); }
  a.tile-slate:hover { background: #34465A; }
  a.tile-paper:hover { background: #E9EAE6; }
}

/* ================= Top bar ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: var(--gap);
  padding: var(--gap); height: var(--bar);
}
.bar-brand, .bar-cta { display: flex; align-items: center; gap: 10px; padding-inline: 22px; white-space: nowrap; }
.bar-brand img { width: 44px; height: auto; }
.bar-brand strong { font-size: 19px; font-weight: 800; }
.bar-brand span { font-size: var(--t-5); color: var(--gold); font-weight: 500; }
.bar-cta { font-weight: 700; font-size: var(--t-5); }
.bar-nav { display: flex; align-items: center; gap: 28px; padding-inline: 28px; font-size: var(--t-5); }
.bar-nav a { text-decoration: none; padding-block: 8px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .bar-nav a:hover { color: var(--gold); }
  .bar-brand:hover { background: var(--navy); }
}

/* tools and calculators: a menu that drops from the tile next to the brand */
.bar-tools { position: relative; display: flex; }
html:not(.js) .bar-tools { display: none; }
.bar-tools-toggle {
  display: flex; align-items: center; gap: 10px; padding-inline: 20px; white-space: nowrap;
  appearance: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--navy); color: var(--gold); font-weight: 700; font-size: var(--t-5);
  transition: background-color 160ms ease;
}
.bar-tools-toggle svg { width: 12px; height: 12px; fill: currentColor; transition: transform 200ms var(--ease-out); }
.bar-tools-toggle[aria-expanded="true"] { background: var(--slate); }
.bar-tools-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .bar-tools-toggle:hover { background: var(--slate); } }
.tools-menu {
  position: absolute; top: calc(100% + var(--gap)); inset-inline-start: 0; z-index: 60;
  width: 380px; display: grid; gap: 4px; padding: var(--gap); background: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.tools-menu[hidden] { display: none; }
.tools-menu a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center;
  padding: 14px 18px; background: var(--navy); color: var(--on-dark); text-decoration: none;
  transition: background-color 160ms ease;
}
.tools-menu .k { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--gold); }
.tools-menu strong { font-size: var(--t-5); font-weight: 700; }
.tools-menu .v { grid-row: 2 / span 2; grid-column: 2; color: var(--gold); transition: transform 200ms var(--ease-out); }
.tools-menu small { font-size: 13px; color: var(--on-dark-soft); }
.tools-menu a:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .tools-menu a:hover { background: var(--slate); }
  .tools-menu a:hover .v { transform: translateX(-4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .tools-menu:not([hidden]) { animation: tools-in 200ms var(--ease-out); }
  @keyframes tools-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
/* the tools tile takes room from the links: the last two go earlier than before */
@media (max-width: 1280px) { .bar-nav a:nth-child(n+5) { display: none; } }

/* ================= Hero board ================= */
.hero {
  background: var(--navy-deep);
  padding: 0 var(--gap) var(--gap);
  height: clamp(460px, 58svh, 580px);
  grid-template-columns: 8fr 4fr;
  grid-template-rows: 1fr 1fr;
}
.hero-main { grid-row: span 2; position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-deep); }
.hero-bg {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 58%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
  filter: grayscale(1) contrast(1.05); opacity: .6;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%);
          mask-image: linear-gradient(to right, #000 45%, transparent 100%);
}
.hero-copy { position: relative; max-width: 50%; }
.hero-main h1 { font-size: var(--t-hero); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; color: var(--on-dark); }
.hero-main h1 span { display: block; }
.hero-role { font-weight: 400; color: var(--gold); }
.hero-lead { margin-block: 18px 0; font-size: var(--t-3); line-height: 1.55; max-width: 40ch; color: var(--on-dark-soft); }
.hero-idea { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.hero-idea strong { font-size: var(--t-2); font-weight: 800; color: var(--gold); line-height: 1.2; }
.hero-idea > span { font-size: var(--t-4); line-height: 1.5; color: var(--on-dark-soft); max-width: 34ch; }
.hero-facts { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.hero-facts strong { font-size: var(--t-2); font-weight: 800; line-height: 1.25; max-width: 18ch; }
.hero-facts-list { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(8, 24, 38, .22); font-size: var(--t-5); font-weight: 500; }

/* ================= Approach ================= */
.approach { padding-block: var(--section); }
.lead-ink { color: var(--ink); max-width: 70ch; }
.arb { margin-block: 48px var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arb-tile { padding: 32px; display: grid; gap: 16px; align-content: start; }
.arb-tile h3 { font-size: var(--t-2); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.tile-ink.arb-tile h3 { color: var(--gold); }
.arb-row { display: grid; gap: 6px; }
.arb-label { font-size: var(--t-5); font-weight: 500; }
.arb-track { display: block; height: 40px; background: rgba(241, 241, 238, .12); }
.tile-gold .arb-track { background: rgba(8, 24, 38, .12); }
.arb-bar {
  display: flex; align-items: center; height: 100%;
  background: var(--gold); color: var(--navy-deep);
  width: calc(var(--from) * 100%);
}
.tile-gold .arb-bar { background: var(--navy); color: var(--on-dark); }
.arb-bar span { font-variant-numeric: tabular-nums; padding-inline: 14px; font-size: var(--t-5); font-weight: 800; white-space: nowrap; }
.arb-note { font-size: var(--t-5); line-height: 1.5; max-width: 44ch; margin-top: 4px; }
.tile-ink .arb-note { color: var(--on-dark-soft); }

.pillars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pillar { grid-column: span 2; padding: 32px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.pillar-wide { grid-column: span 3; }
.pillar h3 { font-size: var(--t-2); font-weight: 800; line-height: 1.2; }
.pillar p { max-width: 44ch; }
.tile-ink.pillar h3, .tile-slate.pillar h3 { color: var(--gold); }

/* ================= Clients ================= */
.clients { background: var(--gold); color: var(--navy-deep); padding-block: var(--section); }
.tabs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.tab {
  appearance: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--gold-deep); color: var(--navy-deep);
  font-weight: 700; font-size: var(--t-4); padding: 14px 24px; min-height: 52px;
  transition: background-color 160ms ease, color 160ms ease;
}
.tab[aria-selected="true"] { background: var(--navy); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: var(--gold-soft); } }
.panel { margin-top: var(--gap); grid-template-columns: minmax(0, 1fr) auto; }
.panel-text { padding: 40px; }
.panel-text h3 { font-size: var(--t-2); font-weight: 800; color: var(--gold); margin-bottom: 20px; }
.panel-text ul { display: grid; gap: 12px; }
.panel-text li { padding-inline-start: 22px; position: relative; line-height: 1.45; }
.panel-text li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; background: var(--gold); }
.panel-photo { overflow: hidden; background: var(--navy-deep); }
.panel-photo img { height: 380px; width: auto; max-width: 560px; object-fit: contain; filter: grayscale(1) contrast(1.05); }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel + .panel { margin-top: 32px; }
.panel[hidden] { display: none; }
.js .panel:not([hidden]) { animation: panel-in 360ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= How ================= */
.how { background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.how .lead { color: var(--on-dark-soft); }
.how-figure { display: block; margin-block: 56px 40px; }
.how-figure img { width: 100%; height: auto; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.how-steps h3 { font-size: var(--t-3); font-weight: 800; margin-bottom: 8px; color: var(--gold); }
.how-steps p { max-width: 34ch; }

/* ================= About board ================= */
.about { padding-block: var(--section); }
.about-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-text { grid-column: span 3; padding: 44px; }
.about-text p { margin-top: 18px; font-size: var(--t-3); line-height: 1.65; max-width: 60ch; }
.about-text h2 + p { margin-top: 24px; }
.about-pull { font-size: var(--t-2) !important; font-weight: 500; line-height: 1.45 !important; margin-top: 28px !important; max-width: 40ch !important; }
.about-photo { overflow: hidden; background: var(--slate); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
.about-step { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 180px; }
.about-year { font-size: var(--t-1); font-weight: 800; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.about-step p { font-size: var(--t-5); line-height: 1.5; }
.tile-ink .about-year { color: var(--gold); }
.tile-slate .about-year { color: var(--gold); }

/* ================= Stories ================= */
.stories { background: var(--paper-2); padding-block: var(--section); }
.story-list { margin-top: 48px; display: grid; gap: var(--gap); }
.story { background: var(--paper); padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.story h3 { font-size: var(--t-2); font-weight: 800; line-height: 1.25; }
.story p { max-width: 64ch; }

/* ================= Quote ================= */
.quote { padding-block: var(--section) 0; }
.quote-board { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.quote-text { padding: 48px; }
.quote-text p { font-size: var(--t-2); font-weight: 500; line-height: 1.45; max-width: 36ch; text-indent: -.4em; }
.quote-name { padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; }
.quote-name strong { font-size: var(--t-3); font-weight: 800; }
.quote-name span { font-size: var(--t-5); color: var(--on-dark-soft); }
.quote-name a { font-size: var(--t-5); margin-top: 10px; }

/* ================= Institutions ================= */
.partners { padding-block: var(--section) 0; }
.logo-board { margin-top: 40px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logo-tile { background: var(--paper-2); height: 120px; display: flex; align-items: center; justify-content: center; padding: 26px 22px; transition: background-color 200ms ease; }
.logo {
  display: block; width: 100%; height: 100%;
  background: var(--navy);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: background-color 200ms ease, transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .logo-tile:hover { background: var(--navy); }
  .logo-tile:hover .logo { background: var(--gold); transform: scale(1.04); }
}

/* ================= Magazine ================= */
.mag { padding-block: var(--section); }
.feature { margin-top: 40px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); text-decoration: none; }
.feature-text { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.feature-text strong { font-size: var(--t-1); font-weight: 800; line-height: 1.1; color: var(--gold); }
.feature-text > span { max-width: 46ch; color: var(--on-dark); }
.feature-src { font-size: var(--t-5); color: var(--on-dark-soft) !important; }
.feature-photo { overflow: hidden; background: var(--slate); min-height: 300px; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .feature:hover .feature-text { background: var(--slate); }
  .feature:hover .feature-photo img { transform: scale(1.03); }
  .feature:hover .arrow { transform: translateX(-6px); }
}
.mag-table { margin-top: 32px; max-width: 720px; }
.mag-table li + li { margin-top: 4px; }
.mag-table li.group { margin-top: 24px; }
.mag-table a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; align-items: baseline;
  text-decoration: none; padding: 12px 0;
}
.mag-table .k { color: var(--ink-soft); font-size: var(--t-5); }
.mag-table .t { font-weight: 500; }
.mag-table .v { color: var(--ink-soft); white-space: nowrap; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mag-table a:hover .t { text-decoration: underline; text-underline-offset: .22em; }
  .mag-table a:hover .v { transform: translateX(-4px); }
}

/* ================= FAQ ================= */
.faq { background: var(--paper-2); padding-block: var(--section); }
.faq-text { margin-top: 40px; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 22px; }
.faq-text strong { font-weight: 700; }

/* ================= Contact coupon ================= */
.contact { padding-block: var(--section); }
.coupon { display: grid; grid-template-columns: 46% 54%; background: var(--navy); color: var(--on-dark); }
.coupon-say {
  position: relative;
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  border-inline-end: 5px dotted var(--paper);
}
.coupon-say::before, .coupon-say::after {
  content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); inset-inline-end: -16.5px;
}
.coupon-say::before { top: -14px; }
.coupon-say::after { bottom: -14px; }
.coupon-say h2 { max-width: 12ch; color: var(--gold); }
.coupon-say p { color: var(--on-dark-soft); max-width: 40ch; }
.coupon-say a { color: var(--on-dark); }
.coupon-form { padding: 48px; display: grid; gap: 10px; align-content: start; }
.coupon-form input:not([type="checkbox"]), .coupon-form select {
  font: inherit; font-size: var(--t-4); color: var(--on-dark);
  background: var(--slate); border: 0; border-radius: 0;
  min-height: 52px; padding: 0 16px; width: 100%;
}
.coupon-form select { appearance: none; }
.coupon-form ::placeholder { color: var(--on-dark-soft); opacity: 1; }
.coupon-form input:focus, .coupon-form select:focus { outline: 2px solid var(--gold); outline-offset: 0; background: #34465A; }
.coupon-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-5); color: var(--on-dark-soft); margin-block: 6px; }
.coupon-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.coupon-consent a { color: var(--on-dark); }
.coupon-form .button { width: 100%; }
.form-status { font-size: var(--t-5); min-height: 1.5em; }
.form-status.success { color: var(--gold); }
.form-status.error { color: #F2B8B8; }

/* ================= Footer board ================= */
.foot { background: var(--navy-deep); color: var(--on-dark); padding-bottom: 40px; }
.foot-board { padding: var(--gap); grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
.foot-name { padding: 32px; display: grid; align-content: end; gap: 10px; }
.foot-mark { width: 96px; height: auto; margin-bottom: 8px; }
.foot-name p:first-child { font-size: var(--t-2); }
.foot-name strong { font-weight: 800; }
.foot-name p:first-child span { color: var(--gold); }
.foot-name p + p { font-size: var(--t-5); color: var(--on-dark-soft); max-width: 52ch; }
.foot-phone { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 170px; }
.foot-phone span { font-size: var(--t-1); font-weight: 800; line-height: 1; text-align: right; }
.foot-phone small { font-size: var(--t-5); font-weight: 700; }
.foot-links { padding: 32px; display: grid; align-content: end; gap: 6px; font-size: var(--t-5); }
.foot-links a { justify-self: start; }
/* small print: the legal links centred, the photo credits across the full width below */
.foot-meta { padding: 22px 150px 0; font-size: var(--t-5); color: var(--on-dark-soft); text-align: center; line-height: 1.65; }
.foot-legal { margin-bottom: 12px; color: var(--on-dark); }
.foot-credits { font-size: 14px; }
.foot-name .foot-disclaimer { font-size: var(--t-5); color: var(--on-dark-soft); }

/* ================= Motion ================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* the gap bars are driven by js/site.js, so the share prices can move with them */

  .js .pillars .tile:nth-child(2), .js .how-steps > div:nth-child(2), .js .about-step:nth-of-type(2) { transition-delay: 80ms; }
  .js .pillars .tile:nth-child(3), .js .how-steps > div:nth-child(3) { transition-delay: 160ms; }
  .js .pillars .tile:nth-child(4) { transition-delay: 240ms; }

  .hero .tile { animation: tile-in 700ms var(--ease-out) both; }
  .hero .tile:nth-child(2) { animation-delay: 90ms; }
  .hero .tile:nth-child(3) { animation-delay: 180ms; }
  .hero .tile:nth-child(4) { animation-delay: 270ms; }
  @keyframes tile-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transition: opacity 400ms ease; }
  .arb-bar { width: calc(var(--to) * 100%); }
}

/* ================= Tablet ================= */
@media (max-width: 1100px) {
  .bar-nav { gap: 18px; padding-inline: 18px; }
  .bar-nav a:nth-child(n+5) { display: none; }
  .about-text { grid-column: 1 / -1; }
  .about-photo { display: none; }
  .about-year { font-size: 30px; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .bar-nav { display: none; }
  .hero { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .hero-main { grid-column: 1 / -1; grid-row: auto; padding: 28px; min-height: 420px; }
  .hero-bg { width: 100%; opacity: .4; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 70%); mask-image: linear-gradient(to top, transparent 0%, #000 70%); }
  .hero-copy { max-width: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar-wide { grid-column: auto; min-height: 0; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel-photo img { height: auto; width: 100%; max-width: none; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px; }
  .quote-board, .feature { grid-template-columns: minmax(0, 1fr); }
  .logo-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-text { columns: 1; }
  .coupon { grid-template-columns: minmax(0, 1fr); }
  .coupon-say { border-inline-end: 0; border-bottom: 5px dotted var(--paper); }
  .coupon-say::before, .coupon-say::after { top: auto; bottom: -16.5px; }
  .coupon-say::before { inset-inline-end: auto; inset-inline-start: -14px; }
  .coupon-say::after { inset-inline-end: -14px; }
  .foot-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-name { grid-column: 1 / -1; }
  .foot-meta { padding-inline: calc(var(--gap) + 28px); }
  .foot { padding-bottom: 130px; }
}

/* ================= Phone ================= */
@media (max-width: 700px) {
  :root {
    --bar: 60px; --gap: 6px;
    --t-hero: clamp(32px, 8.5vw, 36px);
    --t-1: 28px; --t-2: 20px; --t-3: 17px; --t-4: 16px; --t-5: 14px;
  }
  .bar-brand { padding-inline: 14px; }
  .bar-brand strong { font-size: 17px; }
  .bar-brand span { font-size: 14px; }
  .bar-cta { padding-inline: 14px; }
  .bar-tools-toggle { padding-inline: 12px; gap: 6px; }
  .tools-menu { position: fixed; top: var(--bar); inset-inline: var(--gap); width: auto; }
  .hero-main { padding: 22px; min-height: 390px; }
  .hero-bg { object-position: 50% 0; }
  .hero-lead { margin-block: 16px 0; }
  .hero-idea, .hero-facts { padding: 20px; }
  .hero-idea > span { font-size: var(--t-5); }
  .hero-facts strong { font-size: var(--t-3); }
  .hero-facts-list { font-size: 13px; }
  .arb { grid-template-columns: minmax(0, 1fr); }
  .arb-tile { padding: 24px; }
  .pillar { padding: 24px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tab { padding: 12px 14px; font-size: var(--t-5); }
  .panel-text { padding: 26px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .how-figure { max-width: 320px; }
  .about-text { padding: 26px; }
  .about-step { padding: 20px; min-height: 150px; }
  .about-year { font-size: 30px; }
  .quote-text { padding: 28px; }
  .feature-text { padding: 26px; }
  .feature-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .mag-table a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k v" "t t"; gap: 2px 12px; }
  .mag-table .k { grid-area: k; }
  .mag-table .v { grid-area: v; }
  .mag-table .t { grid-area: t; }
  .coupon-say, .coupon-form { padding: 28px 22px; }
  .foot-board { grid-template-columns: minmax(0, 1fr); }
  .foot-name, .foot-phone, .foot-links { padding: 24px; }
  .foot-meta { padding-inline: calc(var(--gap) + 24px); }
  .foot { padding-bottom: 130px; }
  .logo-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-tile { height: 88px; padding: 18px 14px; }
  .foot-phone { min-height: 0; }
}

@media (max-width: 700px) {
  .about-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-text { grid-column: 1 / -1; }
  .about-year { font-size: 28px; }
}
/* narrow phones: the brand drops its subtitle so the tools tile fits beside it */
@media (max-width: 520px) { .bar-brand span { display: none; } }
@media (max-width: 400px) {
  .bar-brand, .bar-cta { padding-inline: 10px; }
  .bar-brand { gap: 8px; }
  .bar-brand img { width: 34px; }
}
@media (max-width: 340px) { .bar-brand img { display: none; } }
.logo-wide { margin-inline: -10px; width: calc(100% + 20px); }

/* ================= More areas ================= */
.services { padding-block: var(--section); }
.service-board { margin-top: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { display: flex; flex-direction: column; padding-bottom: 26px; overflow: hidden; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 700ms var(--ease-out); }
.service h3 { font-size: var(--t-3); font-weight: 800; line-height: 1.25; margin: 20px 22px 8px; }
.service p { font-size: var(--t-5); line-height: 1.55; margin-inline: 22px; }
.tile-ink.service h3 { color: var(--gold); }
.tile-ink.service p { color: var(--on-dark-soft); }
@media (hover: hover) and (pointer: fine) { .service:hover img { transform: scale(1.04); } }
@media (max-width: 1100px) { .service-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .service-board { grid-template-columns: minmax(0, 1fr); }
  /* text on the right, photo on the left */
  .service { display: grid; grid-template-columns: minmax(0, 1fr) 38%; padding: 0; align-items: start; }
  .service img { grid-column: 2; grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; min-height: 140px; }
  .service h3 { grid-column: 1; grid-row: 1; margin: 16px 16px 4px; }
  .service p { grid-column: 1; grid-row: 2; margin: 0 16px 16px; }
}

/* ================= Wall Street ================= */
.street { padding-bottom: var(--section); }
/* about now follows the approach section on the same paper, so one gap between them is enough */
.approach + .about { padding-top: 0; }
.street-board { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.street-photo { overflow: hidden; background: var(--slate); }
.street-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.street-text { padding: 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.street-text h2 { color: var(--gold); margin-bottom: 8px; }
.street-text p { color: var(--on-dark-soft); max-width: 58ch; }
.street-pull { font-size: var(--t-2) !important; font-weight: 500; line-height: 1.45; color: var(--on-dark) !important; margin-top: 12px; max-width: 34ch !important; }
@media (max-width: 900px) {
  .street-board { grid-template-columns: minmax(0, 1fr); }
  .street-photo img { height: auto; }
  .street-text { padding: 26px; }
}

