@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* ============================================================
   Frame & Field — design tokens
   ============================================================ */
:root {
  /* Color */
  --color-paper: #f3f1ec;
  --color-surface: #ffffff;
  --color-ink: #111111;
  --color-charcoal: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-hairline: #e2dfd9;
  --color-signal: #d7ff3a;
  --color-error: #b3261e;

  --color-bg: var(--color-paper);
  --color-fg: var(--color-ink);
  --color-fg-on-ink: var(--color-paper);
  --color-fg-muted: var(--color-muted);
  --color-border: var(--color-hairline);

  /* Typography */
  --font-display: "Anton", "Impact", "Oswald", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-display-xxl: clamp(64px, 12vw, 160px);
  --fs-display-xl: clamp(56px, 9vw, 112px);
  --fs-headline-lg: clamp(48px, 7vw, 88px);
  --fs-headline-md: clamp(32px, 4.4vw, 56px);
  --fs-headline-sm: clamp(22px, 2.4vw, 32px);
  --fs-body-lg: 17px;
  --fs-body-md: 15px;
  --fs-body-sm: 13px;
  --fs-label-sm: 12px;
  --fs-stat: clamp(56px, 7vw, 88px);
  --fs-meta: 12px;

  --lh-display: 0.94;
  --lh-headline: 1.02;
  --lh-body: 1.55;
  --lh-tight: 1.2;

  /* Radius */
  --radius-none: 0px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-xxl: 96px;
  --space-section: 128px;
  --space-gutter: 32px;

  --container-max: 1200px;
  --container-tight: 960px;

  /* Elevation */
  --shadow-flat: none;
  --shadow-plate: 0 24px 60px -32px rgba(17, 17, 17, 0.35);

  /* Focus */
  --focus-ring: 0 0 0 2px var(--color-paper), 0 0 0 4px var(--color-ink);

  /* Borders */
  --border-hairline: 1px solid var(--color-hairline);
  --border-ink: 1px solid var(--color-ink);

  /* Motion */
  --motion-fast: 120ms ease;
  --motion-base: 200ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-ink);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--color-ink);
  color: var(--color-paper);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Typography classes
   ============================================================ */
.display-xxl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xxl);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: var(--fs-headline-lg);
  line-height: var(--lh-headline);
  text-transform: uppercase;
}

.headline-md {
  font-family: var(--font-display);
  font-size: var(--fs-headline-md);
  line-height: var(--lh-headline);
  text-transform: uppercase;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: var(--fs-headline-sm);
  line-height: var(--lh-tight);
  text-transform: uppercase;
}

.body-lg {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.body-md {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.label-sm {
  font-family: var(--font-body);
  font-size: var(--fs-label-sm);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mono-stat {
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-muted);
}

.text-muted {
  color: var(--color-muted);
}

.text-ink {
  color: var(--color-ink);
}

.text-paper {
  color: var(--color-paper);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.container-tight {
  width: 100%;
  max-width: var(--container-tight);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.section {
  padding-block: var(--space-section);
}

.section-tight {
  padding-block: var(--space-xxl);
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack-xs > * + * {
  margin-top: var(--space-xs);
}
.stack-sm > * + * {
  margin-top: var(--space-sm);
}
.stack-md > * + * {
  margin-top: var(--space-md);
}
.stack-lg > * + * {
  margin-top: var(--space-lg);
}
.stack-xl > * + * {
  margin-top: var(--space-xl);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .grid-projects {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-xl);
  }
}

@media (max-width: 720px) {
  :root {
    --space-section: 72px;
    --space-gutter: 20px;
  }
  .grid-projects {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .grid-projects {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
}

.brand__mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: currentColor;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-ink);
  transition: opacity var(--motion-fast);
}

.nav__link:hover {
  opacity: 0.6;
}

.nav__link.is-active {
  color: var(--color-ink);
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ============================================================
   Buttons & pills
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--motion-base),
    color var(--motion-base), border-color var(--motion-base),
    opacity var(--motion-fast);
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

.btn--primary:hover {
  background-color: var(--color-charcoal);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-hairline);
}

.btn--secondary:hover {
  background-color: var(--color-surface);
  border-color: var(--color-ink);
}

.btn--on-plate {
  background-color: var(--color-paper);
  color: var(--color-ink);
}

.btn--on-plate:hover {
  background-color: var(--color-surface);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-ink);
  height: auto;
  padding: 6px 10px;
  border-radius: var(--radius-full);
}

.btn--ghost:hover {
  opacity: 0.6;
}

.btn__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline);
  background-color: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill--accent {
  background-color: var(--color-signal);
  border-color: transparent;
  color: var(--color-ink);
}

.pill--dark {
  background-color: var(--color-ink);
  border-color: transparent;
  color: var(--color-paper);
}

/* ============================================================
   Inputs
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.input {
  height: 46px;
  padding-inline: 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline);
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color var(--motion-base),
    box-shadow var(--motion-base);
}

.input::placeholder {
  color: var(--color-muted);
}

.input:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: none;
}

.input--search {
  padding-left: 44px;
  background-image: none;
}

.input-group {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 18px;
  gap: 8px;
}

.input-group__input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  height: 40px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-ink);
  outline: none;
  min-width: 200px;
}

.input-group__input::placeholder {
  color: var(--color-muted);
}

.input-group__btn {
  height: 36px;
  border-radius: var(--radius-full);
  padding-inline: 18px;
  background-color: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background-color var(--motion-base);
}

.input-group__btn:hover {
  background-color: var(--color-charcoal);
}

/* ============================================================
   Checkbox & tabs
   ============================================================ */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
}

.checkbox__input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-hairline);
  background-color: var(--color-surface);
  position: relative;
  cursor: pointer;
  transition: background-color var(--motion-base),
    border-color var(--motion-base);
}

.checkbox__input:hover {
  border-color: var(--color-ink);
}

.checkbox__input:checked {
  background-color: var(--color-ink);
  border-color: var(--color-ink);
}

.checkbox__input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--color-paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background-color: transparent;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline);
}

.tabs__tab {
  height: 32px;
  padding-inline: 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--motion-base),
    background-color var(--motion-base);
}

.tabs__tab:hover {
  color: var(--color-ink);
}

.tabs__tab.is-active {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

/* ============================================================
   Cards & frames
   ============================================================ */
.card-frame {
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color var(--motion-base);
}

.card-frame:hover {
  border-color: var(--color-ink);
}

.card-frame__media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-paper);
  background-size: cover;
  background-position: center;
}

.card-frame__media--portrait {
  aspect-ratio: 3 / 4;
}

.card-frame__media--wide {
  aspect-ratio: 16 / 10;
}

.card-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-tile__caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

/* ============================================================
   Stat block
   ============================================================ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--color-hairline);
  padding-top: var(--space-md);
}

.stat--bare {
  border-top: 0;
  padding-top: 0;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.stat__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   Plate (dark hero / CTA banner)
   ============================================================ */
.plate {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-plate);
  isolation: isolate;
}

.plate__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.plate__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.plate__inner {
  position: relative;
  padding: 56px 48px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.plate--tall .plate__inner {
  min-height: 540px;
}

.plate__headline {
  font-family: var(--font-display);
  font-size: var(--fs-display-xxl);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-paper);
  max-width: 12ch;
}

.plate__paragraph {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: rgba(243, 241, 236, 0.78);
  max-width: 48ch;
}

.plate__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: var(--color-signal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--motion-base);
}

.play-badge:hover {
  transform: scale(1.04);
}

.play-badge svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.plate__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (max-width: 720px) {
  .plate__inner {
    padding: 36px 24px 40px;
    min-height: auto;
  }
  .plate__headline {
    max-width: 100%;
  }
  .plate--tall .plate__inner {
    min-height: 0;
  }
  .play-badge {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   Service list
   ============================================================ */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-hairline);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-hairline);
  cursor: pointer;
  transition: opacity var(--motion-fast);
}

.service-row:hover {
  opacity: 0.7;
}

.service-row__index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.service-row__name {
  font-family: var(--font-display);
  font-size: var(--fs-headline-sm);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-ink);
}

.service-row__chevron {
  width: 20px;
  height: 20px;
  color: var(--color-ink);
  justify-self: end;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-hairline);
  padding-block: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--motion-fast);
}

.footer__link:hover {
  color: var(--color-ink);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
}

/* ============================================================
   Utilities
   ============================================================ */
.period::after {
  content: ".";
}

.divider-hairline {
  height: 1px;
  background-color: var(--color-hairline);
  width: 100%;
}

.eyebrow-hidden {
  /* Intentionally empty — the system explicitly forbids eyebrow text.
     Reserved class name to remind downstream agents not to add one. */
  display: none;
}

.text-left {
  text-align: left;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.cluster-md {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.center-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex: 0 0 auto;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
