/* =====================================================================
   DG Web Designs — dawnagrace.online
   Design system: paper-and-ink, one warm-amber accent.
   Fraunces (display) + Work Sans (body). Left-aligned editorial grid.
   ===================================================================== */

/* ---- Tokens ---- */
:root {
  --paper:      #FAF8F4;
  --ink:        #1C1A17;
  --ink-soft:   #5B564D;
  --accent:     #A8632C;
  --accent-ink: #8C4E1E;   /* darker amber for hover/contrast on text */
  --line:       #DDD6C9;
  --surface:    #F1ECE3;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale — 1.333 (fourth), body 17px */
  --fs-body:  1.0625rem;   /* 17px */
  --fs-sm:    0.9375rem;   /* 15px */
  --fs-xs:    0.8125rem;   /* 13px */
  --fs-h4:    clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h3:    clamp(1.5rem, 2.4vw, 2rem);
  --fs-h2:    clamp(1.9rem, 3.4vw, 2.7rem);
  --fs-h1:    clamp(2.4rem, 5.2vw, 3.9rem);

  /* Layout */
  --margin:  max(1.5rem, 5vw);       /* the single consistent left margin */
  --maxw:    1180px;
  --gap:     clamp(1.5rem, 3vw, 2.75rem);

  --lh-tight: 1.08;
  --lh-body:  1.62;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

strong { font-weight: 600; }

/* ---- Focus states (keyboard) ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 52ch; }
.section__head h2 { margin-bottom: 0.6rem; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Buttons / CTAs ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* Text link with amber underline (a "small mark") */
.link-mark {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 2px;
  transition: background-size .2s var(--ease), color .2s var(--ease);
}
.link-mark:hover { color: var(--accent-ink); background-size: 100% 100%; background-image: linear-gradient(var(--surface), var(--surface)); }

/* ==================================================================
   Site header / nav
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: clamp(34px, 3.8vw, 50px); width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a:not(.btn)[aria-current="page"] { color: var(--accent-ink); }
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent);
  transition: right .22s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links .btn { padding: 0.55rem 1rem; }
.nav__links .btn::after { display: none; }

.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line); color: var(--ink);
    width: 42px; height: 40px; cursor: pointer; padding: 0;
  }
  .nav__links {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--margin) 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a, .nav__links a.btn { border-bottom: 0; }
  .nav__links .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
}

/* ==================================================================
   Browser-frame treatment (the primary graphic device)
   ================================================================== */
.frame {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.frame__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfc6b6; display: block; }
.frame__url {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
a.frame__url {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
a.frame__url:hover,
a.frame__url:focus-visible { color: var(--accent-ink); border-color: var(--accent); }
.frame__view {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.frame__view img { width: 100%; display: block; }

/* Cropped "peek" of a long screenshot — shows the top, no scroll */
.frame__view--crop { max-height: 62vh; }
.frame__view--crop img { object-fit: cover; object-position: top center; }

/* Screenshot is clickable to open the full image */
.frame__view--zoom { cursor: zoom-in; }
.frame__view--zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==================================================================
   Lightbox (full screenshot viewer)
   ================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 4vw, 3rem);
  text-align: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  display: inline-block; vertical-align: top;
  max-width: min(1100px, 94vw); width: auto; height: auto;
  background: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
}
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem; z-index: 1;
  width: 44px; height: 44px; padding: 0;
  font-family: var(--font-body); font-size: 1.6rem; line-height: 1;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.lightbox__close:hover { background: var(--ink); color: var(--paper); }
.lightbox__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==================================================================
   Hero (Home)
   ================================================================== */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 3.8vw, 3.15rem); }
.hero__copy .accent-word { color: var(--accent); font-style: italic; }
.hero__copy .lede { margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; align-items: center; }
.hero__note { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 1.25rem; }

/* single deliberate entrance moment — hero showcase only */
.hero__show { align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero__show {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: heroIn 0.9s var(--ease) 0.15s forwards;
  }
  .hero__copy > * {
    opacity: 0;
    transform: translateY(10px);
    animation: copyIn 0.7s var(--ease) forwards;
  }
  .hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero__copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero__copy > *:nth-child(3) { animation-delay: 0.23s; }
  .hero__copy > *:nth-child(4) { animation-delay: 0.32s; }
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes copyIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__show { order: -1; }
}

/* ---- Lead hero (text-only, left-aligned) ---- */
.hero--lead { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero--lead .wrap { position: relative; z-index: 1; }
.hero__lead { max-width: none; }

/* Decorative "signal" rings, bleeding off the top-right */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__rings { position: absolute; top: clamp(-280px, -14vw, -120px); right: clamp(-220px, -9vw, -80px); width: min(940px, 74vw); height: auto; }
.hero__rings circle { fill: none; stroke: var(--accent); vector-effect: non-scaling-stroke; }
.hero__rings .hero__pin { fill: var(--accent); stroke: none; }
@media (max-width: 760px) {
  .hero__rings { top: -200px; right: -230px; width: 460px; }
}
@keyframes decoIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ringBreathe {
  0%, 100% { transform: scale(0.98);  opacity: 0.72; }
  50%      { transform: scale(1.035); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bg, .deco { animation: decoIn 1.2s var(--ease) both; }
  .hero__rings, .deco svg { transform-origin: center; animation: ringBreathe 8.5s ease-in-out 1s infinite; }
}

/* ---- Reusable faint ring decoration (echoes the hero motif) ---- */
.how, .cta-band { position: relative; overflow: hidden; }
.how > .wrap, .cta-band > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco svg { position: absolute; height: auto; }
.deco circle { fill: none; stroke: var(--accent); vector-effect: non-scaling-stroke; }
.deco .pin { fill: var(--accent); stroke: none; }
.how .deco svg { bottom: clamp(-200px, -12vw, -100px); left: clamp(-180px, -8vw, -90px); width: min(560px, 48vw); }
.cta-band .deco { display: flex; align-items: center; justify-content: flex-end; }
.cta-band .deco svg { position: static; margin-right: clamp(-240px, -11vw, -110px); width: min(600px, 46vw); }
.cta-band .deco circle { stroke: var(--paper); }
.cta-band .deco .pin { fill: var(--accent); }
@media (max-width: 760px) {
  .how .deco svg { width: 340px; bottom: -120px; left: -150px; }
  .cta-band .deco svg { width: 360px; margin-right: -170px; }
}

/* Generic deco placement, reused across pages */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco--tr svg { top: clamp(-260px, -13vw, -120px); right: clamp(-210px, -8vw, -80px); width: min(700px, 56vw); }
.deco--bl svg { bottom: clamp(-200px, -12vw, -100px); left: clamp(-180px, -8vw, -90px); width: min(560px, 48vw); }
@media (max-width: 760px) {
  .deco--tr svg { width: 400px; top: -150px; right: -190px; }
  .deco--bl svg { width: 340px; bottom: -120px; left: -150px; }
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.hero__eyebrow-mark { width: 2rem; height: 1px; background: var(--accent); flex: 0 0 auto; }
.hero--lead h1 {
  font-size: clamp(2.55rem, 6.2vw, 5rem);
  line-height: 1.03;
  max-width: 46rem;
  margin-bottom: 1.4rem;
}
.hero--lead h1 .accent-word { color: var(--accent); font-style: italic; }
.hero--lead .lede { max-width: 36ch; margin-bottom: 1.9rem; }
.hero--lead .hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; }

.hero__checks {
  list-style: none; margin: 2.1rem 0 0; padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  max-width: none;
}
.hero__checks li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.hero__checks li::before { content: "\2713"; color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero__lead > * { opacity: 0; transform: translateY(10px); animation: copyIn 0.7s var(--ease) forwards; }
  .hero__lead > *:nth-child(1) { animation-delay: 0.04s; }
  .hero__lead > *:nth-child(2) { animation-delay: 0.12s; }
  .hero__lead > *:nth-child(3) { animation-delay: 0.20s; }
  .hero__lead > *:nth-child(4) { animation-delay: 0.28s; }
  .hero__lead > *:nth-child(5) { animation-delay: 0.36s; }
}

/* ==================================================================
   Mockup treatment (homepage) — polished device/product image,
   no browser chrome. Clicking a mockup opens the project on Work.
   ================================================================== */
.mockup { display: block; overflow: hidden; background: transparent; }
.mockup img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s var(--ease);
}
.project__media--mockup { display: block; text-decoration: none; }
.project__media--mockup:hover .mockup img { transform: scale(1.02); }
.mockup--hero img { aspect-ratio: 4 / 3; }

/* ==================================================================
   Selected work grid
   ================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--gap);
}
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.project { display: flex; flex-direction: column; }
.project .frame { transition: transform .3s var(--ease), border-color .3s var(--ease); }
.project a.project__media { text-decoration: none; display: block; }
.project a.project__media:hover .frame { transform: translateY(-4px); border-color: #c9bfad; }
.project__body { padding-top: 1.15rem; }
.project__name { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.project__name a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
.project__name a:hover, .project__name a:focus-visible { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.project__name .tag { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--accent-ink); margin-left: 0.6rem; letter-spacing: 0.02em; vertical-align: middle; }
.project__desc { color: var(--ink-soft); font-size: 1rem; max-width: 46ch; margin-bottom: 0.75rem; }
.project__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.project__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.project__meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* Multiple screenshots stack within a case-study media column */
.project__shots { display: grid; gap: 1rem; }

/* Pagination (Work page) — reuses the site .btn / .btn--ghost styles */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; margin-top: clamp(2.25rem, 4vw, 3.5rem); }
.pager:empty { display: none; }
.pager__btn { padding: 0.6rem 0.95rem; min-width: 2.85rem; justify-content: center; }
.pager__btn.is-current { cursor: default; }
.pager__btn.is-current:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__btn:disabled { opacity: 0.4; cursor: default; }
.pager__btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--line); }

/* Case-study row — media beside copy (used on the Work page) */
.project--wide { grid-column: 1 / -1; }
.project--wide .project__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.project--wide .project__body { padding-top: 0; }
.project--wide .project__name { font-size: var(--fs-h3); }
.project--wide .project__desc { font-size: 1.08rem; max-width: 40ch; }
@media (max-width: 760px) {
  .project--wide .project__inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==================================================================
   Other design work strip
   ================================================================== */
.strip { background: var(--surface); border-block: 1px solid var(--line); }
.strip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 760px) { .strip__grid { grid-template-columns: 1fr; } }

/* ==================================================================
   "Why work with me"
   ================================================================== */
.why__mark {
  display: block;
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(84px, 9vw, 140px);
  line-height: 0.62;
  margin: 0 0 0.12em -0.04em;
  color: var(--accent); opacity: 0.32;
  pointer-events: none; user-select: none;
}

.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 760px) { .why__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.why p { font-size: 1.15rem; line-height: 1.6; margin-bottom: 1.15rem; }
.why p:first-of-type { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); }

/* ==================================================================
   How it works — numbered steps (a real sequence)
   ================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.steps h4 { margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ==================================================================
   Closing CTA band
   ================================================================== */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band h2 { color: var(--paper); max-width: 20ch; margin-bottom: 1.25rem; }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 1.15rem; max-width: 52ch; margin-bottom: 2rem; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: transparent; color: var(--paper); }
.cta-band a.plain { color: var(--paper); }

/* ==================================================================
   Services page
   ================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); padding: 1.75rem 1.6rem; background: var(--paper); display: flex; flex-direction: column; }
.tier--feature { background: var(--surface); border-color: var(--ink); }
.tier__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.3rem; }
.tier__for { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.tier ul { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.7rem; }
.tier li { position: relative; padding-left: 1.5rem; font-size: 1rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }

.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .addons { grid-template-columns: 1fr; } }
.addon { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.addon:nth-child(odd) { padding-right: clamp(1.5rem, 4vw, 3rem); }
.addon:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3rem); border-left: 1px solid var(--line); }
@media (max-width: 640px) { .addon:nth-child(even) { padding-left: 0; border-left: 0; } }
.addon h4 { margin-bottom: 0.35rem; }
.addon p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.compare__col h4 { margin-bottom: 0.5rem; }
.compare__col--me { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.compare__col p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ==================================================================
   Contact page
   ================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; gap: 2rem; } }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form__note { font-size: var(--fs-sm); color: var(--ink-soft); }
.contact__aside h3 { margin-bottom: 0.75rem; }
.contact__mail { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; }
.contact__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__list li { padding-top: 1rem; border-top: 1px solid var(--line); }
.contact__list strong { display: block; }
.contact__list span { color: var(--ink-soft); font-size: 1rem; }

/* ==================================================================
   Footer
   ================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer__brand img { height: clamp(42px, 4.4vw, 58px); width: auto; margin-bottom: 0.85rem; }
.footer__brand p { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 34ch; }
.footer__nav { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.footer__nav h5 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 0.75rem; font-weight: 600; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.footer__nav a:hover { color: var(--accent-ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---- Utility ---- */
.eyebrow-none {} /* intentionally no all-caps eyebrow labels above headings */
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
