/* Declarative Services Ltd
   Corporate primitives from the Declarative Brand Guidelines. Do not alter.
   Theme: dark. Motion: CSS only (no script), all of it gated on prefers-reduced-motion. */

@font-face { font-family: "Oswald"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/oswald-300.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-600.woff2") format("woff2"); }

:root {
  /* Corporate primitives */
  --brand-charcoal: #58585B;
  --brand-orange: #F16521;
  --brand-orange-dark: #9F410C;
  --brand-red: #E41D32;

  /* Semantic roles, dark */
  --canvas: #09090B;
  --surface: #111113;
  --surface-raised: #17171A;
  --ink: #F4F4F5;            /* 18.9:1 on canvas */
  --ink-muted: #A1A1AA;      /* 7.9:1 on canvas */
  --ink-subtle: #8B8B93;     /* 5.9:1 on canvas, small labels only */
  --accent: var(--brand-orange); /* 6.4:1 on canvas, used for text and strokes */
  --on-accent: #0A0A0B;      /* dark ink on filled orange, 6.3:1 */
  --hairline: rgba(255, 255, 255, 0.08);   /* decorative dividers */
  --edge: rgba(255, 255, 255, 0.24);       /* interactive control edges, >3:1 */
  --focus: var(--brand-orange);

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 60ch;
  --page: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--canvas); color: var(--ink); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: var(--gutter); top: 0.5rem; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 1.45rem; width: auto; }
.brand-entity {
  font-family: var(--font-display); font-weight: 300; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  color: var(--ink-muted); padding-left: 0.85rem; border-left: 1px solid var(--edge); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav ul a {
  font-size: 0.875rem; font-weight: 400; color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem; line-height: 1;
  padding: 0.75rem 1.1rem; border-radius: 4px; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn-primary { background: var(--brand-orange); color: var(--on-accent); }
.btn-primary:hover { background: #FF7A3A; }
.btn-ghost { border: 1px solid var(--edge); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hero::before { /* architectural grid, faded at the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 2rem; padding-block: clamp(4rem, 10vw, 8.5rem) clamp(4rem, 9vw, 7rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.75rem;
  font-family: var(--font-display); font-weight: 300; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--brand-orange); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.02; margin: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 11.5vw, 6.25rem); text-transform: uppercase; letter-spacing: -0.005em;
  max-width: 11ch;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede { margin: 1.75rem 0 0; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* Chevron array: the brand chevron, repeated as an architectural form */
.chevrons { width: 100%; height: auto; overflow: visible; }
.chevrons .ch { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 1.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.chevrons .ch-front { stroke: var(--brand-orange); stroke-width: 3; }
.chevrons .signal { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.chevrons .node { fill: var(--brand-orange); }
.chevrons .tick { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--hairline); overflow: hidden; padding-block: 1.4rem; }
.ticker-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-subtle); white-space: nowrap;
}
.ticker li::after { content: ""; width: 6px; height: 6px; background: var(--brand-orange); transform: rotate(45deg); }

.chevrons .o1 { opacity: 0.95; } .chevrons .o2 { opacity: 0.8; } .chevrons .o3 { opacity: 0.66; }
.chevrons .o4 { opacity: 0.52; } .chevrons .o5 { opacity: 0.4; } .chevrons .o6 { opacity: 0.28; } .chevrons .o7 { opacity: 0.18; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); border-bottom: 1px solid var(--hairline); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); text-transform: uppercase; }
.section-head p { margin: 0; max-width: 46ch; color: var(--ink-muted); }
.kicker { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 300; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* Capability grid */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.cap { background: var(--canvas); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.25rem; transition: background-color 0.3s; }
.cap:hover { background: var(--surface); }
.cap-fig { height: 168px; border: 1px solid var(--hairline); border-radius: 10px; background:
  radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0) 0 0 / 16px 16px, var(--surface);
  display: grid; place-items: center; overflow: hidden; }
.cap-fig svg { width: 100%; height: 100%; }
.cap-index { font-family: var(--font-display); font-weight: 300; font-size: 0.9rem; letter-spacing: 0.12em; color: var(--ink-subtle); }
.cap h3 { font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.01em; }
.cap p { margin: 0; color: var(--ink-muted); max-width: 48ch; }
.specs { list-style: none; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specs li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
  padding: 0.3rem 0.6rem; border: 1px solid var(--edge); border-radius: 3px; background: rgba(255,255,255,0.02);
}

/* Figure styling (inline SVG, classes only: CSP forbids style attributes) */
.fig-line { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 1.25; }
.fig-faint { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.fig-accent { fill: none; stroke: var(--brand-orange); stroke-width: 1.75; }
.fig-fill { fill: var(--brand-orange); }
.fig-text { font-family: var(--font-display); font-weight: 300; font-size: 11px; letter-spacing: 0.1em; fill: var(--ink-subtle); text-transform: uppercase; }
.fig-text-accent { fill: var(--accent); }
.seat { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.2); stroke-width: 1; }
.plate { fill: rgba(17,17,19,0.92); stroke: rgba(255,255,255,0.3); stroke-width: 1; }
.plate-top { stroke: var(--brand-orange); }
.ui-bar { fill: rgba(255,255,255,0.14); }
.ui-bar-accent { fill: var(--brand-orange); }

/* Group strip */
.group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--hairline); border-radius: 14px; background: linear-gradient(135deg, rgba(241,101,33,0.08), transparent 55%), var(--surface); }
.group h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: uppercase; }
.group p { margin: 0.75rem 0 0; color: var(--ink-muted); max-width: 56ch; }

/* Contact */
.contact h2.big { font-size: clamp(3rem, 9vw, 7.5rem); text-transform: uppercase; line-height: 0.95; }
.contact-grid { margin: 3rem 0 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2rem 5rem; }
.contact-item dt { font-family: var(--font-display); font-weight: 300; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 0.4rem; }
.contact-item dd { margin: 0; }
.contact-item a {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.2;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.contact-item a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 2px;
  background: var(--brand-orange); transform-origin: left; transform: scaleX(0.25); transition: transform 0.45s var(--ease);
}
.contact-item a:hover::after, .contact-item a:focus-visible::after { transform: scaleX(1); }

/* Long-form pages */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000 10%, transparent 70%);
}
.page-head .wrap { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); text-transform: uppercase; }
.page-head p { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.1rem; }
.prose { max-width: var(--measure); padding-block: clamp(2.5rem, 6vw, 4.5rem); color: #D4D4D8; }
.prose h2 { font-size: 1.6rem; margin: 2.75rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li::marker { color: var(--accent); }
.prose .meta { color: var(--ink-subtle); font-size: 0.875rem; }

/* Footer */
.site-footer { font-size: 0.875rem; color: var(--ink-subtle); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 2.25rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Load sequence */
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions { animation: rise 0.9s var(--ease) both; }
  .hero h1 { animation-delay: 0.08s; }
  .hero .lede { animation-delay: 0.2s; }
  .hero-actions { animation-delay: 0.3s; }

  /* Chevrons draw in back to front, then a signal runs along the front edge */
  .chevrons .ch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
  .chevrons .ch:nth-of-type(1) { animation-delay: 0.85s; }
  .chevrons .ch:nth-of-type(2) { animation-delay: 0.75s; }
  .chevrons .ch:nth-of-type(3) { animation-delay: 0.65s; }
  .chevrons .ch:nth-of-type(4) { animation-delay: 0.55s; }
  .chevrons .ch:nth-of-type(5) { animation-delay: 0.45s; }
  .chevrons .ch:nth-of-type(6) { animation-delay: 0.35s; }
  .chevrons .ch:nth-of-type(7) { animation-delay: 0.25s; }
  .chevrons .ch-front { animation-delay: 1s; animation-duration: 1.2s; }
  .chevrons .signal { stroke-dasharray: 0.08 0.92; stroke-dashoffset: 0.08; animation: signal 4.5s linear 2.4s infinite; }
  .chevrons .node { transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--ease) both, breathe 3s ease-in-out 2.2s infinite; }
  .chevrons .node { animation-delay: 1.9s, 2.4s; }
  .chevrons .tick { animation: fade 1.5s ease both 0.2s; }

  /* Ticker */
  .ticker-track { animation: marquee 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* Figures */
  .seat-on { animation: seat 6s ease-in-out infinite; }
  .seat-on:nth-of-type(3n)   { animation-delay: 0.4s; }
  .seat-on:nth-of-type(3n+1) { animation-delay: 1.2s; }
  .seat-on:nth-of-type(4n)   { animation-delay: 2s; }
  .seat-on:nth-of-type(5n)   { animation-delay: 2.8s; }
  .packet { animation: travel 3.6s var(--ease) infinite; }
  .stage-dot { animation: stage 3.6s ease infinite; }
  .stage-dot:nth-of-type(2) { animation-delay: 1.2s; }
  .stage-dot:nth-of-type(3) { animation-delay: 2.4s; }
  .plate-g { animation: float 6s ease-in-out infinite; }
  .plate-g:nth-of-type(2) { animation-delay: -1s; }
  .plate-g:nth-of-type(3) { animation-delay: -2s; }
  .ui-bar, .ui-bar-accent { transform-box: fill-box; transform-origin: left center; animation: build 5s var(--ease) infinite; }
  .ui-row:nth-of-type(2) > * { animation-delay: 0.25s; }
  .ui-row:nth-of-type(3) > * { animation-delay: 0.5s; }
  .ui-row:nth-of-type(4) > * { animation-delay: 0.75s; }

  /* Scroll-triggered reveals: progressive enhancement, no script */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .caps .cap:nth-child(2) { animation-range: entry 12% cover 34%; }
    .caps .cap:nth-child(4) { animation-range: entry 12% cover 34%; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes signal { 0% { stroke-dashoffset: 0.08; opacity: 0; } 8% { opacity: 1; } 60% { opacity: 1; } 70%, 100% { stroke-dashoffset: -0.92; opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes seat { 0%, 15% { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.2); } 25%, 80% { fill: var(--brand-orange); stroke: var(--brand-orange); } 90%, 100% { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.2); } }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(220px); opacity: 0; } }
@keyframes stage { 0%, 20% { fill: var(--surface); } 30%, 85% { fill: var(--brand-orange); } 100% { fill: var(--surface); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes build { 0% { transform: scaleX(0); opacity: 0; } 15% { transform: scaleX(1); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 95%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Static state for reduced motion: show the finished figures */
@media (prefers-reduced-motion: reduce) {
  .chevrons .signal { display: none; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-track ul[aria-hidden] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 26rem; justify-self: end; margin-top: -1rem; }
  .section-head { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .site-nav ul { display: none; }
  .brand { gap: 0.65rem; }
  .brand img { height: 1.25rem; }
  .brand-entity { font-size: 0.9rem; letter-spacing: 0.12em; padding-left: 0.65rem; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media print {
  :root { --canvas: #fff; --surface: #fff; --ink: #000; --ink-muted: #333; --ink-subtle: #444; color-scheme: light; }
  .site-header { position: static; }
  .hero-visual, .ticker, .site-nav, .skip, .hero::before, .page-head::before { display: none; }
}

.nocase { text-transform: none; }

/* Two-column hero: size the headline to its column so "practitioners." fits */
@media (min-width: 60.01rem) { .hero h1 { font-size: clamp(3rem, 6.4vw, 6.25rem); } }

/* Very narrow phones: the lockup needs the full header width; the hero CTA covers contact */
@media (max-width: 25rem) { .site-nav .btn { display: none; } }
