/* ==========================================================================
   AUDWeld — Concept 03 "Editorial / photo-led"
   Warm steel canvas, full-bleed photography, oversized display type, numbered
   chapters and a horizontal product rail. Brand-first rather than data-first.
   Same behaviour contract as concepts 01-02 so one js/audweld.js drives all.
   ========================================================================== */

:root {
  --bg:      oklch(14% 0.008 60);     /* warm charcoal, not the cool AUDEO navy */
  --bg-2:    oklch(19% 0.009 55);
  --fg:      oklch(97% 0.004 80);
  --muted:   oklch(72% 0.012 70);
  --rule:    rgb(255 255 255 / 0.13);
  --rule-2:  rgb(255 255 255 / 0.28);
  --accent:  oklch(66% 0.21 44);      /* #F05400 AUDWeld spark */
  --audeo:   oklch(47% 0.195 28);     /* #B51717 chrome only */

  --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 72px);
  --sect: clamp(72px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 clamp(15px, 0.4vw + 14px, 17.5px)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #150800; padding: 10px 16px; font: 590 14px/1 var(--font-body); text-decoration: none; transition: top .18s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); scroll-margin-top: 70px; }

/* --- Type: display runs big in this direction ----------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.4vw, 108px); line-height: 0.96; }
h2 { font-size: clamp(32px, 4.6vw, 62px); }
h3 { font-size: clamp(20px, 1.2vw + 16px, 26px); letter-spacing: -0.015em; line-height: 1.12; }
p { text-wrap: pretty; }
.lede { font-size: clamp(17px, 0.9vw + 15px, 22px); line-height: 1.5; color: var(--muted); max-width: 58ch; }

.label { font: 510 11.5px/1.5 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- Buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 99px; font: 510 15px/1 var(--font-body); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: all .18s; }
.btn:active { transform: translateY(2px); }
.btn--primary { background: var(--accent); color: #150800; font-weight: 590; }
.btn--primary:hover { background: oklch(73% 0.2 46); }
.btn--ghost { border-color: var(--rule-2); color: var(--fg); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--fg); background: rgb(255 255 255 / 0.08); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- AUDEO chrome (thin, floats over the hero photo) ----------------------- */
.utility { background: var(--audeo); font: 510 12px/1 var(--font-body); }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 34px; }
.utility a { text-decoration: none; opacity: .9; }
.utility a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.utility__right { display: flex; gap: 18px; }
@media (max-width: 640px) { .utility__left span { display: none; } }

.masthead { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brandlock { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brandlock img { width: clamp(80px, 8vw, 102px); filter: brightness(0) invert(1); opacity: .95; }
.brandlock__rule { width: 1px; height: 24px; background: var(--rule-2); }
.brandlock__product { font: 600 13px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav a { font: 510 14px/1 var(--font-body); color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: all .16s; }
.nav a:hover, .nav a.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.nav__cta { margin-left: 6px; }
/* `.nav a` outranks `.btn` on specificity — re-assert the button's own box. */
.nav a.btn { padding: 0 26px; border-bottom: 0; }
.nav a.btn:hover { border-bottom: 0; }
.nav a.btn--primary, .nav a.btn--primary:hover, .nav a.btn--primary.is-active { color: #150800; }
.nav a.btn--ghost { color: var(--fg); }
.navtoggle { margin-left: auto; width: 46px; height: 46px; display: none; place-items: center; background: none; border: 1px solid var(--rule-2); border-radius: 99px; cursor: pointer; }
.navtoggle svg { width: 20px; height: 20px; }
@media (max-width: 980px) {
  .navtoggle { display: grid; }
  .nav { position: absolute; inset: 100% 0 auto; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a:hover, .nav a.is-active { border-bottom-color: var(--rule); }
  .nav__cta { margin: 16px 0 0; }
}

/* --- Full-bleed hero ------------------------------------------------------ */
.phero { position: relative; min-height: clamp(520px, 86vh, 880px); display: grid; align-items: end; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.phero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgb(20 17 14 / 0.72) 42%, rgb(20 17 14 / 0.3) 100%),
    linear-gradient(to right, rgb(20 17 14 / 0.78), transparent 72%);
}
.phero .wrap { position: relative; padding-bottom: clamp(44px, 6vw, 86px); padding-top: clamp(80px, 12vw, 150px); }
.phero__logo { width: clamp(176px, 20vw, 228px); margin-bottom: 22px; padding: 11px 15px; background: rgb(0 0 0 / 0.55); border: 1px solid var(--rule); backdrop-filter: blur(4px); }
.phero h1 { max-width: 15ch; margin-bottom: 20px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__meta { position: absolute; right: var(--gut); bottom: clamp(44px, 6vw, 86px); text-align: right; display: none; }
@media (min-width: 1100px) { .phero__meta { display: block; } }
.phero__meta span { display: block; }

/* --- Manifesto statement -------------------------------------------------- */
.manifesto { border-bottom: 1px solid var(--rule); }
.manifesto__grid { display: grid; gap: clamp(26px, 4vw, 56px); }
@media (min-width: 900px) { .manifesto__grid { grid-template-columns: auto 1fr; } }
.manifesto .label { white-space: nowrap; }
.manifesto p + p { margin-top: 1.1em; color: var(--muted); font-size: clamp(15.5px, 0.4vw + 14.5px, 17px); max-width: 68ch; }

/* --- Numbered chapters with alternating full-bleed photography ------------- */
.chapter { border-bottom: 1px solid var(--rule); }
.chapter__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 940px) {
  .chapter__grid { grid-template-columns: 1fr 1fr; }
  .chapter:nth-of-type(even) .chapter__fig { order: -1; }
}
.chapter__num { font: 600 clamp(56px, 7vw, 104px)/0.85 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.2px var(--rule-2); display: block; margin-bottom: 14px; }
.chapter h3 { margin-bottom: 12px; }
.chapter p { color: var(--muted); max-width: 52ch; }
.chapter__codes { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.chapter__codes span { font: 510 12px/1 var(--font-mono); letter-spacing: 0.04em; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 99px; color: var(--muted); }
.chapter__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chapter__fig figcaption { margin-top: 12px; }

/* --- Horizontal product rail ---------------------------------------------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 32%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-top: clamp(28px, 3vw, 44px); scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 99px; }
.railcard { scroll-snap-align: start; background: var(--bg-2); border: 1px solid var(--rule); padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.railcard .n { font: 510 11.5px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--accent); }
.railcard h3 { font-size: clamp(18px, 0.8vw + 15px, 21px); }
.railcard p { color: var(--muted); font-size: 14.5px; }
.railcard ul { list-style: none; padding: 0; margin-top: auto; display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--rule); }
.railcard li { font: 510 12px/1.5 var(--font-mono); letter-spacing: 0.03em; color: var(--muted); }
.railcard li b { color: var(--fg); font-weight: 510; }
.railhint { margin-top: 14px; }

/* --- Pull quote (the one flourish) ---------------------------------------- */
.pullquote { background: var(--bg-2); border-block: 1px solid var(--rule); }
.pullquote blockquote { font: 600 clamp(26px, 3.6vw, 50px)/1.1 var(--font-display); letter-spacing: -0.03em; max-width: 20ch; }
.pullquote blockquote em { font-style: normal; color: var(--accent); }
.pullquote .label { margin-top: 24px; }

/* --- Industry strips (full-bleed bands) ------------------------------------ */
.strip { position: relative; min-height: clamp(260px, 32vw, 380px); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--rule); }
.strip__bg { position: absolute; inset: 0; }
.strip__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.strip:hover .strip__bg img { transform: scale(1.04); }
.strip__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 17 14 / 0.9), rgb(20 17 14 / 0.25)); }
.strip .wrap { position: relative; padding-block: clamp(26px, 3vw, 44px); }
.strip h3 { margin-bottom: 6px; }
.strip p { color: var(--muted); max-width: 52ch; font-size: 15px; }

/* --- Enquiry split screen -------------------------------------------------- */
.enquire { display: grid; }
@media (min-width: 1000px) { .enquire { grid-template-columns: 0.85fr 1.15fr; } }
.enquire__aside { position: relative; min-height: 320px; display: grid; align-items: center; overflow: hidden; }
.enquire__aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.enquire__aside::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, rgb(20 17 14 / 0.9), rgb(20 17 14 / 0.72)); }
.enquire__inner { position: relative; padding: clamp(40px, 5vw, 76px) var(--gut); }
.enquire__form { padding: clamp(40px, 5vw, 76px) var(--gut); background: var(--bg-2); }
.contactlist { display: grid; margin-top: 26px; }
.contactlist div { padding: 14px 0; border-top: 1px solid var(--rule); }
.contactlist dt { font: 510 10.5px/1.5 var(--font-mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contactlist dd { margin: 0; font-size: 15.5px; }
.contactlist a { text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.contactlist a:hover { border-bottom-color: var(--accent); }

.form { display: grid; gap: 16px; max-width: 680px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font: 510 10.5px/1.5 var(--font-mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea { min-height: 50px; padding: 13px 16px; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; font-size: 15.5px; width: 100%; transition: border-color .16s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(54% 0.012 70); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .err { font-size: 12.5px; color: oklch(72% 0.17 32); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: oklch(62% 0.19 30); }
.field.is-invalid .err { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__hint { font-size: 13px; color: var(--muted); max-width: 44ch; }
.form__ok { display: none; gap: 12px; align-items: flex-start; padding: 18px; border: 1px solid var(--accent); border-radius: 8px; background: oklch(66% 0.21 44 / 0.12); }
.form__ok.is-shown { display: flex; }
.form__ok svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.form__ok p { font-size: 15px; }

/* --- Fine print + footer --------------------------------------------------- */
.fineprint { padding-block: clamp(30px, 4vw, 48px); border-top: 1px solid var(--rule); }
.fineprint p { font-size: 12.5px; line-height: 1.65; color: oklch(58% 0.012 70); max-width: 108ch; }
.fineprint p + p { margin-top: 10px; }

.sitefoot { border-top: 1px solid var(--rule); padding-block: clamp(44px, 5vw, 72px) 76px; }
.sitefoot__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .sitefoot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sitefoot > .wrap > .sitefoot__grid img { width: 122px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .9; }
.sitefoot h4 { font: 600 12.5px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.sitefoot p { color: var(--muted); font-size: 15px; max-width: 42ch; }
.sitefoot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.sitefoot ul a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.sitefoot ul a:hover { color: var(--fg); }
.sitefoot__bar { margin-top: clamp(34px, 4vw, 52px); border-top: 1px solid var(--rule); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--muted); }
.sitefoot__bar a { text-decoration: none; }
.sitefoot__bar .sep { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }

/* --- WhatsApp float -------------------------------------------------------- */
.wa-float { position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 70; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 16px; background: #1faa54; color: #fff; border-radius: 99px; text-decoration: none; font: 590 14.5px/1 var(--font-body); box-shadow: 0 10px 30px rgb(0 0 0 / 0.45); transition: all .16s; }
.wa-float:hover { background: #1b9a4c; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 54px; justify-content: center; } }

/* --- Behaviour hooks shared with js/audweld.js ------------------------------ */
.panel[hidden] { display: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .masthead, .utility, .wa-float, .form { display: none !important; }
  body { background: #fff; color: #111; }
}
