/* ==========================================================================
   Footeprint Media — site styles
   One stylesheet for every page. No frameworks.
   ========================================================================== */

/* Fonts (self-hosted, latin subset) ---------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --ink: #141414;
  --muted: #64625d;
  --line: #e6e5e1;
  --rule: #cfcdc7;          /* section divider lines */
  --accent: #e0461c;        /* Footeprint red-orange */
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --bad: #b42318;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;

  color-scheme: light;
}

/* The portfolio page is a dark "gallery wall" (other pages stay white). */
:root.theme-dark {
  --bg: #0e0e0d;
  --surface: #181816;
  --surface-2: #20201e;
  --ink: #f1efe9;
  --muted: #9c998f;
  --line: #2a2926;
  --rule: #3a3935;
  --accent: #ff6a3d;
  --accent-ink: #141414;
  color-scheme: dark;
}

/* The menu bar is always black: it gets its own dark tokens. */
.site-header {
  --bg: #111111;
  --ink: #ffffff;
  --muted: #a8a8a3;
  --surface-2: #262626;
  --line: #2b2b2b;
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}
.h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.25rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 6.5vw, 84px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--line { border-top: 1px solid var(--rule); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  border: 1px solid var(--btn-bg); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--accent); border-color: var(--accent); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .6em 1.1em; font-size: .875rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: 1.08rem; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: auto; aspect-ratio: 199.4 / 151.5; transition: transform .35s var(--ease); }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: scale(1.12); }
.site-header .brand__mark { width: 40px; }
.brand__name span { color: var(--muted); font-weight: 450; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .94rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.site-nav .nav-cta, .site-nav .nav-cta[aria-current="page"] { margin-left: 8px; background: var(--ink); color: var(--bg); }
.site-nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.site-nav .nav-cta[aria-current="page"]::after { display: none; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 1.75px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; color: var(--ink); }
  .site-nav a:hover { background: none; color: var(--accent); }
  .site-nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .site-nav .nav-cta, .site-nav .nav-cta[aria-current="page"] { margin: 20px 0 0; padding: 14px; border: 0; border-radius: 999px; text-align: center; color: var(--bg); }
}

/* Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px 32px; font-size: .92rem; color: var(--muted); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer__grid h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__grid a { text-decoration: none; }
.footer__brand p { max-width: 34ch; margin-top: 14px; }
.footer__contact li { display: flex; gap: 10px; align-items: center; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* CTA band ----------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .h2 { margin-bottom: .4em; }
.cta-band p { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* Reveal on scroll (enabled by JS; content is visible without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { padding-block: clamp(40px, 8vw, 112px) clamp(44px, 6.5vw, 84px); }
.hero__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 900px); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 2rem; }
.hero__loc { display: flex; align-items: center; gap: 8px; margin-top: 2.25rem; font-size: .9rem; color: var(--muted); }
.hero__loc .icon { color: var(--accent); }
/* Small round photo with name beside it, above the headline (all screen sizes). */
.portrait { order: -1; display: flex; align-items: center; gap: 14px; margin: 0; }
.portrait img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
.portrait figcaption { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.35; }
.portrait figcaption strong { font-weight: 600; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.service > .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 28px; }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); flex: 1; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .h2 { margin: 0; }


/* ==========================================================================
   Process
   ========================================================================== */
.page-hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.page-hero .lede { margin-top: 1.25rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 1px solid var(--ink); }
.step { position: relative; padding: 24px 20px 8px 0; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 28px;
  font-family: var(--font-serif); font-weight: 500; font-size: 2.25rem; line-height: 1; color: var(--accent);
}
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); }
  .step { padding: 0 0 36px 32px; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
  .step::before { grid-row: span 2; margin: 0; font-size: 2.25rem; }
  .step::after { top: 6px; left: -5px; }
  .step h3 { margin-top: 6px; }
}
@media (max-width: 520px) { .step { grid-template-columns: 1fr; } .step::before { grid-row: auto; margin-bottom: 10px; } }

.feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 140px); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { margin: 0; position: relative; }
.feature__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__media figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.feature__num { font-family: var(--font-serif); font-weight: 500; color: var(--muted); font-size: 1.1rem; }
.feature h2 { margin-top: .25em; }
.feature p { color: var(--muted); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.promise li { padding-top: 18px; border-top: 1px solid var(--line); }
.promise strong { display: block; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise { grid-template-columns: 1fr; } }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.folio-hero { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.folio-hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.folio-hero .display { margin: 0; }
.folio-hero .display sup { font-family: var(--font-sans); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: .35em; position: relative; top: .6em; }

.folio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filters {
  position: relative; display: inline-flex; padding: 4px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.filters button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .25s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--accent-ink); }
.filters button small { font-size: .72rem; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.filters__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--accent);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.no-js .filters, .no-js .density { display: none; }
.density { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.density button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.density button:hover { color: var(--ink); }
.density button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.density .icon { width: 18px; height: 18px; }
@media (max-width: 700px) { .density { display: none; } }

.works {
  --cols: 3; --gap: clamp(12px, 1.6vw, 22px);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap); align-items: start;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.works.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.works.is-masonry .work { margin-bottom: var(--gap); }
.works[data-density="2"] { --cols: 2; }
@media (max-width: 1100px) { .works { --cols: 2; } }
@media (max-width: 700px) { .works, .works[data-density="2"] { --cols: 1; } }

.work { margin: 0; position: relative; }
.work--wide { grid-column: span 2; }
@media (max-width: 700px) { .work--wide { grid-column: auto; } }
.work[hidden] { display: none; }
.work a {
  position: relative; display: block; overflow: hidden; border-radius: 10px;
  background: var(--surface-2); cursor: zoom-in; isolation: isolate;
}
.work img { width: 100%; height: auto; transition: transform .9s var(--ease), opacity .5s var(--ease); }
.work a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0) 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.work figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.work__title { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.work__meta { color: var(--muted); font-size: .84rem; }
.work__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgb(10 10 10 / .6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) and (min-width: 701px) {
  .work figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px;
    color: #fff; pointer-events: none;
    opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .work__meta { color: rgb(255 255 255 / .75); }
  .work:hover a::after, .work:focus-within a::after { opacity: 1; }
  .work:hover figcaption, .work:focus-within figcaption { opacity: 1; transform: none; }
  .work:hover .work__tag, .work:focus-within .work__tag { opacity: 1; transform: none; }
  .work:hover img { transform: scale(1.04); }
  .works:hover .work:not(:hover) img { opacity: .55; }
}

/* Cursor badge that follows the pointer over the grid (desktop only). */
.view-cursor {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .25s var(--ease);
}
.view-cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
.has-view-cursor .work a { cursor: none; }
@media (hover: none), (prefers-reduced-motion: reduce) { .view-cursor { display: none; } }

/* Lightbox ----------------------------------------------------------------- */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(8 8 8 / .96); color: #f1efe9; overflow: hidden;
}
.lightbox::backdrop { background: rgb(8 8 8 / .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lb__count { font-size: .85rem; font-variant-numeric: tabular-nums; color: #a3a099; }
.lb__count b { color: #f1efe9; font-weight: 600; }
.lb__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .04); color: inherit; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lb__btn:hover { background: #ff6a3d; border-color: #ff6a3d; color: #141414; }
.lb__btn .icon { width: 20px; height: 20px; }
.lb__stage { --lb-x: clamp(8px, 7vw, 96px); --lb-b: 0px; position: relative; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb__stage img {
  position: absolute; inset: 0 var(--lb-x) var(--lb-b); margin: auto;
  width: auto; height: auto; max-width: calc(100% - var(--lb-x) * 2); max-height: calc(100% - var(--lb-b)); border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.lb__stage img.is-loading { opacity: 0; transform: scale(.985); }
.lb__prev, .lb__next { position: absolute; top: 50%; margin-top: -24px; }
.lb__prev { left: max(8px, calc(var(--gutter) - 8px)); }
.lb__next { right: max(8px, calc(var(--gutter) - 8px)); }
.lb__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; padding: 16px var(--gutter) 22px; text-align: center; }
.lb__caption strong { font-weight: 600; }
.lb__caption span { color: #a3a099; font-size: .9rem; }
.lb__spinner { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border: 2px solid rgb(255 255 255 / .2); border-top-color: #ff6a3d; border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lb__stage.is-busy .lb__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .lb__prev, .lb__next { top: auto; bottom: 8px; margin: 0; }
  .lb__stage { --lb-x: 8px; --lb-b: 64px; }
}
html.lb-open { overflow: hidden; }

/* ==========================================================================
   Hosting
   ========================================================================== */
/* Same font size and 60ch max width as .lede, so the box lines up with the intro paragraph. */
.domain-search { margin-top: clamp(32px, 5vw, 56px); max-width: 60ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.domain-search > *, .ds__results { font-size: 1rem; }
.domain-search h2 { font-size: 1.05rem; margin-bottom: 4px; }
.domain-search > p { color: var(--muted); font-size: .92rem; }
.ds__form { display: flex; gap: 10px; margin-top: 16px; }
.ds__field { position: relative; flex: 1; }
.ds__field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ds__field .input { padding-left: 46px; }
.ds__results { margin-top: 16px; }
.ds__results:empty { display: none; }
.ds-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ds-row__name { font-weight: 600; word-break: break-all; }
.ds-row__status { display: block; font-size: .85rem; font-weight: 500; }
.ds-row__status.is-ok { color: var(--ok); }
.ds-row__status.is-bad { color: var(--bad); }
.ds-row__buy { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.ds-row__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-row__price small { font-weight: 400; color: var(--muted); }
.ds-row--exact { border-top: 0; padding-top: 4px; }
.ds__sub { margin: 14px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ds__msg { padding: 12px 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) {
  .ds__form { flex-direction: column; }
  .ds-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.plan-bar__domain { min-height: 52px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs .icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .plan-bar__domain { width: 100%; }
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; }
  .tabs [role="tab"] { flex: 1; justify-content: center; padding: 0 8px; gap: 6px; font-size: .88rem; }
  .tabs .icon, .hide-sm { display: none; }
}
.no-js .tabs { display: none; }
.tab-panel + .tab-panel { margin-top: 64px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel__intro { max-width: 62ch; color: var(--muted); margin-bottom: 28px; }
.no-js .tab-panel__title, .tab-panel__title { font-size: 1.4rem; }
.js .tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan--pick { border-color: var(--ink); }
.plan__badge {
  position: absolute; top: -11px; left: 24px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.plan__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.plan__head .icon { width: 26px; height: 26px; color: var(--accent); }
.plan__head img { height: 22px; width: auto; }
.plan h3 { font-size: 1.2rem; margin: 0; }
.plan__tag { color: var(--muted); font-size: .92rem; min-height: 3em; margin: 6px 0 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price__amt { font-size: 2.1rem; font-weight: 650; letter-spacing: -.03em; line-height: 1; transition: opacity .3s; }
.price__amt.is-stale { opacity: .55; }
.price__term { color: var(--muted); font-size: .9rem; }
.price__was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price__was:empty { display: none; }
.plan__fine { color: var(--muted); font-size: .78rem; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: .93rem; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.plan form { margin: 0; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

.includes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.includes li { display: flex; gap: 14px; align-items: flex-start; }
.includes .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.includes strong { display: block; }
.includes span { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .includes { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.extra { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); text-decoration: none; transition: background-color .2s; }
.extra:hover { background: var(--surface-2); color: inherit; }
.extra .icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 10px; }
.extra strong { font-size: 1.02rem; }
.extra span { color: var(--muted); font-size: .9rem; flex: 1; }
.extra em { font-style: normal; font-weight: 600; font-size: .9rem; margin-top: 8px; }
@media (max-width: 960px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.account-bar p { margin: 0; }
.account-bar .btn { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.account-bar .btn:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.account-bar .btn--ghost { --btn-bg: transparent; --btn-fg: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.account-bar .btn--ghost:hover { --btn-fg: var(--accent); border-color: var(--accent); }

.fine-print { color: var(--muted); font-size: .8rem; max-width: 80ch; margin-top: 28px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside .display { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.contact-lines { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.contact-lines li > a, .contact-lines li > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.contact-lines .icon { color: var(--accent); }
.contact-lines strong { display: block; font-weight: 600; }
.contact-lines span { display: block; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.form { display: grid; gap: 22px; padding: clamp(22px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 600; }
.field label small, .field legend small { font-weight: 400; color: var(--muted); }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.55; }
.input:user-invalid { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); user-select: none;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: .94rem; }
.form-status:empty { display: none; }
.form-status.is-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-status.is-bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.form-done { text-align: center; padding: clamp(40px, 6vw, 72px) 12px; }
.form-done .icon { width: 44px; height: 44px; margin: 0 auto 18px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* 404 ------------------------------------------------------------------------ */
.notfound { min-height: 60vh; display: grid; align-content: center; }

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