/* Albert — Swiftnex Tech
   Direction: bloomberg-businessweek-turley. Editorial poster on near-black.
   Mobile-first: base = 375px, then 768px, then 1024px.
   The palette is closed at three colours plus ink. See .albert/style-lock.md. */

:root {
  /* tokens.css supplies --ground --surface --ink --muted --accent --accent-ink
     and the two font stacks. Only what it does not carry is declared here. */
  --recessed: #3a2418; /* large background type only, never read as text */
  --line: rgba(238, 237, 236, 0.14);
  --line-strong: rgba(238, 237, 236, 0.28);
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 104px;
  --s7: 160px;

  --pad: var(--s3);
  --section: 88px;
  --radius: 2px;
  --measure: 62ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

/* Mono is rationed. Everything that uses it goes through this one class-set. */
.hero__eyebrow,
.closer__eyebrow,
.step__num,
.plan__label,
.plan__mark,
.plan__per,
.ticker,
.footer,
.masthead__nav,
.skip {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--s2);
}
.skip:focus {
  left: 0;
}

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

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  /* A bar, not a band — half the height it was. The hero is the page; the
     masthead only has to say whose page it is and offer the two ways in. */
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
}

.masthead__logo {
  width: 60px;
  height: auto;
  display: block;
}

/* No buttons up here.
 *
 * A solid orange rectangle and an outlined one, side by side in a 60px bar,
 * fought the poster underneath them and read as an admin toolbar. The nav is
 * five quiet links; the one that matters is simply the one in the accent. */

.masthead__nav {
  display: none;
  align-items: center;
  gap: var(--s3);
  color: var(--muted);
}

/* ── Hero: full-bleed. One screen, one image, one action. ─────────────── */

/* The first screen is one screen. The poster is sized by the viewport, never
   by a fixed width, so the whole of it — face included — is always in frame. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s3);
  padding: var(--s3) var(--pad) var(--s4);
  text-align: center;
}

/* The one intentional rule-break: ALBERT at poster scale in a colour that
   barely clears the ground, bleeding off both edges under the portrait. It is
   unreadable as text and that is the point — texture with a name in it. */
.hero__ground {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(180px, 46vw, 660px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--recessed);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

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

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* The supplied poster, placed as it is: no crop, no recolour, no filter. */
.hero__portrait {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44svh;
  object-fit: contain;
}

/* motion.js wraps entering media in a mask. The wrapper must size to the
   image, not to the row, or its overflow:hidden crops the poster's feet. */
.hero__stage [data-mask] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}

.hero__title {
  font-size: clamp(38px, 11vw, 76px);
  display: flex;
  flex-direction: column;
}

.hero__accent {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  color: var(--muted);
  max-width: 46ch;
  font-size: 17px;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-strong);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover {
  background: #ff8c39;
}

.btn--line {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--line:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--big {
  min-height: 56px;
  font-size: 17px;
}

/* ── Ticker: the signature, in the client's own words ─────────────────── */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s2) 0;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}

.ticker__row {
  display: flex;
  gap: var(--s3);
  padding-right: var(--s3);
}

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

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps {
  padding: var(--section) var(--pad);
}

.steps__head {
  max-width: var(--measure);
  margin-bottom: var(--s5);
}

.steps__title,
.pricing__title {
  font-size: clamp(34px, 9vw, 60px);
}

.steps__note,
.pricing__note {
  color: var(--muted);
  margin-top: var(--s2);
  max-width: 46ch;
}

.step {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  display: block;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.step__name {
  font-size: clamp(28px, 8vw, 40px);
  margin-bottom: var(--s2);
}

.step__body {
  color: var(--muted);
  max-width: 54ch;
}

/* ── Pricing: two plans, hairlines not boxes ──────────────────────────── */

.pricing {
  padding: var(--section) var(--pad);
  border-top: 1px solid var(--line);
}

.pricing__head {
  margin-bottom: var(--s5);
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.plan--team {
  background: var(--surface);
  border-color: var(--line-strong);
}

.plan__label {
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

/* Not a pill and not a badge: a mono line set off by a hairline. */
.plan__mark {
  color: var(--accent);
  border-left: 1px solid var(--line-strong);
  padding-left: var(--s2);
  letter-spacing: 0.12em;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__per {
  color: var(--muted);
  margin-left: var(--s1);
  letter-spacing: 0.1em;
}

.plan__for {
  color: var(--muted);
  max-width: 40ch;
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  margin-bottom: var(--s2);
}

.plan__list li {
  position: relative;
  padding-left: var(--s3);
  color: var(--ink);
  font-size: 16px;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

/* ── Closer ───────────────────────────────────────────────────────────── */

.closer {
  position: relative;
  padding: var(--section) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}

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

.closer__title {
  font-size: clamp(38px, 11vw, 88px);
  max-width: 16ch;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ── Tablet: 768px and up ─────────────────────────────────────────────── */

@media (min-width: 768px) {
  :root {
    --pad: var(--s5);
    --section: 96px;
  }

  body {
    font-size: 18px;
  }

  .masthead__nav {
    display: flex;
  }

  .hero__portrait {
    max-height: 46svh;
  }

  .hero__lede {
    font-size: 19px;
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .plan {
    padding: var(--s4);
  }

  .step {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: var(--s4);
    padding: var(--s4) 0;
  }

  .step__num {
    margin-bottom: 0;
    padding-top: 0.5em;
  }

  .step__name {
    grid-column: 2;
  }

  .step__body {
    grid-column: 2;
  }
}

/* ── Laptop: 1024px and up ────────────────────────────────────────────── */

@media (min-width: 1024px) {
  :root {
    --pad: 80px;
    --section: 112px;
  }

  .hero {
    padding-bottom: var(--s5);
  }

  .hero__portrait {
    max-height: 44svh;
  }

  .hero__title {
    font-size: clamp(56px, 5.4vw, 84px);
  }

  .hero__lede {
    max-width: 54ch;
  }

  .steps__head,
  .pricing__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--s5);
    max-width: none;
  }

  .steps__note,
  .pricing__note {
    margin-top: 0;
  }

  .step {
    grid-template-columns: 120px minmax(0, 22ch) minmax(0, 1fr);
    column-gap: var(--s5);
  }

  .step__name {
    grid-column: 2;
  }

  .step__body {
    grid-column: 3;
    max-width: 58ch;
  }

  .plans {
    gap: var(--s4);
  }

  .plan__price {
    font-size: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── The struck disc ──────────────────────────────────────────────────────
 * Appended after the studio's own sheet, so a redesign can replace everything
 * above and these rules still apply.
 *
 * `image-rendering: pixelated` is the whole look — the plate is dithered at
 * 200x200 and scaled up, and any smoothing on the way up turns a screen-print
 * back into a blurry photograph.
 */
.hero__disc {
  position: relative;
  width: min(56vh, 520px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  /* Measured, never intercepted: nothing under it loses a click. */
  pointer-events: none;
}

.hero__disc-plate,
.hero__disc-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

/* The fade-in is on the PLATE, never on `.hero__disc`.
 *
 * `.hero__disc` carries `data-enter`, and motion.js entrances are `gsap.from`,
 * which records the element's CURRENT value as the end state. Starting the
 * wrapper at `opacity: 0` meant GSAP captured 0, animated 0 → 0, and left an
 * inline `opacity: 0` that beat the `[data-ready]` rule outright — an
 * invisible portrait with no error anywhere. Same trap the design router
 * warns about: never hide content in CSS when the runtime uses gsap.from. */
.hero__disc-plate {
  opacity: 0;
  transition: opacity 500ms ease-out;
}
.hero__disc[data-ready] .hero__disc-plate { opacity: 1; }

/* The second plate is masked away entirely until the pointer arrives. */
.hero__disc-fill {
  opacity: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: opacity 220ms ease-out;
  will-change: transform, mask-image;
}

@media (prefers-reduced-motion: reduce) {
  .hero__disc,
  .hero__disc-fill { transition: none; }
}

@media (max-width: 720px) {
  .hero__disc { width: min(42vh, 320px); }
}

/* ── Pricing: the third tier ──────────────────────────────────────────────
 * Free sits first and quietest — a hairline card with no fill, so the eye
 * lands on the one most people want rather than the one that costs nothing.
 */
.plan__note {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: calc(var(--s2) * -1);
}

.plan__meter {
  font-family: var(--font-utility);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
  margin-top: auto;
  line-height: 1.6;
}

/* Two columns before three, so a tablet does not get three squeezed cards. */
@media (min-width: 700px) and (max-width: 1023px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--free { grid-column: 1 / -1; }
}

/* ── Masthead: the one link that matters wears the accent ───────────────── */
.masthead__link--lead { color: var(--accent); }
.masthead__link--lead:hover { color: var(--glow, var(--accent)); }

/* Sign in sits beside Start free, quieter than it.
 *
 * Two jobs, two weights: somebody arriving for the first time is looking for
 * the orange one, and somebody coming back already knows where this one is.
 * Making them equal would make the page ask a question it does not need to. */
.masthead__signin { color: var(--ink); }
.masthead__signin:hover { color: var(--accent); }

/* A plan that cannot be bought yet.
 *
 * Kept in the layout at the same size as a real button, so the three cards
 * still line up, and plainly not pressable: no pointer, no hover, and a
 * <span> rather than a link so the keyboard does not stop on it either. A
 * greyed-out control that still takes a click is worse than none. */
.btn--soon {
  border: 1px dashed var(--line-strong, var(--line));
  color: var(--muted);
  cursor: default;
  text-align: center;
}
.btn--soon:hover { border-color: var(--line-strong, var(--line)); color: var(--muted); }

/* ── Hero: one action, and it is not a box ──────────────────────────────── */
/* The rule above it went too. A hairline, then a fat orange rectangle, under
 * a poster this quiet was three competing ideas in six inches. */
.hero__action {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
  margin-top: var(--s3);
}

.hero__action .lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  /* Underlined by a rule that grows, rather than boxed. */
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  padding-bottom: 2px;
}
.hero__action .lead:hover { background-size: 100% 3px; }

.hero__action-note {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The allowance line sits at the foot of each card, above the action, so the
 * three are comparable at a glance without reading the lists. */
.plan__meter {
  font-family: var(--font-utility);
  font-size: 11px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
  margin-top: auto;
}

@media (min-width: 700px) and (max-width: 1023px) {
  /* Two columns before three, so a tablet does not squeeze all three. */
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--free { grid-column: 1 / -1; }
}

/* ── Gallery ──────────────────────────────────────────────────────────────
 * Three plates, and as little else as the section can get away with. The work
 * is the argument; a caption's job is to name the client and get out of the
 * way, so each one is a name, a sector and a single line.
 *
 * Deliberately one per row rather than a grid of three. A row of equal cards
 * shrinks each design to a thumbnail, and a thumbnail of a website is a grey
 * rectangle — you cannot see that they are different, which is the whole
 * point of showing them.
 */
.work {
  padding: var(--section) var(--pad);
}

.work__head {
  max-width: var(--measure);
  margin-bottom: var(--s5);
}

.work__title {
  font-size: clamp(34px, 9vw, 60px);
}

.work__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s6);
}

.piece {
  display: grid;
  gap: var(--s3);
}

.piece__frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  /* The plate lifts a hair on approach — the only motion in the section. */
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.piece__shot {
  display: block;
  width: 100%;
  height: auto;
}

.piece:hover .piece__frame {
  border-color: rgba(240, 118, 30, 0.4);
  transform: translateY(-4px);
}

.piece__say {
  display: grid;
  gap: 6px;
  max-width: 62ch;
}

.piece__client {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  text-transform: uppercase;
  margin: 0;
}

.piece__kind {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.piece__line {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.work__note {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

/* From tablet up the caption sits beside the plate rather than under it, so a
 * reader scanning down the page meets three designs, not six blocks. */
@media (min-width: 900px) {
  .piece {
    grid-template-columns: 1fr 300px;
    gap: var(--s4);
    align-items: start;
  }
  .piece__say { position: sticky; top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .piece__frame { transition: none; }
  .piece:hover .piece__frame { transform: none; }
}

/* ── The closer: the same action, said the same way ─────────────────────── */
/* One CTA language across the page. A solid rectangle here and an underlined
 * lead in the hero were two different invitations to do the same thing. */
.closer__action {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
}

.closer__action .lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  padding-bottom: 2px;
}
.closer__action .lead:hover { background-size: 100% 3px; }

.closer__action .link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.closer__action .link:hover { color: var(--ink); }

/* The gallery's one line of orientation. Without it the studio around each
 * design reads as an untrimmed screenshot rather than the point. */
.work__intro {
  color: var(--muted);
  margin-top: var(--s2);
  max-width: 52ch;
  line-height: 1.65;
}

/* A feature a plan does not include is ruled out, not removed.
 * Three cards with different numbers of bullets cannot be compared at a
 * glance — the reader has to hold one list in their head while reading the
 * next. Every card carries every line; the ones you do not get are struck. */
.plan__item--off {
  color: var(--muted);
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(178, 173, 169, 0.6);
}

.plan__item--off::before {
  opacity: 0.35;
}
