/* Namingo.com
   Layout: one scrolling page, left-aligned, alternating black / white fields, one yellow field at the close. */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --accent: #ffd60a;
  --text-muted: #3d3d3d;        /* body copy on white */
  --text-on-dark: #e6e6e6;      /* body copy on black */
  --text-on-dark-muted: #c9c9c9;
  --font: 'Archivo', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);
  --rule: 4px;
  color-scheme: light;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1344px; margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--ink);
  padding: 12px 20px; font-weight: 700; z-index: 10;
}
.skip-link:focus { left: 0; }

/* Shared display type */
h2, .step h3, .hero__big {
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(34px, 4.4vw, 60px); }
.lede { max-width: 620px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; }

/* Hero */
.hero { background: var(--ink); color: var(--paper); }
.site-header { padding: 28px var(--gutter) 0; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-logo { display: block; padding: 6px 0; }
.site-logo img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 600; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .site-nav__cta { background: var(--accent); color: var(--ink); padding: 12px 20px; }

.hero__body { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 80px); }
.hero__inner { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.hero__title { display: flex; flex-direction: column; gap: 6px; }
.hero__small { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 1.2; }
.hero__big { font-size: min(15vw, 224px); line-height: 0.92; letter-spacing: -0.03em; margin-left: -0.04em; white-space: nowrap; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.hero__row .lede { flex: 1 1 420px; }
.hero__link { font-size: 18px; font-weight: 700; padding: 10px 0; text-decoration-color: var(--accent); }

.band { display: block; width: 100%; height: clamp(180px, 26vw, 380px); object-fit: cover; }

/* Sections */
.section { padding: var(--section-y) var(--gutter); }
.section--dark { background: var(--ink); color: var(--paper); }
.section__inner { display: flex; flex-direction: column; gap: 56px; }
.section__inner--tight { gap: 40px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.section__head h2 { flex: 1 1 360px; }
.section__head p { flex: 1 1 360px; max-width: 520px; color: var(--text-muted); }
.section--dark .section__head p { color: var(--text-on-dark-muted); }

/* Names */
.names { display: flex; flex-direction: column; gap: 8px; border-top: var(--rule) solid var(--ink); padding-top: 24px; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px 0; }
.logo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 500 / 434; object-fit: contain; }
.names__toggle {
  align-self: flex-start; margin-top: 24px;
  font: inherit; font-size: 16px; font-weight: 700;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); padding: 12px 20px; cursor: pointer;
}
.names__toggle:hover { background: var(--ink); color: var(--paper); }

/* Services */
.services { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.service { flex: 1 1 250px; display: flex; flex-direction: column; gap: 14px; border-top: var(--rule) solid var(--accent); padding-top: 20px; }
.service h3, .person h3 { font-size: 28px; font-weight: 800; line-height: 1.1; }
.service p, .person p { color: var(--text-on-dark); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 48px 32px; }
.step { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; border-top: var(--rule) solid var(--ink); padding-top: 16px; }
.step__num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(34px, 3.4vw, 48px); }
.step p { color: var(--text-muted); }

/* Principals */
.people { display: flex; flex-wrap: wrap; gap: 56px 48px; }
.person { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 28px; }
.person img { flex: 0 0 220px; width: 220px; height: 220px; object-fit: cover; }
.person__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }

/* Contact */
.contact { background: var(--accent); padding: var(--section-y) var(--gutter) 40px; }
.contact__inner { display: flex; flex-direction: column; gap: 36px; }
.contact h2 { font-size: min(8.4vw, 132px); line-height: 0.95; letter-spacing: -0.03em; }
.contact__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 48px; font-weight: 800; font-size: clamp(24px, 3.4vw, 48px); line-height: 1.2; }
.contact__tel { text-decoration: none; }
.contact__legal { margin-top: 56px; padding-top: 20px; border-top: var(--rule) solid var(--ink); font-size: 16px; font-weight: 600; }

@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
