/* ==========================================================================
   Neon Pearl — site styles
   Layout concept: an editorial type poster. Oversized left-aligned headlines,
   hairline-divided numbered service rows, one charcoal contact band.
   Coral is used sparingly: the pearl dot, the asterisk, the CTA, focus rings.
   ========================================================================== */

:root {
  /* Color — brand palette (single, deliberate light identity) */
  --ivory: #FAF9F6;          /* page ground */
  --charcoal: #191919;       /* ink */
  --coral: #FF5D78;          /* brand coral: fills, marks, text on charcoal (5.9:1) */
  --coral-ink: #D6264A;      /* coral for TEXT on ivory (4.7:1, WCAG AA) */
  --white: #FFFFFF;
  --muted: #55514C;          /* secondary text on ivory (7.4:1) */
  --rule: #DEDAD3;           /* hairline dividers, warm-biased grey */
  --ivory-dim: #BDB9B1;      /* secondary text on charcoal (8.9:1) */

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (fluid) */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.75rem);
  --step-4: clamp(3rem, 1.4rem + 7.4vw, 8.75rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(5rem, 3rem + 9vw, 11rem);
  --max: 1360px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the phone safe-area band above the sticky header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ivory);
}

a { color: inherit; }
::selection { background: var(--coral); color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--charcoal); color: var(--ivory);
  padding: .6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* Shared wrapper: one place for the side gutter */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--case { text-transform: none; } /* keeps the lowercase "e" in eCOMMERCE */

/* --------------------------------------------------------------------------
   Wordmark: "neon pearl." with a coral pearl for the full stop
   -------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.035em;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.pearl {
  position: relative;
  display: inline-block;
  width: .36em; height: .36em;
  margin-left: .08em;
  border-radius: 50%;
  background: var(--coral);
  transition: transform .5s var(--ease);
}
/* the pearl's sheen: a second, smaller circle (no gradient) */
.pearl::after {
  content: ""; position: absolute;
  width: 32%; height: 32%; top: 18%; left: 22%;
  border-radius: 50%; background: var(--white); opacity: .85;
}
.wordmark:hover .pearl { transform: translateY(-.32em) scale(1.15); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.15rem;
}
.nav ul {
  display: flex; gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  position: relative;
  font-size: .95rem; font-weight: 500;
  text-decoration: none;
  padding-block: .35rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero .wrap {
  padding-block: clamp(3.5rem, 2rem + 8vw, 9.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem);
  display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: var(--step-4);
  line-height: .9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .marked { position: relative; margin-right: .3em; }
.hero h1 .line--quiet { color: var(--charcoal); }

/* The asterisk: sits after "Better" like a footnote mark */
.asterisk {
  position: absolute;
  top: -.02em; right: -.42em;
  width: .36em; height: .36em;
  color: var(--coral);
}
.asterisk svg { width: 100%; height: 100%; display: block; }

.hero-foot {
  display: grid; gap: 1.75rem;
  align-items: end;
  padding-top: .5rem;
}
.lede {
  margin: 0;
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--charcoal);
}

/* Primary CTA: coral fill, charcoal text (5.9:1) */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  justify-self: start;
  background: var(--coral);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1rem 1.6rem 1rem 1.75rem;
  border-radius: 999px;
  transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--charcoal); color: var(--ivory); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }

@media (min-width: 820px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .btn { justify-self: end; }
}

/* --------------------------------------------------------------------------
   Marquee strip of practice areas
   -------------------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--charcoal);
  overflow: hidden;
  white-space: nowrap;
}
.strip-track {
  display: inline-flex;
  animation: marquee 48s linear infinite;
}
.strip ul {
  display: inline-flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.strip li {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: .95rem 1.5rem .95rem 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strip li::after {
  content: "✱"; color: var(--coral); font-size: 1rem; letter-spacing: 0;
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections (shared)
   -------------------------------------------------------------------------- */
.section > .wrap { padding-block: var(--section); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: var(--step-3);
  line-height: .95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Services: numbered rows with hairline dividers
   -------------------------------------------------------------------------- */
.services-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--charcoal); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem 2rem;
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  border-bottom: 1px solid var(--charcoal);
}
/* coral line that draws across the divider on hover */
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

.service-spark {
  display: block;
  width: 1.6rem; height: 1.6rem;
  color: var(--coral);
}
.service-spark svg { width: 100%; height: 100%; display: block; animation: spin 14s linear infinite; }
/* offset each spark so the three never turn in lockstep */
.service:nth-child(2) .service-spark svg { animation-delay: -4.6s; }
.service:nth-child(3) .service-spark svg { animation-delay: -9.3s; }

.service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  font-size: var(--step-2);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  transition: transform .5s var(--ease);
}
.service:hover h3 { transform: translateX(.35rem); }

.service-body { display: grid; gap: .9rem; min-width: 0; }
.service-tagline {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}
.service-desc { margin: 0; max-width: 58ch; color: var(--muted); }
.service-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: .35rem 0 0; padding: 0;
}
.service-tags li {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border: 1px solid var(--coral);
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--white);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .service-spark { margin-top: .55rem; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
/* About: one ivory field. The three-line headline leads; below it a plain
   rectangular portrait (left) and the story (right), top-aligned. */
.about { background: var(--ivory); border-top: 1px solid var(--rule); }
.about > .wrap { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }

.about-grid { display: grid; gap: clamp(2rem, 1rem + 2.5vw, 3.25rem); }
.about-head { display: grid; gap: 1.25rem; }
.about-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.5rem, 1rem + 6.4vw, 7.25rem);
  line-height: .9;
  letter-spacing: -0.045em;
}
.about-title .line { display: block; }

/* The coral pearl as the headline's full stop */
.headline-pearl {
  position: relative;
  display: inline-block;
  width: .19em; height: .19em;
  margin-left: .015em;   /* tucked in where a period would sit */
  border-radius: 50%;
  background: var(--coral);
}
.headline-pearl::after {
  content: ""; position: absolute;
  width: 32%; height: 32%; top: 18%; left: 22%;
  border-radius: 50%; background: var(--white); opacity: .85;
}

.about-body { display: grid; gap: 1.75rem; }
.about-portrait { margin: 0; width: min(60%, 240px); min-width: 0; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy { display: grid; align-content: start; gap: 1.1rem; max-width: 50ch; min-width: 0; }
.about-copy p { margin: 0; }
.about-copy p:first-child { font-size: var(--step-1); line-height: 1.4; font-weight: 500; }
.about-copy p:not(:first-child) { color: var(--muted); }
.about-copy .signoff {
  color: var(--charcoal) !important;
  font-weight: 600;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .about-body {
    grid-template-columns: 280px minmax(0, 50ch);
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: start;
  }
  .about-portrait { width: 100%; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Contact: the one charcoal band
   -------------------------------------------------------------------------- */
.contact { background: var(--charcoal); color: var(--ivory); }
.contact .eyebrow { color: var(--ivory-dim); }
.contact .wrap { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: var(--step-4);
  line-height: .9;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-wrap: balance;
}
.contact p.contact-lede { margin: 0; max-width: 40ch; font-size: var(--step-1); line-height: 1.45; color: var(--ivory-dim); }

.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1rem; }
.email {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 104;
  font-size: clamp(1.45rem, .6rem + 3.9vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ivory);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--coral), var(--coral)); /* solid underline bar */
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: .1em;
  transition: color .3s ease, background-size .45s var(--ease);
}
.email:hover { color: var(--coral); background-size: 100% 6px; }

.copy-btn {
  font: 500 .85rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--ivory-dim);
  border-radius: 999px;
  padding: .7rem 1rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.copy-btn:hover { border-color: var(--coral); color: var(--coral); }
.copy-btn:focus-visible { outline-color: var(--coral); }
.contact :focus-visible { outline-color: var(--coral); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--ivory-dim); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid #3A3835;
}
.site-footer .wordmark { color: var(--ivory); }
.site-footer small { font-size: .85rem; }

/* --------------------------------------------------------------------------
   Load-in motion (content is visible at rest; this only polishes the entrance)
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero .eyebrow, .hero h1 .line, .hero-foot { animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(1) { animation-delay: .08s; }
.hero h1 .line:nth-child(2) { animation-delay: .18s; }
.hero-foot { animation-delay: .32s; }
.asterisk svg { animation: spin 14s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .strip { white-space: normal; }
  .strip-track { display: block; }
  .strip ul[aria-hidden="true"] { display: none; }
  .strip ul { flex-wrap: wrap; }
}

/* Small screens */
@media (max-width: 520px) {
  .wordmark { font-size: 1.15rem; }
  .nav a { font-size: .9rem; }
  .nav ul { gap: .9rem; }
  .btn { width: 100%; justify-content: center; }
}
