/* ==========================================================================
   uTold Technologies Inc. — main.css
   Structure: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Page parts · 6 Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --ink: #0e1319;          /* Studio Ink: grounds, headlines */
  --paper: #f4f2ee;        /* Paper: pages, reversed text */
  --white: #ffffff;
  --amber: #e8a33d;        /* Signal Amber: the one accent */
  --amber-dark: #b97b1c;
  --blue: #2f4a63;         /* Console Blue: panels, partnerships band */
  --fog: #c9d2d8;          /* Fog: rules, captions on dark */
  --muted: #8fa3b0;
  --card-dark: #16222d;
  --text-soft: #44525f;

  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --radius: 0;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 16px/26px var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; }
h1 { font-size: 64px; line-height: 68px; letter-spacing: -.02em; }
h2 { font-size: 40px; line-height: 46px; letter-spacing: -.015em; }
h3 { font-size: 20px; line-height: 26px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 12px 20px; z-index: 100; }
.skip-link:focus { left: 0; }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--blue { background: var(--blue); color: var(--paper); }
.section--amber { background: var(--amber); color: var(--ink); }
.section--tight { padding-block: 72px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.section__head > :first-child { max-width: 700px; }
.section__head > p { max-width: 420px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: 16px; }
.eyebrow { font: 400 12px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.section--paper .eyebrow, .section--white .eyebrow { color: var(--blue); }
.section--amber .eyebrow { color: var(--ink); }
.lead { font-size: 20px; line-height: 32px; color: var(--fog); margin-top: 22px; }
.text-soft { color: var(--text-soft); }
.on-dark { color: var(--fog); }
.note { font: 400 10.5px/1.7 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }

/* 4. COMPONENTS ----------------------------------------------------------- */
/* Buttons */
.btn { display: inline-block; padding: 16px 26px; font: 700 15px/1 var(--font-body); letter-spacing: .02em; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #f1b455; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--outline { border-color: var(--paper); color: var(--paper); }
.btn--outline:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.link-arrow { font: 400 12px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.link-arrow:hover { text-decoration: underline; }

/* Header and navigation */
.site-header { background: var(--ink); border-bottom: 1px solid var(--blue); }
.site-header__inner { display: flex; align-items: center; height: 84px; }
.site-header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; margin-right: 40px; font: 700 14px/1 var(--font-body); color: var(--fog); }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); padding: 12px; cursor: pointer; }

/* Hero (photo background with gradient, used on every page except Contact's form area) */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__bg { position: absolute; inset: 0; opacity: .6; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 38%, rgba(14, 19, 25, .35) 100%); }
.hero__inner { position: relative; z-index: 1; padding-block: 100px; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
.hero__content { max-width: 760px; }
.hero--home .hero__inner { min-height: 700px; justify-content: space-between; padding-top: 120px; padding-bottom: 88px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { border-top: 1px solid var(--blue); padding-top: 22px; }
.stat__value { font: 800 30px/34px var(--font-head); color: var(--amber); }
.stat__label { font-size: 14px; line-height: 21px; color: var(--fog); }

/* Cards */
.card { background: var(--ink); color: var(--paper); }
.card__media { height: 190px; overflow: hidden; background: var(--ink) center/cover no-repeat; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 28px; }
.card__title { margin-bottom: 8px; }
.card__text { font-size: 15px; line-height: 23px; color: var(--fog); }
.card .link-arrow { display: inline-block; margin-top: 14px; }
.card--light { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.card--light .card__text { color: var(--text-soft); }
.card--outline { background: transparent; border: 1.5px solid var(--paper); }
.card--outline .card__text { color: var(--paper); }
.card--blue { background: var(--blue); }

/* Media with caption */
.figure img { width: 100%; height: 290px; object-fit: cover; }
.figure figcaption { font: 400 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-top: 12px; }
.media-photo { height: 360px; overflow: hidden; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.timeline { display: flex; gap: 36px; border-top: 2px solid var(--blue); margin-top: 20px; }
.timeline__item { flex: 1; }
.timeline__item::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); margin: -8px 0 20px; }
.timeline__year { font: 400 13px/1.5 var(--font-mono); letter-spacing: .14em; color: var(--amber); margin-bottom: 8px; }
.timeline__text { font-size: 15px; line-height: 23px; color: var(--fog); }

/* Bullet list */
.checklist { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 14px; font-size: 15px; line-height: 23px; }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--amber); }
.on-light .checklist li { color: var(--text-soft); }
.section--ink .checklist li, .section--blue .checklist li { color: var(--fog); }

/* Steps */
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__num { font: 400 12px/1.5 var(--font-mono); letter-spacing: .14em; color: var(--blue); margin-bottom: 10px; }
.section--ink .step { border-top-color: var(--blue); }
.section--ink .step__num { color: var(--amber); }
.step__text { font-size: 15px; line-height: 23px; color: var(--text-soft); }
.section--ink .step__text { color: var(--fog); }

/* Quotes */
.quote { border-left: 4px solid var(--amber); padding: 4px 0 4px 22px; }
.quote__text { font: 700 18px/28px var(--font-body); }
.quote__name { font: 400 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 12px; }
.quote__role { font-size: 13px; line-height: 20px; color: var(--blue); }
.section--ink .quote__role { color: var(--fog); }
.quote--pending { border: 1.5px dashed var(--amber); padding: 26px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 400 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid currentColor; padding: 9px 13px; }

/* Brand tiles (home: dark numbered tiles) */
.brand-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 10px; }
.brand-tile { background: var(--card-dark); border-top: 3px solid var(--blue); padding: 16px 18px; min-height: 96px; }
.brand-tile--accent { border-top-color: var(--amber); }
.brand-tile__num { font: 400 10px/1.5 var(--font-mono); letter-spacing: .14em; color: var(--amber); margin-bottom: 8px; }
.brand-tile__name { font: 800 18px/22px var(--font-head); color: var(--paper); }
.brand-tile__type { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 4px; }

/* Brand list (Brands page: white tiles with Signed / In progress tag) */
.brand-category { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 36px; border-top: 2px solid var(--ink); }
.brand-category__count { font: 400 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.brand-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.brand-card { background: var(--white); border: 1.5px solid var(--ink); padding: 18px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.brand-card__name { 
    font: 800 14px/17px var(--font-head); 
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.tag { display: inline-flex; align-items: center; gap: 6px; font: 400 9.5px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; }
.tag--signed { color: var(--amber-dark); }
.tag--signed::before { background: var(--amber); }
.tag--progress { color: #6b7a87; }
.tag--progress::before { border: 1.5px solid #6b7a87; }

/* Call-to-action bars */
.cta-bar { background: var(--ink); color: var(--paper); padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 34px; }
.cta-bar__main { display: flex; gap: 22px; align-items: center; }
.cta-bar__actions { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.cta-band > :first-child { max-width: 720px; }

/* Chain (Who we help) */
.chain { border-top: 2px solid var(--blue); display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.chain__node::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); margin: -8px 0 22px; }
.callout { background: var(--blue); padding: 20px 26px; display: flex; gap: 30px; align-items: center; margin-top: 34px; }
.callout h3 { width: 320px; flex: none; }

/* Forms */
.form { background: var(--paper); color: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.form--card { background: var(--white); border: 1.5px solid var(--ink); padding: 36px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 500 14px var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); padding: 13px 14px; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #c2410c; }
.field__error { font-size: 13px; line-height: 20px; color: #c2410c; margin-top: 6px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 20px; }
.form__hint { font-size: 12px; line-height: 18px; color: #6b7a87; }
.hp { position: absolute; left: -9999px; }               /* honeypot field */
.alert { padding: 28px; }
.alert--success { background: var(--ink); color: var(--paper); }
.alert--error { background: #fff4ee; border: 1.5px solid #c2410c; color: var(--ink); }

/* Contact details */
.contact-list > div { border-top: 1px solid var(--ink); padding: 14px 0; }
.contact-list dt { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.contact-list dd { margin: 0; font: 700 17px/26px var(--font-body); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 40px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__brand { width: 340px; }
.site-footer__brand img { height: 60px; width: auto; }
.site-footer__brand p { font-size: 14px; line-height: 22px; color: var(--fog); margin-top: 20px; }
.footer-cols { display: flex; gap: 70px; }
.footer-col h4 { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; line-height: 26px; color: var(--fog); }
.footer-col a:hover { color: var(--amber); }
.site-footer__legal { margin-top: 44px; font: 400 10.5px/1.7 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* 5. PAGE PARTS ----------------------------------------------------------- */
.intro-statement { font: 800 30px/40px var(--font-head); letter-spacing: -.01em; max-width: 960px; }
.panel-dark { background: var(--ink); color: var(--paper); padding: 36px; }
.panel-dark p + p { margin-top: 18px; }
.pullquote { border-left: 4px solid var(--amber); padding-left: 28px; margin-top: 56px; }
.pullquote .eyebrow { margin-bottom: 12px; }
.pullquote p { font: 800 34px/44px var(--font-head); letter-spacing: -.01em; }
.prose p + p { margin-top: 14px; }
.chain-line { font: 800 26px/1.2 var(--font-head); display: flex; align-items: center; gap: 18px; margin: 28px 0 8px; }
.chain-line span:nth-child(even) { color: var(--amber); }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-block: 44px; border-top: 2px solid var(--ink); }
.project--reverse > :first-child { order: 2; }
.project__img { height: 320px; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.service { scroll-margin-top: 24px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 6. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4, .stats, .chain { grid-template-columns: repeat(2, 1fr); }
  .grid--5, .brand-tiles { grid-template-columns: repeat(3, 1fr); }
  .brand-category { grid-template-columns: 1fr; gap: 20px; }
  .brand-list { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { gap: 36px; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  :root { --section-y: 56px; --gutter: 24px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 32px; line-height: 38px; }
  h3 { font-size: 18px; line-height: 24px; }
  .lead { font-size: 17px; line-height: 27px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--ink); flex-direction: column; gap: 0; margin: 0; padding: 12px 24px 24px; z-index: 20; }
  .nav.is-open { display: flex; }
  .nav a { padding: 18px 0; font: 800 22px/1 var(--font-head); border-bottom: 1px solid var(--blue); }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header { position: relative; }
  .site-header__inner { height: 72px; }
  .site-header__cta { display: none; }
  .hero__inner, .hero--home .hero__inner { min-height: 0; padding-block: 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 19, 25, .35), var(--ink) 75%); }
  .section__head, .split, .project, .cta-band, .cta-bar, .callout, .site-footer__top { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .split--reverse > :first-child, .project--reverse > :first-child { order: 0; }
  .grid--2, .grid--3, .photo-strip { grid-template-columns: 1fr; }
  .grid--4, .stats, .chain { grid-template-columns: 1fr 1fr; gap: 20px; }
  .brand-tiles, .brand-list { grid-template-columns: 1fr 1fr; }
  .timeline { flex-direction: column; border-top: 0; border-left: 2px solid var(--blue); gap: 0; margin-left: 8px; }
  .timeline__item { padding: 0 0 26px 28px; }
  .timeline__item::before { margin: 0 0 0 -37px; position: absolute; }
  .timeline__item { position: relative; }
  .form__row { grid-template-columns: 1fr; }
  .cta-bar__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .callout h3 { width: auto; }
  .chain-line { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 22px; }
}

/* 7. UTILITIES AND SMALL PARTS (added) ----------------------------------- */
.mt { margin-top: 32px; }
.mt-sm { margin-top: 22px; }
.split--top { align-items: start; }
.section--divided { border-top: 1px solid var(--blue); }
.stats--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cta-text { margin-top: 14px; font-size: 18px; line-height: 29px; }
.lead-dark { font-size: 20px; line-height: 32px; margin-top: 6px; }
.signoff { font: 800 26px/34px var(--font-head); letter-spacing: -.01em; margin-top: 28px; }
.legend { display: flex; gap: 26px; margin: 18px 0 28px; }
.contact-lines { margin-top: 18px; font: 400 13px/2.1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.card--plain { background: transparent; color: var(--ink); }
.card--plain .card__media { height: 190px; }
.card--plain .card__body { padding: 14px 0 0; }
.card--plain .eyebrow { margin-bottom: 6px; font-size: 11px; }
.card--plain .card__text { color: var(--text-soft); font-size: 14px; line-height: 22px; }
.card--plain .card__title { font-size: 18px; line-height: 24px; }
.cta-bar h3 { margin-bottom: 4px; }
.callout p { font-size: 15px; }
.section--paper .text-soft, .section--white .text-soft { color: var(--text-soft); }
@media (max-width: 860px) { .stats--2 { grid-template-columns: 1fr 1fr; } .section__head { align-items: stretch; } }
