/* =========================================================================
   ARCHRENDR — landing page
   Built from Figma "Landing Page" 6652:270 (1440 × 5187).
   Every value below is taken from the frame; the design width is the upper
   bound and each measure scales down fluidly to 320.
   ========================================================================= */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:            #fbf9f6;   /* page ground                        */
  --cream:         #f4f0e6;   /* sections 002 and 003               */
  --tile:          #ece7dc;   /* placeholder behind gallery tiles    */
  --dark:          #0c0a08;   /* footer, hero base, dark buttons     */

  /* Ink */
  --ink:           #0c0a08;
  --muted:         #6b6358;   /* labels, body copy, card numbers     */
  --muted-2:       #948c80;   /* Meet Karam body copy                */
  --accent:        #f37833;

  /* On dark */
  --on-dark:       #fbf9f6;
  --on-dark-85:    rgba(251, 249, 246, .85);
  --on-dark-78:    rgba(251, 249, 246, .78);
  --on-dark-60:    rgba(251, 249, 246, .6);
  --on-dark-55:    rgba(251, 249, 246, .55);
  --on-dark-40:    rgba(251, 249, 246, .4);

  /* Rules */
  --line:          rgba(12, 10, 8, .16);
  --line-dark:     rgba(251, 249, 246, .14);

  /* Metrics — 1440 design ÷ viewport */
  --shell-max:     1440px;
  --gutter:        clamp(20px, 3.334vw, 48px);   /* 48   */
  --section-y:     clamp(56px, 7.3vw, 105px);    /* 105  */

  /* Type — max values are the Figma sizes */
  --t-hero:        clamp(2.5rem, 7.5vw, 6.75rem);      /* 108  / 102.6 */
  --t-h2:          clamp(2rem, 4.45vw, 4rem);          /*  64  /  64   */
  --t-h2-sm:       clamp(1.875rem, 3.5vw, 3.15rem);    /*  50.4/  52.9 */
  --t-card:        clamp(1.125rem, 1.53vw, 1.375rem);  /*  22  /  25.3 */
  --t-body:        clamp(.9375rem, 1.112vw, 1rem);     /*  16  /  21.7 */
  --t-small:       clamp(.8125rem, .973vw, .875rem);   /*  14  /  21   */
  --t-eyebrow:     .75rem;                             /*  12  /  12   */
  --t-micro:       .6875rem;                           /*  11  /  11   */

  --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* The brand commits to one light world; every colour below is painted explicitly. */
:root { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.36;                 /* 21.7 / 16 */
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark);
  border-radius: 2px; transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ── Primitives ─────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }

/* 7px accent square — Figma "dot" */
.dot {
  flex: none;
  width: 7px; height: 7px;
  background: var(--accent);
}

.ico { display: block; color: currentColor; }
.ico--5  { width: 6px;  height: 6px;  }
.ico--12 { width: 12px; height: 12px; }
.ico--22 { width: 22.4px; height: 22.4px; }
.ico--corner {
  width: 8px; height: 8px;
  margin-top: auto;
  color: var(--muted);
  transition: transform .3s var(--ease), color .3s var(--ease);
}

/* 12px / 2.64px tracking / Medium */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent  { color: var(--accent); }
.eyebrow--on-dark { color: var(--on-dark-78); }

/* 11px / 1.98–2.42px tracking / Medium */
.micro {
  font-size: var(--t-micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--on-dark-40);
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.prose {
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.36;
}
.prose p + p { margin-top: 1.36em; }
.prose--soft { color: var(--muted-2); line-height: 1.22; letter-spacing: .008em; }

.accent { color: var(--accent); }

/* Buttons — 11px / 2.2–2.42px tracking, 2px radius */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 2px;
  font-size: var(--t-micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .21em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), gap .25s var(--ease);
}
.btn--dark  { padding: 14px 12px; background: var(--dark); color: var(--on-dark); }
.btn--dark:hover  { background: var(--accent); }
.btn--light { padding: 14px 27px; background: var(--on-dark); color: var(--dark); }
.btn--light:hover { background: var(--accent); color: var(--on-dark); gap: 15px; }

/* EXPLORE ↗ — 12px label, 86px rule beneath */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: 16px; color: var(--accent); border-color: var(--accent); }

/* Wordmark. Renders as live text until the Figma PNG is dropped into
   assets/img/logo-black.png / logo-white.png, at which point main.js swaps it
   in automatically at the designed 225.64 × 22 box. */
.wordmark__img {
  width: auto;
  height: clamp(15px, 1.53vw, 22px);
  max-width: 100%;
}

.wordmark {
  display: block;
  font-size: clamp(1.25rem, 2.08vw, 1.875rem);
  font-weight: 500;
  line-height: 22px;
  letter-spacing: .1em;
  color: var(--ink);
}
.wordmark--light { color: var(--on-dark); }

/* ── Navigation — h 82, bg rgba(251,249,246,.82) ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s var(--ease);
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: clamp(58px, 5.7vw, 82px);
}

/* ── Hero — h 980, flat 51% scrim (two 30% layers) ─────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, 68.06vw, 980px);
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .51); }

/* Content block sits 253 from the top and 221 from the bottom of the 980 hero */
.hero__inner { padding-bottom: clamp(48px, 15.35vw, 221px); }

.hero__title {
  max-width: 755px;                 /* the Figma text box */
  margin-top: 12px;
  font-size: var(--t-hero);
  line-height: .95;                 /* 102.6 / 108 */
  letter-spacing: -.04em;
  color: var(--on-dark);
}
.hero__lede {
  max-width: 695px;
  margin-top: clamp(20px, 2.15vw, 31px);
  font-size: var(--t-body);
  line-height: 1.26;                /* 20.15 / 16 */
  color: var(--on-dark-78);
}
.hero__cta { margin-top: clamp(18px, 1.67vw, 24px); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(14px, 1.6vw, 23px);
  margin: clamp(24px, 2.36vw, 34px) 0 0;
  font-size: var(--t-eyebrow);
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.facts__item { display: flex; align-items: center; gap: 7px; }
.facts dt { font-weight: 500; color: var(--on-dark-78); }
.facts dd { margin: 0; font-weight: 500; color: var(--accent); }

/* ── 001 The problem — text 750 / gap 72 / image 523 × 590 ─────────────── */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.problem__title { margin-top: clamp(12px, 1.25vw, 18px); }
.problem .prose { margin-top: clamp(24px, 3.06vw, 44px); }
.problem__figure { margin: 0; }
.problem__figure img {
  width: 100%;
  aspect-ratio: 523 / 590;
  object-fit: cover;
  background: var(--tile);
}

/* ── 002 Who this is for — centred head, three ruled columns ───────────── */
.audience { text-align: center; }
.audience__index { justify-content: center; }
.audience__title { margin-top: 9px; }

.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(28px, 3.68vw, 53px);    /* rule sits 53 below the head */
  text-align: left;
  border-top: 1px solid var(--line);
}
.card {
  display: flex;
  flex-direction: column;
  min-height: clamp(0px, 18.75vw, 270px);
  padding: clamp(26px, 3.13vw, 45px) 0 clamp(20px, 1.5vw, 22px);
  border-bottom: 1px solid var(--line);
}
.card__num {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .22em;
  color: var(--muted);
}
.card__title {
  max-width: 310px;
  margin-top: clamp(20px, 1.95vw, 28px);
  font-size: var(--t-card);
  font-weight: 400;
  line-height: 1.15;                /* 25.3 / 22 */
  letter-spacing: -.01em;
  color: var(--ink);
}
.card__body {
  max-width: 310px;
  margin-top: clamp(12px, .97vw, 14px);
  font-size: var(--t-small);
  line-height: 1.55;                /* 21.7 / 14 */
  color: var(--muted);
}
.card:hover .ico--corner { transform: translate(2px, -2px); color: var(--accent); }

/* ── What's Included — 6 squares, 2px gutters ─────────────────────────── */
.included__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}
.included__title {
  max-width: 544px;
  line-height: .7875;               /* 50.4 / 64 */
  letter-spacing: -.015em;
}
.link-arrow { margin-top: clamp(2px, 2.5vw, 36px); }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: clamp(26px, 3.13vw, 45px);
}
.tile { position: relative; background: var(--tile); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile__veil {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .18);
  transition: opacity .35s var(--ease);
}
.tile:hover .tile__veil { opacity: 0; }

/* ── 003 What you'll learn — 6 ruled columns ──────────────────────────── */
.learn__title {
  max-width: 706px;
  margin-top: clamp(12px, 1.25vw, 18px);
}
.learn__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(36px, 4.6vw, 66px);
  border-top: 1px solid var(--line);
}
.learn__item {
  display: flex;
  flex-direction: column;
  min-height: clamp(0px, 14.24vw, 205px);
  padding: clamp(18px, 1.67vw, 24px) 0 clamp(14px, .49vw, 7px);
  border-bottom: 1px solid var(--line);
}
.learn__item p {
  max-width: 195px;
  margin-top: clamp(14px, 1.32vw, 19px);
  font-size: var(--t-body);
  line-height: 1.36;
  color: var(--muted);
}
.learn__item:hover .ico--corner { transform: translate(2px, -2px); color: var(--accent); }

/* ── 004 Meet Karam — portrait 527 / gap 80 / copy 737 ────────────────── */
.meet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5.56vw, 80px);
  align-items: start;
}
.meet__portrait { margin: 0; }
.meet__portrait img {
  width: 100%;
  aspect-ratio: 527 / 590;
  object-fit: cover;
  background: var(--tile);
}
.meet__title {
  margin-top: 9px;
  font-size: var(--t-h2-sm);
  line-height: 1.05;
}
.meet .prose { margin-top: clamp(16px, 1.81vw, 26px); }

.carousel { margin-top: clamp(22px, 2.36vw, 34px); }
.carousel__nav { display: flex; gap: 16px; margin-top: clamp(18px, 2.43vw, 35px); }
.carousel__btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: .5px solid var(--muted);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.carousel__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.carousel__btn[disabled] { opacity: .3; cursor: default; }
.carousel__btn[disabled]:hover { background: transparent; color: var(--muted); border-color: var(--muted); }

/* Rail — the strip bleeds past the right gutter, as drawn */
.rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: 3px; width: max-content; }
.rail__item {
  flex: none;
  width: clamp(150px, 15.7vw, 226px);
  scroll-snap-align: start;
}
.rail__item img {
  width: 100%;
  aspect-ratio: 226 / 257;
  object-fit: cover;
  background: var(--tile);
  transition: filter .4s var(--ease);
}
.rail__item img:hover { filter: brightness(1.05); }

/* ── 005 Reserve — signup form, same tokens as the rest of the page ────── */
.reserve__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.reserve__title { margin-top: clamp(12px, 1.25vw, 18px); }
.reserve__lede  { margin-top: clamp(18px, 2vw, 28px); max-width: 42ch; }
.facts--ink { margin-top: clamp(22px, 2.5vw, 36px); color: var(--ink); }
.facts--ink dt { color: var(--muted); }

.reserve__form {
  display: grid;
  gap: clamp(20px, 2.2vw, 30px);
  max-width: 480px;
  width: 100%;
}

.field { display: grid; gap: 9px; }
.field label {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;                      /* iOS rounds inputs by default */
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { border-bottom-color: #b4442a; }

/* Honeypot: present for bots, gone for people and screen readers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reserve__submit {
  justify-content: center;
  justify-self: start;
  padding-inline: 28px;
  cursor: pointer;
}
.reserve__submit[disabled] { opacity: .55; cursor: default; }
.reserve__submit[disabled]:hover { background: var(--dark); }

.form__status {
  font-size: var(--t-small);
  line-height: 1.5;
  min-height: 1.2em;
}
.form__status:empty { display: none; }
.form__status--ok  { color: var(--ink); }
.form__status--err { color: #b4442a; }

.form__note {
  font-size: clamp(.75rem, .903vw, .8125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}

@media (min-width: 900px) {
  .reserve__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── Footer — h 613, brand 304 / channels 202 / image 471 × 263 ───────── */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(52px, 6.67vw, 96px) clamp(24px, 1.88vw, 27px);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.footer__blurb {
  max-width: 305px;
  margin-top: clamp(16px, 1.53vw, 22px);
  font-size: var(--t-small);
  line-height: 1.5;                 /* 21 / 14 */
  color: var(--on-dark-60);
}
.footer__contact { margin-top: clamp(18px, 1.95vw, 28px); display: grid; gap: 8px; }
.footer__contact a,
.footer__channels a {
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--on-dark-85);
  transition: color .2s var(--ease);
}
.footer__contact a:hover { color: var(--on-dark); }
.footer__channels ul { margin-top: clamp(18px, 2.85vw, 41px); display: grid; gap: clamp(10px, .96vw, 14px); }
.footer__channels a:hover { color: var(--accent); }

.footer__figure { margin: 0; }
.footer__figure img {
  width: 100%;
  aspect-ratio: 471 / 263;
  object-fit: cover;
  background: rgba(251, 249, 246, .08);
}

.footer__acknowledgement {
  max-width: 585px;
  margin-top: clamp(40px, 5.13vw, 74px);
  padding-top: clamp(22px, 2.43vw, 35px);
  border-top: 1px solid var(--line-dark);
  font-size: clamp(.75rem, .903vw, .8125rem);
  line-height: 1.6;                 /* 20.8 / 13 */
  color: var(--on-dark-55);
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(30px, 2.16vw, 31px);
  padding-top: clamp(22px, 2.15vw, 31px);
  border-top: 1px solid var(--line-dark);
}
.footer__legal { display: flex; gap: 8px; }
.footer__legal a:hover { color: var(--on-dark); }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Breakpoints ────────────────────────────────────────────────────────── */
/* Stacked, the two portrait images would run the full column width — fine on a
   phone, far too tall by tablet. Cap them and keep them on the text's left edge. */
@media (max-width: 899px) {
  .problem__figure { max-width: 520px; }
  .meet__portrait  { max-width: 440px; }
}

@media (min-width: 600px) {
  .audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding-right: 32px; }
  .card:nth-child(2n + 2) { border-left: 1px solid var(--line); padding-left: 40px; }

  .learn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn__item { padding-right: 24px; }
  .learn__item:nth-child(2n + 2) { border-left: 1px solid var(--line); padding-left: 17px; }

  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .problem__grid { grid-template-columns: minmax(0, 750fr) minmax(0, 523fr); }
  /* the copy column starts 86 below the top of the image, as drawn */
  .problem__body { padding-top: clamp(0px, 5.97vw, 86px); }

  .meet__grid  { grid-template-columns: minmax(0, 527fr) minmax(0, 730fr); }
  .footer__grid { grid-template-columns: minmax(0, 484fr) minmax(0, 386fr) minmax(0, 474fr); }

  .audience__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .card { border-bottom: 0; border-left: 1px solid var(--line); padding-left: clamp(24px, 4.38vw, 63px); }
  .card:first-child { border-left: 0; padding-left: clamp(28px, 5.21vw, 75px); }

  .learn__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .learn__item { border-bottom: 0; border-left: 1px solid var(--line); padding-left: 17px; }
  .learn__item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .learn__item:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
}

/* Six squares as drawn. Earlier than the learn grid: images tolerate a narrow
   column, 195px of body copy does not. */
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .learn__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .learn__item, .learn__item:nth-child(-n + 3) { border-bottom: 0; }
  .learn__item { border-left: 1px solid var(--line); padding-left: 17px; }
  .learn__item:nth-child(6n + 1) { border-left: 0; padding-left: 0; }
}

@media (max-width: 479px) {
  .btn--dark { padding: 11px 10px; letter-spacing: .13em; }
  .footer__bar { flex-direction: column; }
}

/* Narrowest phones: the wordmark and nav button have to share ~280px */
@media (max-width: 400px) {
  .nav__inner { gap: 12px; }
  .wordmark { font-size: 1rem; letter-spacing: .07em; }
  .nav .btn--dark { padding: 10px 9px; font-size: .625rem; letter-spacing: .1em; }
}

/* ── Motion & print ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .rail { scroll-behavior: auto; }
}

@media print {
  .nav, .carousel__nav, .skip-link { display: none; }
  .hero { min-height: auto; color: var(--ink); }
  .hero__media, .hero__scrim { display: none; }
  body { background: #fff; }
}
