/* Ayoub Ben Thabet: a calm audit report on a desk.
   Olive-stone ground, off-white sheets, dark olive ink and actions. */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/familjen-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #e9e6dc;
  --ground-2: #e2dfd3;
  --sheet: #fbfaf6;
  --ink: #1f2418;
  --mute: #4f5644;
  --rule: #c9c6b8;
  --rule-soft: #dedbcf;
  --olive: #3d4a2a;
  --olive-hi: #4b5a34;
  --night: #262c1d;
  --night-ink: #ecebe3;
  --night-mute: #b8bca9;
  --night-rule: #3e4631;

  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --shadow-sheet: 0 1px 2px rgba(31, 36, 24, .08), 0 24px 48px -24px rgba(31, 36, 24, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --pad: clamp(20px, 4.5vw, 64px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scrollbar-color: #a8a796 var(--ground);
}

::selection { background: var(--olive); color: var(--sheet); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--sheet); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px;
  background: var(--olive); color: var(--sheet);
  font-weight: 600; font-size: 17px; line-height: 1.25; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--olive-hi); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(31, 36, 24, .6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--full { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav__name { font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.005em; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { background-size: 100% 1px; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang {
  font: 600 14px var(--font); color: var(--ink); background: none; border: 1px solid var(--rule);
  min-width: 44px; min-height: 40px; padding: 0 10px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang:hover { border-color: var(--ink); background: var(--sheet); }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 12px 10px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span + span { margin-top: 8px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.nav__mobile { border-top: 1px solid var(--rule); background: var(--ground); }
.nav__mobile ul { padding-block: 8px 16px; }
.nav__mobile a { display: block; padding: 14px 0; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--rule-soft); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding-top: clamp(16px, 3vh, 40px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
  min-height: min(calc(100svh - 72px - 200px), 700px);
}
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 26px; max-width: 15em; }
.hero__sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--mute); max-width: 34em; margin-bottom: 34px; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.hero__offer { font-size: 15px; line-height: 1.45; color: var(--mute); max-width: 16.5em; }
.hero__offer b { color: var(--ink); white-space: nowrap; }

.sheet { background: var(--sheet); box-shadow: var(--shadow-sheet); }
.hero__sheet { padding: clamp(24px, 2.6vw, 36px) clamp(22px, 2.8vw, 40px) clamp(22px, 2.4vw, 32px); }
.sheet__title { font-size: 15px; font-weight: 600; color: var(--mute); margin-bottom: 4px; }
.proof li { display: grid; gap: 4px; padding: 20px 0; }
.proof li + li { border-top: 1px solid var(--rule-soft); }
.proof__n { font-size: clamp(34px, 3.2vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof__t { font-size: 15px; line-height: 1.45; color: var(--mute); }
.sheet__foot { font-size: 14px; color: var(--mute); padding-top: 18px; border-top: 1px solid var(--rule-soft); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 4vh, 48px); }
.strip li { padding: 20px 24px 28px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; color: var(--mute); }
.strip b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* Hero entrance: the sheet settles onto the desk. Content is visible without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero__sheet { animation: settle 1.1s var(--ease) .15s both; }
}
@keyframes settle {
  from { transform: translateY(28px) rotate(1.2deg); box-shadow: 0 1px 2px rgba(31,36,24,.04), 0 48px 80px -30px rgba(31,36,24,.25); opacity: .4; }
  to { transform: none; box-shadow: var(--shadow-sheet); opacity: 1; }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2, .section h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.head__sub { margin-top: 18px; font-size: 18px; color: var(--mute); max-width: 38em; }
.label { font-size: 15px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }

/* Audit */
.audit { border-top: 1px solid var(--rule); }
.audit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.scope li { padding: 26px 0; border-top: 1px solid var(--rule); }
.scope li:last-child { border-bottom: 1px solid var(--rule); }
.scope h4 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.scope p { color: var(--mute); max-width: 36em; }

.price { padding: clamp(26px, 3vw, 40px); position: sticky; top: 100px; }
.price__amount { font-size: clamp(56px, 6vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 18px 0 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__amount span { font-size: 24px; letter-spacing: 0; color: var(--mute); }
.price__note { color: var(--mute); font-size: 15px; line-height: 1.5; }
.seats { display: flex; align-items: center; gap: 12px; margin: 20px 0 22px; padding: 14px 0; border-block: 1px solid var(--rule-soft); font-weight: 600; font-size: 15px; }
.seats__marks { display: flex; gap: 6px; }
.seats__marks i { width: 14px; height: 14px; background: var(--olive); }
.seats__marks i.is-taken { background: none; border: 1.5px solid var(--rule); }
.price__list { margin-bottom: 26px; }
.price__list li { position: relative; padding: 7px 0 7px 24px; font-size: 15px; line-height: 1.45; }
.price__list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }

.days { margin-top: clamp(64px, 8vw, 104px); }
.days__rail {
  position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  margin: 18px 0 0; border-block: 1px solid var(--rule);
  font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--mute);
  --p: 0;
}
.days__rail span:not(.days__fill) { position: relative; z-index: 1; padding: 12px 0 12px 10px; border-left: 1px solid var(--rule); transition: color .3s; }
.days__rail span:nth-child(n+7):not(.days__fill) { background: rgba(31, 36, 24, .04); }
.days__fill {
  position: absolute; inset: -1px auto -1px 0; width: calc(var(--p) * 100%);
  background: var(--olive); z-index: 0;
}
.days__rail span.is-lit { color: var(--sheet); }
.days__steps { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0; }
.days__steps li { padding: 22px 24px 0 0; }
.days__steps li:nth-child(1), .days__steps li:nth-child(4) { color: var(--mute); }
.days__steps h4 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; color: var(--ink); }
.days__steps p { font-size: 15px; line-height: 1.5; color: var(--mute); }
@media (min-width: 900px) {
  .days__steps { grid-template-columns: 16% 34% 34% 16%; }
  .days__rail { margin-inline: 16%; }
}

.condition {
  margin-top: clamp(48px, 6vw, 72px); padding: 22px 26px; max-width: 54em;
  background: var(--ground-2); border: 1px solid var(--rule); color: var(--mute);
}
.condition b { color: var(--ink); }

/* Services ledger */
.services { background: var(--ground-2); }
.ledger { padding: 6px clamp(20px, 3vw, 40px); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--rule-soft); align-items: baseline; }
.ledger__row:first-child { border-top: 0; }
.ledger__head { padding: 18px 0 14px; font-size: 14px; font-weight: 600; color: var(--mute); }
.ledger__row h3 { font-size: 19px; line-height: 1.3; }
.ledger__row p { font-size: 16px; color: var(--mute); }
.ledger__row .ledger__sit { color: var(--ink); }
.rate { margin-top: 28px; color: var(--mute); max-width: 50em; }
.rate b { color: var(--ink); white-space: nowrap; }

/* Method: the one dark band */
.method { background: var(--night); color: var(--night-ink); }
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.method__text h2 { margin-bottom: 24px; }
.method__text p { color: var(--night-mute); font-size: 18px; max-width: 34em; }
.method__text p + p { margin-top: 16px; }
.method__split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.method__split h3 { font-size: 15px; color: var(--night-mute); padding-bottom: 12px; border-bottom: 1px solid var(--night-rule); }
.method__split li { padding: 14px 0; border-bottom: 1px solid var(--night-rule); font-size: 16px; line-height: 1.45; }
.method ::selection { background: var(--sheet); color: var(--night); }
.method :focus-visible { outline-color: var(--sheet); }

/* Work */
.work__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.case { padding-top: 22px; border-top: 1px solid var(--ink); }
.case--lead { border-top: 0; padding: clamp(24px, 3vw, 36px); }
.case__meta { font-size: 14px; color: var(--mute); margin: -4px 0 14px; }
.case h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.case p { color: var(--mute); }
.case__by { font-weight: 400; color: var(--mute); }
.case p.case__result { margin-top: 14px; color: var(--ink); font-weight: 600; }
.case__compare { display: grid; gap: 18px; margin-top: 18px; }
.case__compare p { display: grid; gap: 2px; }
.case__n { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.case__est .case__n { color: var(--mute); font-weight: 500; }

.tools { margin-top: clamp(64px, 8vw, 104px); }
.tools__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 8px; }
.tools__list li { border-top: 1px solid var(--rule); padding-top: 20px; }
.tools__list h4 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.tools__list p { font-size: 15px; color: var(--mute); }
.tools__list p.tools__meta { margin-top: 12px; font-size: 14px; }
.status { font-size: 12.5px; font-weight: 600; color: var(--mute); border: 1px solid var(--rule); padding: 2px 8px; }
.status--live { color: var(--olive); border-color: var(--olive); }

/* About */
.about { border-top: 1px solid var(--rule); }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about__text h2 { margin-bottom: 24px; }
.about__text p { color: var(--mute); max-width: 36em; }
.about__text p + p { margin-top: 14px; }
.facts { margin: 0; padding: clamp(22px, 2.6vw, 34px); }
.facts > div { padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; }

/* Close */
.close { background: var(--ground); }
.close__card { background: var(--sheet); box-shadow: var(--shadow-sheet); padding: clamp(28px, 4vw, 56px); }
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
.close h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 20px; }
.close__sub { color: var(--mute); font-size: 18px; max-width: 32em; margin-bottom: 32px; }
.close__lines { margin: 0; }
.close__lines > div { padding: 16px 0; border-top: 1px solid var(--rule-soft); }
.close__lines dt { font-size: 14px; color: var(--mute); }
.close__lines dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; }

.footer { border-top: 1px solid var(--rule); color: var(--mute); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }

/* Scroll reveal: sheets settle as they arrive. Only when JS is on and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .price.reveal:not(.is-in) { transform: translateY(28px) rotate(1.2deg); opacity: .4; }
  .js .price.reveal.is-in { animation: settle 1.1s var(--ease) both; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .case--lead { grid-column: 1 / -1; }
  .ledger__row { grid-template-columns: 1fr 1fr; gap: 6px 28px; }
  .ledger__row h3 { grid-column: 1 / -1; grid-row: 1; }
  .ledger__head { display: none; }
  .ledger__row:nth-child(2) { border-top: 0; }
}
@media (max-width: 900px) {
  .nav__main, .nav__book { display: none; }
  .nav__burger { display: block; }
  .hero__grid, .audit__grid, .method__grid, .about__grid, .close__grid { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  .price { position: static; }
  .strip { grid-template-columns: 1fr 1fr; }
  .days__steps { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .tools__list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 20px; }
  .hero__grid { gap: 36px; }
  .btn:not(.btn--sm) { width: 100%; }
  .strip li { padding-right: 12px; }
  .ledger__row { grid-template-columns: 1fr; }
  .work__grid, .method__split { grid-template-columns: 1fr; }
  .days__rail { font-size: 12px; }
  .days__rail span:not(.days__fill) { padding-left: 5px; }
  .days__steps { grid-template-columns: 1fr; }
  .condition { padding: 18px; }
}

.arw { width: .62em; height: .4em; vertical-align: .12em; margin-inline: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
