/* brand.css — shared by company and terms.
   No per-page differences.
   Moved out of the pages' inline <style> on 6 Oct 2026; edit here, not in the pages. */
  /* ============================================================
     UPTEKO DESIGN SYSTEM — shared tokens (1:1 with the rest of the site)
     ============================================================ */
  :root {
    --pg:#0D0D0F; --card:#161618; --card2:#1C1C1F;
    --badge:#B7B7B7;
    --ink:#FFFFFF; --mut:#9A9A9F; --sub:#6B6B70;
    --line:#2A2A2E; --brand-fill:#00565C; --acc:#18A199;
    --def-ink:#FF5500;
    --sec-ink:#00A6FF;
    /* TEST: brand-green accent (rev 23) — non-sector brand pages carry the house brand teal, not orange.
       Real brand tokens (#00565C / #007078) sit in the fill/glow roles; foreground teal lifted for legibility (AA on dark). */
    --accent:var(--acc); --accent-hover:#2CBCB2;
    --accent-700:#10897F; --accent-800:#0B6E66; --accent-900:#085751;
    --accent-950:#06433F; --accent-fill:#00565C; --accent-glow:#007078;
    --accent-rgb:24,161,153;
    --accent-600:#149086; --accent-tint:#0A4F4B; --accent-line:#0C5852;
    --accent-deep:#123A38; --accent-deepest:#15282A;

    --bg-page:var(--pg); --bg-surface:var(--card);
    --border-default:var(--line);
    --text-primary:var(--ink); --text-muted:var(--mut);
    --defence:var(--accent); --defence-hover:var(--accent-hover);

    --fs-display:64px; --fs-h1:48px; --fs-h2:32px; --fs-h3:24px;
    --fs-body:20px; --fs-note:18px; --fs-small:15px;   /* body sentences 20, small print 18, capitals 15 (Rose, 13 Oct 2026) */
    --fw-light:300; --fw-regular:400; --fw-medium:500; --fw-semibold:600; --fw-bold:700;

    --space-1:4px; --space-2:8px; --space-3:16px; --space-4:24px;
    --space-5:32px; --space-6:48px; --space-7:64px; --space-8:96px;

    --maxw:1280px;
    --gutter:clamp(20px,5vw,64px);
  }

  *,*::before,*::after{box-sizing:border-box;}
  html{-webkit-text-size-adjust:100%;}
  body{
    margin:0; background:var(--bg-surface); color:var(--text-primary);
    font-family:Blender,sans-serif;
    font-size:var(--fs-body); line-height:1.5; -webkit-font-smoothing:antialiased;
  }
  a{color:inherit; text-decoration:none;}
  :focus-visible{outline:2px solid #fff; outline-offset:5px; border-radius:4px;}   /* one focus ring everywhere (Rose, 3 Nov 2026): thin white, a little room around the text, soft corners */

  /* ===================== BUTTONS ===================== */
  /* 13 Oct 2026 (Rose: "align all buttons"): the label sat 1.5px high and to the left. Blender's capitals sit .1em above the
     middle of their line, and the tracking leaves a space after the last letter, so the padding moves the label down .1em and
     right by half the tracking. */
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:calc(11px + .1em) calc(26px - .07em) calc(11px - .1em) calc(26px + .07em); font-family:inherit;
    font-size:var(--fs-small); font-weight:var(--fw-semibold);
    letter-spacing:0.14em; text-transform:uppercase;
    border-radius:8px; cursor:pointer;
    transition:background .2s ease, border-color .2s ease, transform .2s ease;
  }
  /* buttons are neutral; teal is only a small accent on these pages (brand rev 32, 12 Oct 2026) */
  .btn--primary{background:transparent; color:var(--text-primary); border:1px solid rgba(255,255,255,.55);}
  .btn--primary:hover{background:rgba(255,255,255,.06); border-color:#FFFFFF;}
  .btn--primary:active{transform:translateY(1px);}
  .btn--outline{ background:transparent; color:var(--text-primary); border:1px solid var(--text-primary); }
  .btn--outline:hover{ background:rgba(255,255,255,0.08); }

  /* ===================== SHARED SECTION FRAME ===================== */
  .sec{ padding:clamp(56px,9vh,112px) 0; border-top:1px solid var(--border-default); }
  .sec__inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
  .sec__eyebrow{ font-size:16px; font-weight:700; line-height:1.2; letter-spacing:0.3em; text-transform:uppercase;
    color:var(--accent); margin:0 0 6px; }   /* = the hero eyebrow (Rose, 13 Oct 2026) */
  .sec__title{ margin:0 0 var(--space-6); font-weight:var(--fw-regular);
    font-size:clamp(1.6rem,3.2vw,2.25rem); line-height:1.1; letter-spacing:-0.01em; }

  /* ===================== LEAD (compact page hero) ===================== */
  .lead{ position:relative; padding:calc(91px + clamp(40px,8vh,96px)) 0 clamp(40px,7vh,80px);
    overflow:hidden; isolation:isolate; }
  .lead::before{ content:""; position:absolute; inset:0; z-index:-2;
    background:
      radial-gradient(120% 100% at 78% 24%, rgba(var(--accent-rgb),0.10) 0%, transparent 55%),
      radial-gradient(130% 120% at 50% 0%, var(--card) 0%, #101012 50%, var(--pg) 100%); }
  .lead__inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
  /* Company: the lead stands on a photo (Rose, 21 Oct 2026). Copy sits low on the left over a dark shade, like the
     sector and drone heroes; the photo stays visible on the right. */
  .lead--photo{ min-height:min(78svh, 760px); display:flex; align-items:flex-end; }
  .lead--photo .lead__inner{ width:100%; }
  /* Company header: LARK on the workshop table (Rose's retouched _DSC2472, 3 Nov 2026; ?v=2 = the retouch; was company-bg.jpg). The drone is dark, so the
     shade is lighter than before and only strong behind the text; the photo is 15% larger and left-aligned so the drone
     sits right of the headline as far as the photo allows. */
  .lead--photo::before{
    background:
      linear-gradient(to top, var(--bg-surface) 0%, rgba(13,13,15,.4) 18%, rgba(13,13,15,0) 40%),
      linear-gradient(to right, rgba(13,13,15,.9) 0%, rgba(13,13,15,.7) 32%, rgba(13,13,15,.15) 55%, rgba(13,13,15,0) 100%),
      url(../assets/company-production.jpg?v=2) 0% 75% / max(115%, 1140px) auto no-repeat; }
  /* tablets: the photo slides left so the whole drone is in view */
  @media (min-width:761px) and (max-width:1100px){ .lead--photo::before{ background-position:0 0, 0 0, 85% 75%; } }
  /* full screen again (Rose, 3 Nov 2026, after a pulled-back test): the photo covers the whole header at the smallest
     size that still fills it (cover, was 115%), held low so the drone and the kit on the table stay in view */
  @media (min-width:761px){ .lead--photo:not(.lead--training)::before{ background-size:auto, auto, cover; background-position:0 0, 0 0, 100% 88%; } }
  /* phones: the drone sits in a band above the text, which fades into the page below it */
  @media (max-width:760px){ .lead--photo::before{
    background:
      linear-gradient(to top, var(--bg-surface) 0%, rgba(13,13,15,.75) 50%, rgba(13,13,15,.1) 100%),
      url(../assets/company-production.jpg?v=2) 80% calc(30px - 28vw) / 175% auto no-repeat;
    -webkit-mask-image:linear-gradient(to bottom, #000 85vw, transparent calc(85vw + 90px));
    mask-image:linear-gradient(to bottom, #000 85vw, transparent calc(85vw + 90px)); } }
  .lead__eyebrow{ font-size:16px; font-weight:700; line-height:1.2; letter-spacing:0.3em; text-transform:uppercase;
    color:var(--accent); margin:0 0 6px; }   /* = the hero eyebrow (Rose, 13 Oct 2026) */
  .lead h1{ margin:0 0 var(--space-4); font-weight:var(--fw-bold);
    font-size:clamp(2.25rem,5.5vw,3.5rem); line-height:1.02; letter-spacing:-0.01em; text-transform:uppercase; max-width:18ch; }
  .lead h1 .accent{ color:var(--accent); }
  /* a headline set as whole lines (Company, Rose 3 Nov 2026: "do not break these texts into 3 lines"): each line stays in
     one piece, and on narrow screens the type shrinks so the longer line still fits (11.9 = its width in em, Blender bold) */
  .lead h1.lead__h1--lines{ max-width:none; font-size:min(clamp(2.25rem,5.5vw,3.5rem), calc((100vw - 2 * var(--gutter)) / 11.9)); }
  .lead h1.lead__h1--lines > span{ white-space:nowrap; }
  /* Training (Rose, 3 Nov 2026): the lead stands on the training photo, as Company stands on its photo; greyscale like the
     Training band on the sector pages */
  .lead--photo.lead--training::before{
    background:
      linear-gradient(to top, var(--bg-surface) 0%, rgba(13,13,15,.55) 38%, rgba(13,13,15,0) 70%),
      linear-gradient(to right, rgba(13,13,15,.92) 0%, rgba(13,13,15,.72) 45%, rgba(13,13,15,.38) 100%),
      url(../assets/upteko_soldiers.jpg) 70% center / cover no-repeat;
    filter:grayscale(1) contrast(1.05); }
  @media (max-width:760px){ .lead--photo.lead--training::before{
    background:
      linear-gradient(to top, var(--bg-surface) 0%, rgba(13,13,15,.85) 45%, rgba(13,13,15,.5) 100%),
      url(../assets/upteko_soldiers.jpg) 65% center / cover no-repeat; -webkit-mask-image:none; mask-image:none; } }   /* not the Company band's fade */
  /* draft and placeholder markers (until the real training text and photos come) */
  .ph-tag, .ph-note{ padding:6px 12px; font-size:15px; font-weight:var(--fw-medium); line-height:1.3; letter-spacing:.12em;
    text-transform:uppercase; color:var(--text-primary); background:rgba(13,13,15,.78); border:1px solid rgba(255,255,255,.3); border-radius:6px; }
  .ph-tag{ display:inline-block; margin:0 0 var(--space-4); }
  .ph-note{ position:absolute; top:14px; right:14px; z-index:1; pointer-events:none; }
  /* training images: two up, one per row on phones */
  /* Company: one real production photo before the HQ block (Rose, 3 Nov 2026) */
  .cphoto{ border-top:0; padding-top:0; }
  .cphoto img{ display:block; width:100%; height:auto; aspect-ratio:21/9; object-fit:cover; object-position:50% 62%; border-radius:12px;
    border:1px solid var(--border-default); }   /* in colour (Rose, 3 Nov 2026) */
  @media (max-width:760px){ .cphoto img{ aspect-ratio:4/3; } }
  .tgal{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:var(--space-3); }
  .tgal figure{ margin:0; position:relative; }
  .tgal img{ display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:12px; border:1px solid var(--border-default); }
  .lead__sub{ margin:0; max-width:60ch; color:var(--text-muted);
    font-size:clamp(var(--fs-body),1.6vw,22px); line-height:1.6; }   /* a lead: body size or a little more */

  /* ===================== MISSION (two-column prose) ===================== */
  .mission__inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
    display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(32px,6vw,88px); align-items:start; }
  .mission__body{ display:flex; flex-direction:column; gap:var(--space-4); }
  .mission__body p{ margin:0; color:var(--text-muted); font-size:var(--fs-body); line-height:1.7; }
  /* no single word alone on a paragraph's last line (Rose, 3 Nov 2026: "bad text break"), as on the sector pages */
  .lead__sub, .mission__body p, .pcard p, .hq__body{ text-wrap:pretty; }
  .mission__body p b{ color:var(--text-primary); font-weight:var(--fw-medium); }
  @media (max-width:820px){ .mission__inner{ grid-template-columns:minmax(0,1fr); gap:var(--space-5); } }
  .mission__inner--solo{ display:block; }   /* no title: one column of prose under the lead (Rose, 21 Oct 2026) */
  .mission__inner--solo .mission__body{ max-width:64ch; }

  /* ===================== VALUE CARDS ===================== */
  @property --pcard-shine {
    syntax: '<angle>'; initial-value: 0deg; inherits: false;
  }
  .pgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:var(--space-3); }
  .pcard{ border:1px solid var(--border-default); border-radius:12px; padding:clamp(22px,2.6vw,30px);
    background:var(--card); transition: border-color .2s; }
  .pcard:hover{
    border-color: transparent;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      conic-gradient(from var(--pcard-shine),
        var(--line) 0%,
        var(--line) 60%,
        rgba(255,255,255,.06) 68%,
        rgba(255,255,255,.55) 80%,
        rgba(255,255,255,.06) 92%,
        var(--line) 98%,
        var(--line) 100%
      ) border-box;
    animation: pcard-shine 5.5s linear infinite;
  }
  @keyframes pcard-shine{ to{ --pcard-shine: 360deg; } }
  @media (prefers-reduced-motion: reduce){ .pcard:hover{ animation: none; border-color: rgba(255,255,255,.2); } }
  .pcard__n{ font-size:var(--fs-note); font-weight:var(--fw-medium); letter-spacing:0.14em;
    color:var(--accent); margin:0 0 var(--space-3); }
  .pcard h3{ margin:0 0 var(--space-2); font-size:1.1rem; font-weight:var(--fw-semibold); line-height:1.25; }
  .pcard p{ margin:0; color:var(--text-muted); font-size:var(--fs-body); line-height:1.6; }

  /* ===================== TRUST STRIP ===================== */
  .trust{ display:flex; flex-wrap:wrap; gap:var(--space-3); }
  .trust__item{ display:flex; align-items:center; gap:10px; padding:14px 18px;
    border:1px solid var(--border-default); transition:border-color .2s; border-radius:10px; background:var(--card); font-size:0.9375rem; }
  @property --trust-shine {
    syntax: '<angle>'; initial-value: 0deg; inherits: false;
  }
  .trust__item:hover{
    border-color: transparent;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      conic-gradient(from var(--trust-shine),
        var(--line) 0%, var(--line) 60%,
        rgba(255,255,255,.06) 68%, rgba(255,255,255,.55) 80%,
        rgba(255,255,255,.06) 92%, var(--line) 98%,
        var(--line) 100%
      ) border-box;
    animation: trust-shine 5.5s linear infinite;
  }
  @keyframes trust-shine{ to{ --trust-shine: 360deg; } }
  @media (prefers-reduced-motion:reduce){ .trust__item:hover{ animation:none; border-color:rgba(255,255,255,.2); } }
  .trust__item b{ font-weight:var(--fw-semibold); }
  .trust__item svg{ flex:0 0 auto; color:var(--accent); }

  /* ===================== HQ BAND ===================== */
  .hq__inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
    display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,5vw,72px); align-items:center; }
  .hq__title{ margin:0 0 var(--space-3); font-weight:var(--fw-regular); font-size:clamp(1.5rem,3vw,2rem); line-height:1.12; }
  .hq__title .accent{ color:var(--accent); }
  .hq__body{ margin:0 0 var(--space-5); color:var(--text-muted); font-size:var(--fs-body); line-height:1.7; max-width:46ch; }
  .hq__card{ border:1px solid var(--border-default); transition:border-color .2s; border-radius:12px; padding:clamp(24px,3vw,36px);
    background:linear-gradient(120deg, rgba(var(--accent-rgb),0.06), transparent 60%), var(--card); }
  @property --hq-shine {
    syntax: '<angle>'; initial-value: 0deg; inherits: false;
  }
  .hq__card:hover{
    border-color: transparent;
    background:
      linear-gradient(120deg, rgba(var(--accent-rgb),0.06), transparent 60%), linear-gradient(var(--card), var(--card)) padding-box,
      conic-gradient(from var(--hq-shine),
        var(--line) 0%, var(--line) 60%,
        rgba(255,255,255,.06) 68%, rgba(255,255,255,.55) 80%,
        rgba(255,255,255,.06) 92%, var(--line) 98%,
        var(--line) 100%
      ) border-box;
    animation: hq-shine 5.5s linear infinite;
  }
  @keyframes hq-shine{ to{ --hq-shine: 360deg; } }
  @media (prefers-reduced-motion:reduce){ .hq__card:hover{ animation:none; border-color:rgba(255,255,255,.2); } }
  .hq__row{ display:flex; align-items:flex-start; gap:14px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
  .hq__row:last-child{ border-bottom:0; }
  .hq__row svg{ flex:0 0 auto; color:var(--accent); margin-top:2px; }
  .hq__k{ margin:0 0 2px; font-size:var(--fs-small); letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); }
  .hq__v{ margin:0; font-weight:var(--fw-medium); }
  .hq__v a:hover{ color:var(--accent); }
  .mailcopy{ --mailcopy-hover:var(--accent-hover); }   /* email addresses (js/mailcopy.js) lift to the lighter teal on hover (10 Nov 2026) */
  @media (max-width:820px){ .hq__inner{ grid-template-columns:minmax(0,1fr); gap:var(--space-5); } }

  /* ===================== FOOTER CTA + FOOTER (shared) ===================== */
  .footcta{ border-top:1px solid var(--border-default); border-bottom:1px solid var(--border-default); }
  .footcta__inner{ max-width:var(--maxw); margin:0 auto; padding:clamp(48px,8vh,88px) var(--gutter);
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-5); }
  .footcta h2{ margin:0; font-weight:var(--fw-regular); font-size:clamp(1.75rem,3.4vw,2.75rem);
    line-height:1.1; letter-spacing:-0.01em; max-width:26ch; }
  .footcta h2 .footcta__q{ white-space:nowrap; }
  .footcta h2 .accent{ color:var(--accent); display:block; }
  @media (max-width:520px){ .footcta h2 .footcta__q{ white-space:normal; } }


  /* ===================== MOTION ===================== */
  @keyframes rise{from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);}}
  .reveal{opacity:0; animation:rise .7s cubic-bezier(.2,.7,.2,1) forwards;}
  .d1{animation-delay:.05s;} .d2{animation-delay:.16s;} .d3{animation-delay:.27s;}
  @media (prefers-reduced-motion:reduce){.reveal{opacity:1; animation:none;}}

/* two minimums (Rose, 13 Oct 2026): capitals 15px, sentences 18px — these sentence-set items sat at the old small size */
.trust__item{ font-size:var(--fs-note); }
.pcard h3{ font-size:var(--fs-body); }   /* card titles = body size, semibold */
@media (max-width:560px){ .sec__eyebrow, .lead__eyebrow{ letter-spacing:0.16em; } }
@media (max-width:360px){ .sec__eyebrow, .lead__eyebrow{ letter-spacing:0.12em; } }
