/* ============================================================
   Creative Conceptz — Colors & Type
   "Your imagination, our creation."
   ============================================================ */

/* ---------- Editorial display face (Anton) ---------- */
/* Used ONLY for: homepage hero, footer "Let's build what's next".
   Everything else is Roboto. Loaded here so every page gets it
   without a flash-of-unstyled-text. */
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

/* ---------- Web fonts (variable TTFs) ---------- */
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/RobotoCondensed-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/RobotoCondensed-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- Brand palette (RGB from brand kit) ---------- */
  --cc-dark-blue: rgb(12, 24, 33);     /* primary canvas */
  --cc-navy: rgb(33, 55, 71);          /* surface / cards */
  --cc-light-grey: rgb(227, 227, 227); /* primary text on dark */
  --cc-orange: rgb(255, 165, 66);      /* accent only — 10–20% */
  --cc-white: rgb(255, 255, 255);      /* pure white — for max-emphasis text on dark, photo cards on white, print */

  /* ---------- Tonal extensions (for hover, borders, dividers) ---------- */
  --cc-navy-2: rgb(40, 64, 82);        /* hover surface */
  --cc-navy-line: rgba(227, 227, 227, 0.12); /* hairline borders */
  --cc-grid-line: rgba(227, 227, 227, 0.04); /* technical grid bg */
  --cc-orange-soft: rgba(255, 165, 66, 0.18);
  --cc-orange-hover: rgb(255, 180, 92);
  --cc-orange-press: rgb(232, 142, 48);

  /* ---------- Foreground / background semantic ---------- */
  --bg-1: var(--cc-dark-blue);          /* canvas */
  --bg-2: var(--cc-navy);               /* raised surface */
  --bg-3: var(--cc-navy-2);             /* hover / 2nd raised */
  --fg-1: var(--cc-light-grey);         /* primary text */
  --fg-2: rgba(227, 227, 227, 0.72);    /* secondary text */
  --fg-3: rgba(227, 227, 227, 0.50);    /* tertiary / labels */
  --fg-mute: rgba(227, 227, 227, 0.30); /* slide counters, faint */
  --accent: var(--cc-orange);
  --accent-fg: var(--cc-dark-blue);     /* text on orange */
  --hairline: var(--cc-navy-line);

  /* ---------- Type stacks ---------- */
  --font-display: "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  --font-mono:    "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Editorial display face — locked to Anton. Use ONLY for hero h1
     and footer "Let's build what's next". */
  --font-editorial: "Anton", "Roboto Condensed", "Arial Narrow", sans-serif;

  /* ---------- Page chrome (shared by every page) ---------- */
  --page-pad-x: clamp(20px, 4.5vw, 72px);
  --page-max:   1440px;
  /* Vertical rhythm for sections — every section uses --section-y
     for top & bottom padding so the page breathes consistently. */
  --section-y:    clamp(72px, 9vh, 112px);
  --section-y-sm: clamp(48px, 6vh, 72px);
  --section-y-lg: clamp(96px, 12vh, 144px);

  /* Hairlines on light + dark surfaces */
  --hairline-dark-bg: rgba(227,227,227,0.10);
  --hairline-light-bg: rgba(12,24,33,0.10);

  /* ---------- Type scale (slide / hero scale, 1920 reference) ---------- */
  --fs-display-xl: 96px;   /* hero */
  --fs-display-lg: 72px;
  --fs-display-md: 56px;
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-body-lg: 20px;
  --fs-body: 17px;
  --fs-body-sm: 15px;
  --fs-caption: 13px;
  --fs-eyebrow: 13px;       /* mono labels: /-/ THE PROBLEM */
  --fs-counter: 13px;       /* 01 / 08 */

  /* ---------- Weight ---------- */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* ---------- Line height ---------- */
  --lh-display: 0.98;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-body: 1.5;

  /* ---------- Tracking ---------- */
  --tr-display: -0.02em;
  --tr-tight: -0.01em;
  --tr-eyebrow: 0.14em;     /* uppercase mono */
  --tr-mono-label: 0.08em;

  /* ---------- Spacing (4-pt base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Radii ---------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;        /* buttons, chips, cards (default) */
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* ---------- Borders ---------- */
  --border-hairline: 1px solid var(--hairline);
  --border-card: 1px solid rgba(227, 227, 227, 0.08);
  --border-accent: 1px solid var(--cc-orange);
  --accent-bar: 3px solid var(--cc-orange); /* the orange tab on cards/steps */

  /* ---------- Shadows (subtle — brand is calm, not flashy) ---------- */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-2: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-press: inset 0 1px 0 rgba(0,0,0,0.25);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;

  /* ---------- Grid background (technical motif) ---------- */
  --grid-size: 32px;
  --grid-bg: linear-gradient(var(--cc-grid-line) 1px, transparent 1px) 0 0/var(--grid-size) var(--grid-size),
             linear-gradient(90deg, var(--cc-grid-line) 1px, transparent 1px) 0 0/var(--grid-size) var(--grid-size);
}

/* =================================================================
   Semantic element styles — drop these on a page wrapped in .cc
   ================================================================= */
.cc {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cc h1, .cc .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--fg-1);
  margin: 0;
}
.cc h2, .cc .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  margin: 0;
}
.cc h3, .cc .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin: 0;
}
.cc h4, .cc .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: 0;
}
.cc p { margin: 0 0 var(--space-4); color: var(--fg-1); }
.cc small, .cc .caption { font-size: var(--fs-caption); color: var(--fg-3); }
.cc strong { font-weight: var(--fw-bold); }

/* Mono eyebrow (signature: "/-/ THE PROBLEM") */
.cc .eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.cc .eyebrow::before { content: "/-/ "; color: var(--accent); }

/* Counter (e.g. 01 / 08) */
.cc .counter {
  font-family: var(--font-mono);
  font-weight: var(--fw-regular);
  font-size: var(--fs-counter);
  letter-spacing: var(--tr-mono-label);
  color: var(--fg-mute);
}

.cc code, .cc .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Accent text */
.cc .accent { color: var(--accent); }

/* Link */
.cc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-standard);
}
.cc a:hover { border-bottom-color: currentColor; }

/* ============= Surfaces ============= */
.cc .surface     { background: var(--bg-2); border: var(--border-card); border-radius: var(--radius-md); }
.cc .surface-2   { background: var(--bg-3); border: var(--border-card); border-radius: var(--radius-md); }
.cc .surface-bare{ background: transparent; border: var(--border-card); border-radius: var(--radius-md); }

/* The signature card with orange tab on top */
.cc .card-tab {
  background: var(--bg-2);
  border: var(--border-card);
  border-top: var(--accent-bar);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-5) var(--space-6) var(--space-6);
}

/* The step row with orange left rule */
.cc .step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: rgba(227,227,227,0.04);
  border-left: var(--accent-bar);
  border-radius: var(--radius-sm);
}
.cc .step-row .step-num {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: var(--tr-mono-label);
}

/* ============= Buttons ============= */
.cc .btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard),
              border-color var(--dur-2) var(--ease-standard),
              transform var(--dur-1) var(--ease-standard);
}
.cc .btn-primary {
  background: var(--accent); color: var(--accent-fg);
}
.cc .btn-primary:hover { background: var(--cc-orange-hover); }
.cc .btn-primary:active { background: var(--cc-orange-press); transform: translateY(1px); }

.cc .btn-secondary {
  background: transparent; color: var(--fg-1);
  border-color: rgba(227,227,227,0.22);
}
.cc .btn-secondary:hover { background: rgba(227,227,227,0.06); border-color: rgba(227,227,227,0.4); }
.cc .btn-secondary:active { background: rgba(227,227,227,0.10); transform: translateY(1px); }

.cc .btn-ghost {
  background: transparent; color: var(--fg-2);
}
.cc .btn-ghost:hover { color: var(--fg-1); background: rgba(227,227,227,0.04); }

/* ============= Form fields ============= */
.cc .field {
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(227,227,227,0.14);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-2) var(--ease-standard);
}
.cc .field::placeholder { color: var(--fg-mute); }
.cc .field:focus { border-color: var(--accent); }

/* ============= Chip / tag ============= */
.cc .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-mono-label);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--cc-orange-soft);
  color: var(--accent);
}
.cc .chip-dot::before {
  content: ""; width: 8px; height: 8px;
  background: var(--accent); border-radius: 1px;
}

/* ============= Technical grid background ============= */
.cc .grid-bg { background-image: var(--grid-bg); background-color: var(--bg-1); }

/* Dashed wire (the dashed routing lines used on slides) */
.cc .wire {
  stroke: rgba(227,227,227,0.18);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  fill: none;
}

/* =================================================================
   SITE-WIDE UTILITIES (used by every marketing page — index, about,
   work, case studies). Pages opt in by using these classes instead
   of redefining the same styles locally.
   ================================================================= */

/* The signature section eyebrow — orange mono uppercase + short rule
   before the text. Use on EVERY section heading for consistency.

   Usage:  <span class="cc-eyebrow">Selected Work</span>
*/
.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cc-orange);
  margin: 0;
  line-height: 1;
}
.cc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--cc-orange);
  flex-shrink: 0;
}
/* On dark surfaces the rule + text stay orange — the contrast still reads. */
.cc-eyebrow.on-dark { /* same orange */ }

/* Editorial display headline — Anton, uppercase, tight tracking.
   Use ONLY for the homepage hero h1 and the footer "Let's build
   what's next" headline. NOTHING ELSE. */
.cc-editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.92;
}

/* =================================================================
   Contact form — thank-you confirmation panel (site-wide).
   Inserted by contact-form.js after submit. Styled to match the
   form's dark footer surface. The form itself is hidden behind it.
   ================================================================= */
.cc-contact-thanks {
  padding-top: clamp(20px, 3vh, 36px);
  display: flex; flex-direction: column;
  gap: 18px;
  /* Match the column width the form occupies so layout doesn't reflow */
  min-height: 320px;
}
.cc-contact-thanks-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(227,227,227,0.45);
  display: flex; align-items: center; gap: 14px;
}
.cc-contact-thanks-label::before {
  content: ""; width: 28px; height: 1px;
  background: var(--cc-orange); display: inline-block;
}
.cc-contact-thanks-h {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cc-light-grey);
  margin: 8px 0 4px;
}
.cc-contact-thanks-p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(227,227,227,0.75);
  max-width: 44ch;
  margin: 0;
}
.cc-contact-thanks-p a {
  color: var(--cc-light-grey);
  border-bottom: 1px solid rgba(227,227,227,0.4);
  transition: color var(--dur-2) var(--ease-standard),
              border-color var(--dur-2) var(--ease-standard);
}
.cc-contact-thanks-p a:hover {
  color: var(--cc-orange);
  border-bottom-color: var(--cc-orange);
}
.cc-contact-thanks-reset {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 18px;
  background: transparent; border: 0; padding: 6px 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cc-light-grey);
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard);
}
.cc-contact-thanks-reset:hover { gap: 26px; color: var(--cc-orange); }
.cc-contact-thanks-reset .arr {
  width: 28px; height: 1px; background: currentColor; position: relative;
}
.cc-contact-thanks-reset .arr::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* =================================================================
   Footer flourishes (site-wide)
   • "next" word in the "Let's build what's next" headline → orange
   • Subtle brand mark watermark, low-opacity, bleeds off the
     bottom-left corner. Sits BEHIND content and never intercepts
     clicks, so it adds brand texture without overpowering.
   ================================================================= */
.cc-footer { position: relative; overflow: hidden; }
.cc-footer-inner { position: relative; z-index: 1; }

.cc-footer h2 .cc-next { color: var(--cc-orange); }

.cc-footer-mark {
  position: absolute;
  left: clamp(-180px, -9vw, -90px);
  bottom: clamp(-150px, -7vw, -70px);
  width: auto;
  height: clamp(300px, 38vw, 560px);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .cc-footer-mark { height: 260px; opacity: 0.05; left: -120px; bottom: -90px; }
}
