/* ============================================================
   Wurk Pty Ltd — Design System
   Aesthetic: Clean corporate light, editorial-premium.
   Display serif (Fraunces) + refined sans (Archivo) + mono accents.
   ============================================================ */

:root {
  /* Palette */
  --paper:        #FAF8F4;
  --paper-2:      #F3EFE8;
  --surface:      #FFFFFF;
  --ink:          #14201C;
  --ink-soft:     #36433D;
  --muted:        #6B7670;
  --line:         #E4DED3;
  --line-strong:  #D6CEC0;

  --primary:      #0E3B34;   /* deep forest-teal */
  --primary-700:  #0A2C27;
  --primary-300:  #2C6A5F;
  --accent:       #C2783A;   /* warm amber */
  --accent-soft:  #F4E7D7;
  --emerald:      #1C8A6E;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing & shape */
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1180px;
  --shadow-sm:    0 1px 2px rgba(20,32,28,.04), 0 2px 8px rgba(20,32,28,.05);
  --shadow-md:    0 10px 30px rgba(20,32,28,.08), 0 2px 6px rgba(20,32,28,.05);
  --shadow-lg:    0 30px 70px rgba(14,59,52,.16);
  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 130px) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary-300);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--primary-300); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Pulsing glow (matches the floating AI button) */
.btn-glow { position: relative; }
.btn-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(194,120,58,.5); animation: btnGlow 2.6s infinite;
}
.btn-glow:hover::after { animation-play-state: paused; }
@keyframes btnGlow {
  0%   { box-shadow: 0 0 0 0 rgba(194,120,58,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(194,120,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,120,58,0); }
}
@media (prefers-reduced-motion: reduce) { .btn-glow::after { animation: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,248,244,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(250,248,244,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background-color: var(--primary);
  background-image: url("../brand/wurk-mark-white.svg");
  background-size: 60%; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-size: 2rem; color: var(--primary); line-height: 1; }
.hero-meta .stat .l { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Decorative panel */
.hero-panel {
  position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 22px 22px; opacity: .5;
}
.hero-panel .code-head { display: flex; gap: 7px; margin-bottom: 20px; position: relative; }
.hero-panel .code-head i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hero-panel pre { position: relative; font-family: var(--font-mono); font-size: .82rem; line-height: 1.85; color: #d9e8e3; white-space: pre-wrap; }
.hero-panel .tk { color: #8fd6c2; }
.hero-panel .tv { color: #f0c79a; }
.hero-panel .tc { color: #6f8f88; }
.hero-panel .pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; position: relative; }
.hero-panel .pill { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; padding: 6px 12px; border-radius: 100px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trustbar .wrap { padding-top: 30px; padding-bottom: 30px; }
.trust-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 20px; }
.logo-marquee {
  position: relative; overflow: hidden; margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track { display: flex; gap: 18px; width: max-content; animation: logoScroll 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-card {
  flex: none; height: 86px; min-width: 200px; padding: 0 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.logo-card img { max-height: 46px; max-width: 156px; width: auto; object-fit: contain; }
.logo-card .wm { font-family: var(--font-sans); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Section headings ---------- */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 16px 0 18px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--primary);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card .tags span { font-family: var(--font-mono); font-size: .72rem; color: var(--primary-300); background: var(--paper-2); padding: 4px 10px; border-radius: 100px; }

/* Feature card (service detail) */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 64px 1fr; gap: 28px; align-items: start;
}
.feature .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.feature .ic svg { width: 30px; height: 30px; }
.feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); }
.feature li svg { flex: none; width: 20px; height: 20px; color: var(--emerald); margin-top: 3px; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent); font-weight: 600;
  position: absolute; top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: 6px; left: 42px; right: -12px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* ---------- Split / value section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.value-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.value-list .vi { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; }
.value-list .vi svg { width: 20px; height: 20px; }
.value-list h4 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.01em; }
.value-list p { font-size: .94rem; }

.panel-dark {
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-lg); color: #fff; padding: clamp(34px, 5vw, 54px); position: relative; overflow: hidden;
}
.panel-dark::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,120,58,.35), transparent 70%);
}
.panel-dark h3, .panel-dark h2 { color: #fff; }
.panel-dark p { color: rgba(255,255,255,.82); }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; position: relative; }
.panel-stats .n { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.panel-stats .l { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-thumb { height: 200px; position: relative; overflow: hidden; display: grid; place-items: center; }
.work-thumb .ph { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.work-thumb.g1 { background: linear-gradient(135deg, #0E3B34, #2C6A5F); }
.work-thumb.g2 { background: linear-gradient(135deg, #1B3A5C, #2C6A5F); }
.work-thumb.g3 { background: linear-gradient(135deg, #5A3D2B, #C2783A); }
.work-thumb.g4 { background: linear-gradient(135deg, #243B36, #14201C); }
.work-thumb.g5 { background: linear-gradient(135deg, #1B5E54, #0E3B34); }
.work-thumb.g6 { background: linear-gradient(135deg, #C2783A, #8A4F22); }
.work-thumb.g7 { background: linear-gradient(135deg, #2C4A6E, #14201C); }
.work-thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0); background-size: 20px 20px; }
.work-thumb .badge { position: relative; font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 600; letter-spacing: -0.02em; padding: 0 18px; text-align: center; }
.work-body { padding: 26px 28px 30px; }
.work-body .cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.work-body h3 { margin: 10px 0 8px; }
.work-body p { font-size: .96rem; }
.work-body .slot { color: var(--muted); font-style: italic; font-size: .92rem; }
.work-visit {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--primary);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: gap .25s var(--ease), border-color .25s;
}
.work-visit:hover { gap: 11px; border-color: var(--primary); }
.work-visit.light { color: #fff; border-color: rgba(255,255,255,.3); }
.work-visit.light:hover { border-color: #fff; }

/* Featured (flagship) project */
.flagship {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.flagship .fl-media {
  background: linear-gradient(160deg, #C4532A 0%, #8A3518 100%);
  color: #fff; padding: clamp(34px, 4vw, 56px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 380px;
}
.flagship .fl-media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0); background-size: 22px 22px; opacity: .6; }
.flagship .fl-flag { position: relative; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px; }
.flagship .fl-flag .star { width: 8px; height: 8px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.flagship .fl-logo { position: relative; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; margin-top: auto; }
.flagship .fl-tag { position: relative; font-size: 1rem; color: rgba(255,255,255,.85); margin-top: 6px; }
.flagship .fl-mock {
  position: relative; margin-top: 26px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 16px; font-family: var(--font-mono); font-size: .76rem; line-height: 1.8; color: #ffe2d4;
}
.flagship .fl-mock .ok { color: #b8e6c8; }
.flagship .fl-body { padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.flagship .fl-cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.flagship .fl-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 12px 0 14px; }
.flagship .fl-feats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.flagship .fl-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.flagship .fl-feats li svg { flex: none; width: 18px; height: 18px; color: var(--emerald); margin-top: 4px; }
@media (max-width: 880px) { .flagship { grid-template-columns: 1fr; } .flagship .fl-media { min-height: 300px; } }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag-row span { font-family: var(--font-mono); font-size: .72rem; color: var(--primary-300); background: var(--paper-2); padding: 4px 10px; border-radius: 100px; }

.fillable {
  border: 1px dashed var(--line-strong); background: var(--paper);
  border-radius: var(--radius); padding: 14px 18px; margin-top: 18px;
  font-size: .82rem; color: var(--muted); font-family: var(--font-mono);
  display: flex; gap: 10px; align-items: center;
}
.fillable svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.principle { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr; gap: 24px; }
.principle .num { font-family: var(--font-display); font-size: 2rem; color: var(--line-strong); }
.principle h3 { margin-bottom: 8px; }

/* ---------- Testimonial ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--ink); font-weight: 400; }
.quote blockquote em { color: var(--primary); font-style: italic; }
.quote .by { margin-top: 24px; font-size: .9rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .ci-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-info .ci-item:first-of-type { border-top: 1px solid var(--line); }
.contact-info .ci-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; }
.contact-info .ci-ic svg { width: 22px; height: 22px; }
.contact-info .ci-item .k { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.contact-info .ci-item .v { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 11px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(14,59,52,.08);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; }
.form-success { display: none; text-align: center; padding: 20px; }
.form-success.show { display: block; }
.form-success .chk { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--emerald); display: grid; place-items: center; margin: 0 auto 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 26px 26px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 540px; margin: 16px auto 30px; position: relative; }
.cta-band .btn-light { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-700); color: rgba(255,255,255,.78); padding: 70px 0 34px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .mark { background-color: rgba(255,255,255,.12); }
.footer-top p { color: rgba(255,255,255,.6); font-size: .94rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: .94rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom .abn { font-family: var(--font-mono); }

/* ---------- Autopilot (AI automation story) ---------- */
.autopilot {
  background: linear-gradient(160deg, #0E3B34 0%, #0A2C27 60%, #14201C 100%);
  color: #fff; position: relative; overflow: hidden;
  scroll-margin-top: 88px;
}

/* Floating "Curious about AI?" button */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 75;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 11px; border-radius: 100px;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s;
}
.ai-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.ai-fab:hover { background: var(--primary-700); transform: translateY(-3px); }
.ai-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(194,120,58,.45); animation: aiPulse 2.6s infinite;
}
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(194,120,58,.45); } 70% { box-shadow: 0 0 0 16px rgba(194,120,58,0); } 100% { box-shadow: 0 0 0 0 rgba(194,120,58,0); } }
.ai-cycle {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(20,32,28,.06);
}
.ai-cycle img {
  position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; object-fit: contain;
  opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-25deg);
  animation: aiCycle 6s infinite; will-change: opacity, transform;
}
.ai-cycle img.c1 { animation-delay: 0s; }
.ai-cycle img.c2 { animation-delay: 2s; }
.ai-cycle img.c3 { animation-delay: 4s; }
@keyframes aiCycle {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-25deg); }
  5%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  28%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  34%  { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(25deg); }
  100% { opacity: 0; }
}
.ai-lbl { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.ai-lbl b { color: #f0c79a; font-weight: 700; margin-left: 3px; }
@media (max-width: 560px) {
  .ai-fab { right: 14px; bottom: 14px; padding: 8px 15px 8px 8px; gap: 9px; }
  .ai-cycle { width: 33px; height: 33px; }
  .ai-cycle img { width: 21px; height: 21px; }
  .ai-lbl { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-fab::after, .ai-cycle img { animation: none; }
  .ai-cycle img.c1 { opacity: 1; transform: translate(-50%, -50%); }
}
.autopilot::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 26px 26px; opacity: .7;
}
.autopilot .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ap-copy h2 { color: #fff; margin: 16px 0 16px; }
.ap-copy h2 em { font-style: italic; color: #8fd6c2; }
.ap-copy .lead { color: rgba(255,255,255,.78); }
.ap-stat { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 8px; flex-wrap: wrap; }
.ap-stat .num { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: #fff; }
.ap-stat .unit { font-family: var(--font-display); font-size: 1.6rem; color: #8fd6c2; }
.ap-stat .lbl { font-size: .95rem; color: rgba(255,255,255,.7); }
.ap-copy .btn-light { margin-top: 26px; }

/* The live feed card */
.ap-feed {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; height: 420px;
  border: 1px solid rgba(255,255,255,.08);
}
.ap-feed-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 3;
}
.ap-feed-head .dots { display: flex; gap: 6px; }
.ap-feed-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.ap-feed-head .title { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); margin-left: 6px; }
.ap-feed-head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .72rem; color: var(--emerald); }
.ap-feed-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(28,138,110,.5); animation: apPulse 1.6s infinite; }
@keyframes apPulse { 0% { box-shadow: 0 0 0 0 rgba(28,138,110,.5); } 70% { box-shadow: 0 0 0 8px rgba(28,138,110,0); } 100% { box-shadow: 0 0 0 0 rgba(28,138,110,0); } }

.ap-viewport {
  position: relative; height: calc(420px - 53px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}
.ap-track { display: flex; flex-direction: column; animation: apScroll 26s linear infinite; }
.ap-feed:hover .ap-track { animation-play-state: paused; }
@keyframes apScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.ap-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.ap-row .chk {
  width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--emerald);
  display: grid; place-items: center;
}
.ap-row .chk svg { width: 17px; height: 17px; }
.ap-row .body { min-width: 0; flex: 1; }
.ap-row .task { font-size: .96rem; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-row .sub { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ap-row .tag { flex: none; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; color: var(--emerald); background: rgba(28,138,110,.10); border: 1px solid rgba(28,138,110,.25); padding: 4px 9px; border-radius: 100px; }

@media (max-width: 900px) {
  .autopilot .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ap-feed { order: 2; height: 380px; }
  .ap-viewport { height: calc(380px - 53px); }
}
@media (prefers-reduced-motion: reduce) { .ap-track { animation: none; } .ap-feed-head .live .pulse { animation: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(30px, 4vw, 50px); }
.page-hero .lead { max-width: 640px; margin-top: 20px; }
.page-hero h1 { max-width: 880px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split, .contact-grid, .about-hero { grid-template-columns: 1fr; gap: 38px; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { height: auto; min-height: 76px; flex-wrap: wrap; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  /* Mobile accordion menu: links + full-width CTA flow below the bar (no overlap) */
  .site-header.open .nav-links {
    display: flex; flex-direction: column; flex-basis: 100%; order: 3;
    border-top: 1px solid var(--line); margin-top: 8px; padding: 6px 0 2px; gap: 2px;
  }
  .site-header.open .nav-links a { padding: 13px 4px; font-size: 1.05rem; }
  .site-header.open .nav-cta { display: block; flex-basis: 100%; order: 4; padding: 4px 0 14px; }
  .site-header.open .nav-cta .btn { display: flex; width: 100%; justify-content: center; }
  /* Hamburger → X */
  .nav-toggle span { transition: transform .3s var(--ease), opacity .2s var(--ease); }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .grid-2, .field-row, .panel-stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .principle { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .hero-panel { order: 1; }            /* headline first on phones, code panel below */
  .ap-stat { gap: 6px 12px; }
  .ap-stat .lbl { flex-basis: 100%; margin-top: 4px; }
  .flagship .fl-mock { overflow-x: auto; }
}
@media (max-width: 360px) {
  .ai-lbl b { display: none; }         /* keep the floating pill compact on tiny screens */
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
