/* ==========================================================================
   EASTWORKS STUDIO — agency showcase styles, v2.

   Design system in one breath: black canvas + one chartreuse accent (the
   brand, unchanged), Instrument Serif anchoring the personality with Geist
   supporting it, ONE star of the show (the hero's self-booking inbox), and
   the star's parts — the status dot, the booked tick, the glass card —
   rhymed across every section so the page feels like one universe.

   Depth is deliberate but quiet: film-grain noise on the canvas, glass
   panels, one glow. Text hierarchy is opacity-based (see tokens).

   Progressive enhancement contract (unchanged):
   - Everything VISIBLE and readable with no JS / no GSAP / reduced motion.
   - JS adds .is-gsap to <html> only when GSAP loaded AND motion allowed;
     scroll choreography styles hang off that class.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-4);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* DEPTH #1 — film grain over the whole canvas. Fixed so it doesn't repaint
   on scroll; faint enough that you feel it rather than see it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: var(--a-noise);
  opacity: 0.05;
}

h1, h2, h3 {
  font-family: var(--a-font-display);
  font-weight: 400;               /* Instrument Serif's only weight */
  line-height: 1.04;
  margin: 0 0 1rem;
  letter-spacing: 0.005em;
}
h1 em, h2 em {
  font-style: italic;
  color: var(--a-accent);
}
p { margin: 0 0 1rem; }
a { color: var(--a-ink); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(198, 255, 74, 0.3); }

.a-container { width: min(var(--a-maxw), 100% - 2 * var(--a-pad)); margin-inline: auto; }
.a-section { padding-block: var(--a-space-section); position: relative; }

/* RHYME #1 — the kicker's dot is the inbox status dot from the star. */
.a-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--a-fs-5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--a-ink-dim);
  margin-bottom: 1.2rem;
}
.a-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a-accent);
  box-shadow: 0 0 12px rgba(198, 255, 74, 0.55);
}

.a-heading { font-size: var(--a-fs-1); max-width: 24ch; color: var(--a-ink); }
.a-lead { font-size: var(--a-fs-3); color: var(--a-ink-mid); max-width: 54ch; }

/* ----- Buttons ----- */
.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-4);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--a-line);
  color: var(--a-ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
}
.a-btn:hover { transform: translateY(-1px); }
.a-btn:active { transform: scale(0.97); }
.a-btn--solid { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-accent-ink); }
.a-btn--solid:hover { background: #d8ff78; box-shadow: 0 6px 28px rgba(198, 255, 74, 0.25); }
.a-btn--ghost:hover { border-color: var(--a-accent); color: var(--a-accent); }

/* ----- Header — glass (rhymes with the star's cards) ----- */
.a-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(rgba(10, 11, 13, 0.82), rgba(10, 11, 13, 0.5));
  border-bottom: 1px solid var(--a-line);
}
.a-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.a-brand {
  font-family: var(--a-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--a-ink);
}
.a-brand em { font-style: italic; color: var(--a-accent); }
.a-nav { display: none; gap: 2rem; }
.a-nav a {
  text-decoration: none;
  color: var(--a-ink-mid);
  font-size: var(--a-fs-5);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.a-nav a:hover { color: var(--a-ink); }
.a-header .a-btn { padding: 0.5rem 1.1rem; font-size: var(--a-fs-5); }
@media (min-width: 56rem) { .a-nav { display: flex; } }

/* ==========================================================================
   HERO — headline left, THE STAR right: an enquiry booking itself.
   ========================================================================== */
.a-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.a-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(56% 44% at 74% 30%, rgba(198, 255, 74, 0.1), transparent 65%),
    radial-gradient(45% 38% at 10% 85%, rgba(198, 255, 74, 0.05), transparent 60%);
}
.a-hero__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--a-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--a-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 65% at 50% 40%, rgba(0, 0, 0, 0.5), transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 40%, rgba(0, 0, 0, 0.5), transparent 78%);
}
.a-hero__inner {
  padding-block: 8rem 5rem;
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .a-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.a-hero__eyebrow {
  font-size: var(--a-fs-5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--a-ink-dim);
  margin-bottom: 1.6rem;
}
.a-hero__eyebrow strong { color: var(--a-accent); font-weight: 600; }
.a-hero__title {
  font-size: var(--a-fs-mega);
  max-width: 13ch;
  margin-bottom: 1.6rem;
}
.a-hero__title .a-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.a-hero__title .a-w > span { display: inline-block; }
/* 100% opacity — the one thing the page wants read first (hierarchy #1) */
.a-hero__sub {
  font-size: var(--a-fs-3);
  color: var(--a-ink-mid);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}
.a-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.a-hero__scrollcue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  font-size: var(--a-fs-5);
  color: var(--a-ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* THE STAR — three glass cards telling the whole business in one glance.
   Everything else on the page borrows from these three cards. */
.a-hero__star {
  display: grid;
  gap: 0.9rem;
  position: relative;
  max-width: 24rem;
  justify-self: center;
  width: 100%;
}
.a-hero__star::before {
  /* the glow the cards float in — DEPTH #2 */
  content: "";
  position: absolute;
  inset: -15% -20%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(198, 255, 74, 0.12), transparent 70%);
  z-index: -1;
}
.a-mini {
  background: var(--a-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--a-shadow-lift);
}
.a-mini p { margin: 0; font-size: var(--a-fs-5); line-height: 1.55; color: var(--a-ink-hi); }
.a-mini__from {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--a-ink-dim);
  margin-bottom: 0.4rem;
}
.a-mini__from b { color: var(--a-ink); font-weight: 600; }
.a-mini__from i {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-accent);
  border: 1px solid rgba(198, 255, 74, 0.4);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.a-mini__from span { margin-left: auto; }
.a-mini--in  { rotate: -1.2deg; }
.a-mini--ai  { rotate: 1deg; translate: 6% 0; border-color: rgba(198, 255, 74, 0.25); }
.a-mini--booked {
  rotate: -0.6deg;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  border-color: rgba(198, 255, 74, 0.45);
  background: linear-gradient(rgba(198, 255, 74, 0.09), rgba(198, 255, 74, 0.03)), var(--a-bg-glass);
}
.a-mini--booked b { display: block; font-size: var(--a-fs-4); font-weight: 600; }
.a-mini--booked span { color: var(--a-ink-dim); font-size: 0.75rem; }
/* RHYME #2 origin — the booked tick. Reappears in pricing and the panel. */
.a-tick {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a-accent);
  color: var(--a-accent-ink);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(198, 255, 74, 0.4);
}
/* The star breathes — but only for people who want motion. */
@media (prefers-reduced-motion: no-preference) {
  .a-mini { animation: a-float 7s ease-in-out infinite; }
  .a-mini--ai { animation-delay: -2.3s; }
  .a-mini--booked { animation-delay: -4.6s; }
  @keyframes a-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

/* ----- Proof strip ----- */
.a-proof { border-block: 1px solid var(--a-line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.a-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (min-width: 56rem) { .a-proof__grid { grid-template-columns: repeat(4, 1fr); } }
.a-proof dt {
  font-family: var(--a-font-display);
  font-size: var(--a-fs-num);
  color: var(--a-ink);
  line-height: 1;
}
.a-proof dt sup { font-size: 0.45em; color: var(--a-accent); }
.a-proof dd {
  margin: 0.5rem 0 0;
  color: var(--a-ink-dim);
  font-size: var(--a-fs-5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ----- Portfolio rail ----- */
.a-rail { overflow: hidden; }
.a-rail__head { margin-bottom: 3rem; }
.a-rail__viewport { overflow-x: auto; scrollbar-width: thin; padding-bottom: 1rem; }
@media (min-width: 896px) {
  .is-gsap .a-rail__viewport { overflow-x: visible; padding-bottom: 0; }
}
.a-rail__track { display: flex; gap: clamp(1rem, 2.5vw, 2rem); width: max-content; }

.a-work {
  width: clamp(19rem, 38vw, 27rem);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--a-ink);
  background: var(--a-bg-raise);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.a-work:hover {
  border-color: rgba(198, 255, 74, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--a-shadow-lift);
}
/* CSS mini-site preview (no screenshots to go stale; mirrors each demo's palette) */
.a-work__preview { padding: 1rem 1rem 0; }
.a-work__screen {
  border-radius: var(--a-radius-sm) var(--a-radius-sm) 0 0;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-bottom: 0;
}
.a-work__chrome { display: flex; gap: 5px; padding: 7px 9px; background: #1D2126; }
.a-work__chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 243, 238, 0.18); }
.a-work__hero { padding: 1.6rem 1.1rem 1.4rem; background: var(--p1); }
.a-work__hero b {
  display: block;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--p3);
  margin-bottom: 0.7rem;
  max-width: 15ch;
}
.a-work__pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--p1);
  background: var(--p2);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.02em;
}
.a-work__rows { background: var(--p3); padding: 0.9rem 1.1rem 1rem; display: grid; gap: 7px; }
.a-work__rows i { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--p1) 22%, transparent); }
.a-work__rows i:last-child { width: 62%; }
.a-work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
}
.a-work__meta h3 { font-size: 1.35rem; margin: 0; }
.a-work__meta p { margin: 0; color: var(--a-ink-dim); font-size: var(--a-fs-5); }
.a-work__chips { display: flex; gap: 5px; }
.a-work__chips i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--a-line); }
.a-work--soon { opacity: 0.55; pointer-events: none; }
.a-work--soon .a-work__meta p::after { content: " — in the workshop"; color: var(--a-accent); }

/* ----- Automation showcase ----- */
.a-auto__grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) {
  .a-auto__grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
  .a-auto__panelwrap { position: sticky; top: 12vh; align-self: start; }
}
.a-auto__steps { display: grid; gap: clamp(2.5rem, 8vh, 5rem); padding-block: 2rem; }
.a-step { border-left: 1px solid var(--a-line); padding-left: 1.5rem; transition: border-color 0.3s; }
.a-step.is-active { border-left-color: var(--a-accent); }
.a-step__n {
  font-size: var(--a-fs-5);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--a-accent);
}
.a-step h3 { font-size: var(--a-fs-2); margin: 0.4rem 0 0.6rem; }
.a-step p { color: var(--a-ink-mid); margin: 0; max-width: 44ch; }

/* The inbox panel — the star, grown up. Same glass, same dot, same tick. */
.a-panel {
  background: var(--a-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-lift);
  padding: 1.3rem;
  display: grid;
  gap: 0.9rem;
  min-height: 24rem;
  align-content: start;
}
.a-panel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--a-ink-dim);
  font-size: var(--a-fs-5);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--a-line);
}
.a-panel__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a-accent);
  box-shadow: 0 0 10px rgba(198, 255, 74, 0.5);
}
.a-card {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 0.9rem 1rem;
  background: rgba(10, 11, 13, 0.5);
}
.a-card__from {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--a-ink-dim);
  margin-bottom: 0.35rem;
}
.a-card__from b { color: var(--a-ink); font-weight: 600; }
.a-card p { margin: 0; font-size: var(--a-fs-5); line-height: 1.55; color: var(--a-ink-hi); }
/* The tradesperson's own reply. No "AI" label: he writes the price himself. */
.a-card--reply { border-color: rgba(198, 255, 74, 0.3); }
.a-card p b { color: var(--a-ink); font-weight: 600; }
.a-card--cal {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  border-color: rgba(198, 255, 74, 0.45);
  background: linear-gradient(rgba(198, 255, 74, 0.09), rgba(198, 255, 74, 0.03)), rgba(10, 11, 13, 0.5);
}
.a-card--cal time {
  display: grid;
  place-items: center;
  background: var(--a-accent);
  color: var(--a-accent-ink);
  border-radius: var(--a-radius-sm);
  padding: 0.5rem 0.65rem;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
}
.a-card--cal b { display: block; font-size: var(--a-fs-4); font-weight: 600; }
.a-card--cal span { color: var(--a-ink-dim); font-size: 0.75rem; }

/* ----- Pricing ----- */
/* Two tiers share the full container width, so neither side of the page
   reads as an empty slot waiting for a third card. */
.a-tiers { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 60rem) { .a-tiers { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }
.a-tiers__note { margin: 2rem 0 0; text-align: center; color: var(--a-ink-mid); font-size: var(--a-fs-5); }
.a-tiers__note a { color: var(--a-accent); }
.a-tier {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 2rem 1.8rem;
  background: var(--a-bg-raise);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.a-tier:hover { transform: translateY(-4px); box-shadow: var(--a-shadow-lift); }
/* Featured tier gets the star treatment: glass + glow */
.a-tier--featured {
  border-color: rgba(198, 255, 74, 0.5);
  background: linear-gradient(rgba(198, 255, 74, 0.05), transparent 40%), var(--a-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--a-glow);
  position: relative;
}
.a-tier__flag {
  position: absolute;
  top: -0.75rem;
  left: 1.8rem;
  background: var(--a-accent);
  color: var(--a-accent-ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.a-tier h3 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.a-tier__price {
  font-family: var(--a-font-display);
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
}
.a-tier__price span {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-5);
  color: var(--a-ink-dim);
}
.a-tier ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--a-ink-mid);
  font-size: var(--a-fs-5);
  line-height: 1.55;
}
/* RHYME #2 again — every feature is a booked tick. */
.a-tier li { padding-left: 1.5rem; position: relative; }
.a-tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--a-accent);
  font-weight: 700;
}
.a-tier .a-btn { margin-top: auto; justify-content: center; }

/* ----- Process ----- */
.a-process__grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 56rem) { .a-process__grid { grid-template-columns: repeat(4, 1fr); } }
.a-process__item { border-top: 1px solid var(--a-line); padding-top: 1.3rem; }
.a-process__item b {
  font-size: var(--a-fs-5);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--a-accent);
}
.a-process__item h3 { font-size: 1.5rem; margin: 0.5rem 0; }
.a-process__item p { color: var(--a-ink-mid); font-size: var(--a-fs-5); line-height: 1.6; margin: 0; }

/* ----- Contact ----- */
.a-contact__grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 60rem) { .a-contact__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.a-contact__email {
  font-family: var(--a-font-display);
  font-size: var(--a-fs-2);
  font-style: italic;
  color: var(--a-accent);
  text-decoration: none;
}
.a-contact__email:hover { text-decoration: underline; }
.a-form { display: grid; gap: 1.1rem; }
.a-form label {
  font-size: var(--a-fs-5);
  font-weight: 500;
  color: var(--a-ink-dim);
  display: block;
  margin-bottom: 0.4rem;
}
.a-form input, .a-form textarea {
  width: 100%;
  font: inherit;
  color: var(--a-ink);
  background: var(--a-bg-raise);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.a-form input:focus, .a-form textarea:focus {
  outline: none;
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(198, 255, 74, 0.15);
}
.a-form .field--error input, .a-form .field--error textarea { border-color: #E8642C; }
.a-form .field__error { display: none; color: #E8642C; font-size: var(--a-fs-5); margin: 0.35rem 0 0; }
.a-form .field--error .field__error { display: block; }
.a-form-status { font-weight: 600; margin: 0; }
.a-form-status--ok { color: var(--a-accent); }
.a-form-status--err { color: #E8642C; }

/* ----- Footer ----- */
.a-footer { border-top: 1px solid var(--a-line); padding-block: 2.5rem; color: var(--a-ink-dim); font-size: var(--a-fs-5); }
.a-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.a-footer a { color: var(--a-ink-mid); }
.a-footer a:hover { color: var(--a-ink); }

/* ----- Cookie banner — same glass as everything raised ----- */
.a-cookie {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--a-bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-lift);
  padding: 1.25rem;
  font-size: var(--a-fs-5);
  color: var(--a-ink-mid);
}
.a-cookie[hidden] { display: none; }
.a-cookie a { color: var(--a-ink); }
.a-cookie__actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.a-cookie .a-btn { padding: 0.45rem 1rem; font-size: var(--a-fs-5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
