/* Cultural Capital — Studio
   Tokens ported from the Cultural Capital design system (Oct 2026). */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..700&display=swap");

:root {
  /* Neutrals — the interface is near-monochrome. */
  --white: #FFFFFF;
  --paper: #F4F4F2;
  --fog: #E8E8E5;
  --rule: #DADAD6;
  --stone: #8C8C88;
  --graphite: #4A4A48;
  --ink: #0B0B0B;

  /* Photographic palette — not for interface chrome (the wordmark is the one exception). */
  --ref-oxblood: #6B1420;
  --ref-cola: #D3222A;
  --ref-cobalt: #2E5BD6;
  --ref-violet: #4A3E9E;
  --ref-tan: #B66E55;

  /* Semantic */
  --surface-page: var(--white);
  --text-primary: var(--ink);
  --text-secondary: var(--stone);
  --text-body: var(--graphite);
  --border-hairline: var(--rule);
  --focus-ring: var(--ink);
  --state-error: var(--ref-cola);

  /* Type */
  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --width-normal: 100;
  --width-expanded: 125;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;

  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 18px;
  --text-xl: 28px;
  --text-display: clamp(40px, 7vw, 104px);

  --leading-label: 1.3;
  --leading-body: 1.55;

  --tracking-label: .12em;
  --tracking-wide: .22em;
  --tracking-body: .005em;
  --tracking-display: -.02em;

  --label-font: var(--weight-medium) var(--text-xs) / var(--leading-label) var(--font-sans);
  --body-font: var(--weight-regular) var(--text-md) / var(--leading-body) var(--font-sans);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 120px;

  --edge: clamp(14px, 2.2vw, 28px);
  --header-h: 56px;
  --measure: 34ch;

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --hover-dim: .72;

  /* Two-column grid used throughout: collapses to one column under ~750px. */
  --cols: repeat(auto-fit, minmax(min(100%, max(360px, calc(50% - var(--edge)))), 1fr));
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; }
}

/* 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(--surface-page);
  color: var(--text-primary);
  font: var(--body-font);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "wdth" var(--width-normal);
}
a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }

/* Primitives */
.label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-variation-settings: "wdth" var(--width-normal);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin: 0;
}
.label--secondary { color: var(--text-secondary); }
.label--error { color: var(--state-error); }
.label--2xs { font-size: var(--text-2xs); }
.label--wide { letter-spacing: var(--tracking-wide); }

.text-link {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: var(--leading-label);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size var(--dur-base) var(--ease-out);
}
.text-link:hover,
.text-link:focus-visible { background-size: 100% 1px; }
.text-link--secondary { color: var(--text-secondary); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  flex: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.button:hover:not(:disabled) { background: var(--graphite); }
.button:active:not(:disabled) { opacity: .6; }
.button:disabled { cursor: default; opacity: .35; }

.field { display: grid; gap: var(--space-2); }
.field__control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field__control:focus-within { border-bottom-color: var(--ink); }
.field.is-error .field__control { border-bottom-color: var(--state-error); }
.field input,
.field textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 0;
  font: var(--body-font);
  font-size: var(--text-md);
  color: var(--ink);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); opacity: 1; }
.field.is-error .label { color: var(--state-error); }

/* Page */
.page {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  padding: var(--edge) var(--edge) var(--space-3);
}
.site-header h1 { margin: 0; width: 100%; font-weight: inherit; }
.wordmark {
  display: inline-block;
  white-space: nowrap;
  font-size: 9vw;
  font-weight: var(--weight-bold);
  font-variation-settings: "wdth" var(--width-expanded);
  letter-spacing: var(--tracking-display);
  line-height: .74;
  text-transform: uppercase;
  color: var(--ref-cobalt);
}

.lede {
  margin: 0;
  max-width: 22em;
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

.cols {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--edge);
  align-content: start;
}

/* 01 Studio */
.studio {
  min-height: min(72svh, 60vw);
  display: flex;
  flex-direction: column;
  padding: 0 var(--edge) clamp(var(--space-7), 10vw, var(--space-9));
}
.studio__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.studio__body {
  flex: 1;
  padding-top: clamp(72px, 18vh, 200px);
}

/* 02 What we do */
.services {
  padding: clamp(var(--space-5), 6vw, var(--space-9)) var(--edge) var(--space-9);
  row-gap: var(--space-6);
}
.services__intro { display: flex; flex-direction: column; gap: var(--space-5); }
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.services__list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
}
.services__list span {
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -.012em;
}

/* 03 Contact */
.contact {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--space-9) var(--edge) var(--edge);
}
.contact h2 {
  margin: var(--space-6) 0 0;
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: .98;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.contact__body {
  flex: 1;
  padding: var(--space-8) 0 var(--space-9);
}
.contact__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}
.contact-form {
  width: 100%;
  max-width: 30em;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-6);
  row-gap: var(--space-4);
}
.contact-sent {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 30em;
}
.contact-sent p,
.services__intro p {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--graphite);
  text-wrap: pretty;
}
[hidden] { display: none !important; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
