  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  [id] { scroll-margin-top: 84px; }
  body {
    margin: 0; background: var(--bg-page); color: var(--text-body);
    font-family: var(--font-body); -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1,h2,h3,h4 { text-wrap: balance; margin: 0; }
  p { text-wrap: pretty; margin: 0; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }
  ::selection { background: var(--gold-500); color: var(--text-on-gold); }

  /* ---- Keyboard focus ---- */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }

  /* ---- Film grain (fixed, non-scrolling) ---- */
  body::after { content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); }

  /* ---- Custom scrollbar ---- */
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--ink-950); }
  ::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 6px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

  /* ---- Typographic helpers ---- */
  .kicker { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs);
    text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--accent-bright);
    display: inline-flex; align-items: center; gap: 12px; }
  .kicker::before { content: ""; width: 28px; height: 2px; background: var(--gradient-gold-h); }
  .kicker.center { justify-content: center; }
  .display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    letter-spacing: -0.01em; line-height: 1.02; color: var(--text-heading); }
  .h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
    letter-spacing: -0.005em; line-height: 1.05; font-size: clamp(28px, 3.6vw, 46px); color: var(--text-heading); }
  .gold-text { background: var(--gradient-gold); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent; }
  .muted { color: var(--text-muted); }
  .faint { color: var(--text-faint); }
  .lead { font-size: var(--text-lg); color: var(--text-muted); line-height: var(--leading-normal); }

  /* ---- Layout ---- */
  .wrap { max-width: 1240px; margin: 0 auto; padding-inline: 48px; }
  .section { padding-block: clamp(72px, 9vw, 120px); position: relative; }
  .band { background: var(--bg-deep); border-block: 1px solid var(--border-hairline); }

  /* ---- Scroll reveal ---- */
  .reveal { opacity: 0; transform: translateY(26px); transition:
    opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"]{ transition-delay: .08s; }
  .reveal[data-d="2"]{ transition-delay: .16s; }
  .reveal[data-d="3"]{ transition-delay: .24s; }
  .reveal[data-d="4"]{ transition-delay: .32s; }
  .reveal[data-d="5"]{ transition-delay: .40s; }

  /* ---- Hero animated backdrop ---- */
  @keyframes glowdrift { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-3%,2%) scale(1.08);} }
  @keyframes sheen { 0%{ background-position: -200% 0; } 100%{ background-position: 200% 0; } }
  @keyframes gridpan { from { background-position: 0 0; } to { background-position: 0 60px; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes pulse { 0%,100%{ opacity:.35;} 50%{ opacity:.9;} }
  @keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

  .hero { position: relative; overflow: hidden; padding-top: 96px; }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; }
  .hero-grid { position: absolute; inset: -60px; opacity: .5;
    background-image:
      linear-gradient(var(--border-hairline) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-hairline) 1px, transparent 1px);
    background-size: 60px 60px; mask-image: radial-gradient(70% 70% at 60% 30%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 0%, transparent 72%);
    animation: gridpan 14s linear infinite; }
  .hero-glow { position: absolute; width: 900px; height: 900px; right: -180px; top: -260px;
    background: radial-gradient(circle, rgba(68,58,43,.6) 0%, rgba(207,179,112,.06) 40%, transparent 68%);
    animation: glowdrift 16s ease-in-out infinite; }
  .hero-ring { position: absolute; right: 6%; top: 20%; width: 520px; height: 520px; opacity: .25; }
  .hero-ring::before, .hero-ring::after { content:""; position:absolute; inset:0; border-radius:50%;
    border: 1px dashed rgba(207,179,112,.35); }
  .hero-ring::after { inset: 70px; border-style: solid; border-color: rgba(207,179,112,.12);
    animation: spin 60s linear infinite; }
  .hero-ring .r2 { position:absolute; inset:150px; border-radius:50%; border:1px dashed rgba(207,179,112,.25);
    animation: spin 40s linear infinite reverse; }

  /* ---- Buttons (site-level, richer than DS default for hero) ---- */
  .btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:pointer;
    font-family: var(--font-display); font-weight:500; text-transform:uppercase;
    letter-spacing: var(--tracking-wide); border-radius: var(--radius-sm); border:1px solid transparent;
    transition: all var(--dur-med) var(--ease-standard); white-space:nowrap; }
  .btn-lg { padding: 16px 30px; font-size: var(--text-md); }
  .btn-md { padding: 12px 22px; font-size: var(--text-sm); }
  .btn-primary { background: var(--gold-500); color: var(--text-on-gold); box-shadow: var(--shadow-gold); }
  .btn-primary:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(207,179,112,.32); }
  .btn-primary:active { transform: translateY(0); }
  .btn-ghost { background: transparent; color: var(--accent-bright); border-color: var(--border-gold); }
  .btn-ghost:hover { background: rgba(207,179,112,.10); border-color: var(--accent); transform: translateY(-2px); }
  .btn svg { transition: transform var(--dur-med) var(--ease-out); }
  .btn:hover svg.arr { transform: translateX(4px); }

  /* ---- Cards ---- */
  .surface { background: var(--surface-card); border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md); box-shadow: var(--edge-top), var(--shadow-md); }
  .lift { transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med); }
  .lift:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--edge-top), var(--shadow-lg); }

  /* ---- Image panel — tactical blueprint graphic ---- */
  .imgpanel { position: relative; overflow: hidden;
    background: radial-gradient(120% 130% at 72% 18%, #1a1610 0%, #0d0e11 52%, #08090b 100%); }
  .imgpanel .ip-grid { position:absolute; inset:0; opacity:.4;
    background-image:
      linear-gradient(rgba(207,179,112,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(207,179,112,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 90%);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 90%); }
  .imgpanel .ip-rings { position:absolute; inset:0; }
  .imgpanel .ip-rings::before { content:""; position:absolute; left:50%; top:50%; width:150%; aspect-ratio:1;
    transform: translate(-50%,-50%);
    background: repeating-radial-gradient(circle at 50% 50%, transparent 0 71px, rgba(207,179,112,.09) 71px 72px);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 68%); }
  .imgpanel .ip-cross { position:absolute; inset:0; opacity:.5;
    background:
      linear-gradient(rgba(207,179,112,.14), rgba(207,179,112,.14)) 50% 50% / 1px 34% no-repeat,
      linear-gradient(rgba(207,179,112,.14), rgba(207,179,112,.14)) 50% 50% / 34% 1px no-repeat; }
  .imgpanel .ip-tick { position:absolute; width:14px; height:14px; opacity:.55; }
  .imgpanel .ip-tick.tl { top:12px; left:12px; border-top:1px solid var(--gold-500); border-left:1px solid var(--gold-500); }
  .imgpanel .ip-tick.tr { top:12px; right:12px; border-top:1px solid var(--gold-500); border-right:1px solid var(--gold-500); }
  .imgpanel .ip-tick.bl { bottom:12px; left:12px; border-bottom:1px solid var(--gold-500); border-left:1px solid var(--gold-500); }
  .imgpanel .ip-tick.br { bottom:12px; right:12px; border-bottom:1px solid var(--gold-500); border-right:1px solid var(--gold-500); }
  .imgpanel .ip-emblem { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    color: rgba(207,179,112,.55); filter: drop-shadow(0 0 26px rgba(207,179,112,.22));
    transition: transform .7s var(--ease-out), color .4s; }
  .imgpanel .ip-tag { position:absolute; left:18px; bottom:15px; display:flex; align-items:center; gap:10px;
    font-family: var(--font-display); font-size:10px; text-transform:uppercase; letter-spacing:.22em;
    color: rgba(201,195,182,.55); }
  .imgpanel .ip-tag::before { content:""; width:18px; height:1px; background: var(--gold-500); opacity:.7; }
  .imgpanel:hover .ip-emblem { transform: scale(1.07); color: rgba(207,179,112,.8); }

  /* ---- Photo mode for panels ---- */
  .imgpanel .ip-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
  .imgpanel .ip-photo-bg { position:absolute; inset:0; background-size:cover; background-position:center;
    background-repeat:no-repeat; transition: transform .7s var(--ease-out); }
  .imgpanel:hover .ip-photo-bg { transform: scale(1.04); }
  .imgpanel .ip-shade { position:absolute; inset:0; pointer-events:none;
    background: linear-gradient(180deg, rgba(5,6,8,.12) 0%, transparent 35%, transparent 62%, rgba(5,6,8,.55) 100%); }
  .imgpanel .ip-photo { transition: transform .7s var(--ease-out); }
  .imgpanel:hover .ip-photo { transform: scale(1.04); }

  /* ---- Hero slideshow ---- */
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
  .hero-slides { position:relative; height:100%; overflow:hidden; }
  .hero-slides img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transition: opacity 1.2s var(--ease-standard); will-change: opacity, transform; }
  .hero-slides img.on { opacity:1; animation: kenburns 7s ease-out forwards; }
  @media (prefers-reduced-motion: reduce) {
    .hero-slides img { transition:none; }
    .hero-slides img.on { animation:none; }
    .imgpanel .ip-photo, .imgpanel:hover .ip-photo,
    .imgpanel .ip-photo-bg, .imgpanel:hover .ip-photo-bg { transition:none; transform:none; }
  }

  /* ---- Marquee ---- */
  .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* ---- Service showcase (tabs) ---- */
  .svc-showcase { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; }
  .svc-tab { display:flex; align-items:center; gap:16px; width:100%; text-align:left; cursor:pointer;
    padding: 18px 20px; background: transparent; border: 1px solid transparent; border-left: 2px solid var(--border-hairline);
    color: var(--text-muted); transition: all var(--dur-med) var(--ease-standard); }
  .svc-tab .num { font-family: var(--font-display); font-weight:700; font-size: 15px; color: var(--text-disabled); transition: color var(--dur-med); }
  .svc-tab .ttl { font-family: var(--font-display); font-weight:500; text-transform:uppercase;
    letter-spacing: var(--tracking-wide); font-size: var(--text-sm); }
  .svc-tab:hover { color: var(--text-heading); background: rgba(207,179,112,.04); }
  .svc-tab.on { color: var(--text-heading); border-left-color: var(--gold-500);
    background: linear-gradient(90deg, rgba(207,179,112,.08), transparent 70%); }
  .svc-tab.on .num { color: var(--accent-bright); }
  @keyframes panelin { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform:none; } }
  .svc-panel { animation: panelin .45s var(--ease-out); }

  /* ---- Mobile menu ---- */
  .mob-menu-btn { display:none; width:44px; height:44px; align-items:center; justify-content:center;
    background:transparent; border:1px solid var(--border-hairline); border-radius: var(--radius-sm);
    color: var(--text-heading); cursor:pointer; }
  .mob-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,8,.97);
    backdrop-filter: blur(10px); display:flex; flex-direction:column; padding: 84px 28px 40px;
    animation: panelin .3s var(--ease-out); overflow-y:auto; }
  .mob-overlay a.mlink { font-family: var(--font-display); font-weight:600; text-transform:uppercase;
    letter-spacing: var(--tracking-wide); font-size: 26px; color: var(--text-body); padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline); display:flex; align-items:center; justify-content:space-between; }
  .mob-overlay a.mlink.on { color: var(--accent-bright); }
  .mob-close { position:absolute; top:16px; right:16px; width:44px; height:44px;
    display:flex; align-items:center; justify-content:center; background:transparent;
    border:1px solid var(--border-gold); border-radius: var(--radius-sm);
    color: var(--accent-bright); cursor:pointer; }
  .mob-overlay .legal-row { margin-top: 26px; display:flex; gap: 26px; }
  .mob-overlay .legal-row button { background:none; border:none; padding:0; cursor:pointer;
    color: var(--text-faint); font-family: var(--font-display); text-transform:uppercase;
    letter-spacing: var(--tracking-wide); font-size: var(--text-xs); }

  /* ---- Responsive visibility utilities ---- */
  .m-only-flex, .m-only-block { display: none !important; }

  /* ---- Mobile stacked services ---- */
  .svc-m { margin-bottom: 44px; }
  .svc-m:last-child { margin-bottom: 0; }
  .svc-m-head { display:flex; align-items:baseline; gap:12px; margin-bottom:10px; }
  .svc-m-head .num { font-family: var(--font-display); font-weight:700; font-size:17px; color: var(--accent-bright); }
  .svc-m-head h3 { font-family: var(--font-display); font-weight:600; text-transform:uppercase;
    letter-spacing: var(--tracking-wide); font-size: var(--text-xl); color: var(--text-heading);
    margin:0; overflow-wrap: break-word; min-width: 0; }
  .svc-m p { color: var(--text-muted); font-size: var(--text-md); line-height: var(--leading-normal); margin-bottom: 16px; }
  .svc-m .svc-m-photo { border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--border-hairline); }

  /* Long uppercase titles must never overflow the showcase panel */
  .svc-panel h3, .svc-tab .ttl { overflow-wrap: break-word; min-width: 0; }

  /* ---- Interior page header ---- */
  .page-header { position: relative; overflow: hidden; padding: 150px 0 64px;
    border-bottom: 1px solid var(--border-hairline); }

  @media (max-width: 900px) {
    .wrap { padding-inline: 24px; }
    .page-header { padding-top: 116px; }
    .hero-cols { grid-template-columns: 1fr !important; }
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr !important; }
    .svc-row { grid-template-columns: 1fr !important; }
    .svc-row > div:first-child { order: 1 !important; }
    .svc-row > div:last-child { order: 2 !important; }
    .about-split, .svc-index, .svc-detail, .scope-split, .contact-split { grid-template-columns: 1fr !important; }
    .stat-grid { grid-template-columns: 1fr 1fr !important; }
    /* 2x2 stats: clean cross dividers instead of the desktop 4-in-a-row borders */
    .stat-grid > div { border-right: none !important; padding: 24px 18px !important; }
    .stat-grid > div:nth-child(odd) { border-right: 1px solid var(--border-hairline) !important; }
    .stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-hairline); }
    .foot-grid { grid-template-columns: 1fr 1fr !important; }
    .desk-nav { display: none !important; }
    .mob-lang { display: flex !important; gap: 8px !important; }
    .mob-menu-btn { display: inline-flex; width: 40px; height: 40px;
      border-color: rgba(207,179,112,0.45); color: var(--accent-bright); }
    .mob-menu-btn svg { width: 20px; height: 20px; }

    /* Solid, contrasty top bar: logo left, lang + hamburger right */
    .site-nav { padding: 10px 16px !important; gap: 12px !important;
      background: rgba(8,9,11,0.96) !important;
      border-bottom: 1px solid rgba(207,179,112,0.25) !important;
      box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
    .site-nav > a img { height: 34px !important; }
    .lang-btn { padding: 8px 11px !important; }
    .mob-overlay { padding-top: 84px; }

    /* Visibility utilities */
    .m-hide { display: none !important; }
    .m-only-flex { display: flex !important; }
    .m-only-block { display: block !important; }

    /* Hero: headline high under the bar, photo, then CTAs */
    .hero { padding-top: 72px; }
    .hero > .wrap { padding-top: 14px !important; }
    .hero-cols { min-height: 0 !important; gap: 20px !important; }
    .hero-cols h1 { margin: 12px 0 4px !important; }
    .hero-photo { height: 330px !important; }
    .hero-cta-m { flex-direction: column; gap: 12px; }
    .hero-cta-m .btn { width: 100%; }

    /* Why Armaek: single column, image below text */
    .why-split { grid-template-columns: 1fr !important; gap: 32px !important; }
    .why-split > .why-img { order: 2; height: 300px !important; }
    .why-split > div:last-child { order: 1; }
    .why-vals { grid-template-columns: 1fr !important; gap: 20px !important; }

    /* Footer: brand block full width above link columns; company data full width */
    .foot-grid { gap: 28px !important; }
    .foot-grid > div:first-child { grid-column: 1 / -1; }
    .foot-grid > div:first-child p { max-width: none !important; }
    .foot-grid > div:nth-child(3) { grid-column: 1 / -1; }

    /* Footer bottom: motto, legal links under it, copyright left underneath */
    .foot-bottom { flex-direction: column; align-items: flex-start !important; gap: 14px !important; }
    .foot-copy { margin-left: 0 !important; }
    .svc-showcase { grid-template-columns: 1fr !important; }
    .svc-tabs { display:flex !important; flex-direction:row !important; overflow-x:auto; gap:8px; padding-bottom:6px;
      scrollbar-width: none; }
    .svc-tabs::-webkit-scrollbar { display:none; }
    .svc-tab { border-left:none; border-bottom:2px solid var(--border-hairline); white-space:nowrap; padding:12px 16px; }
    .svc-tab.on { border-bottom-color: var(--gold-500); }
    .svc-panel-grid { grid-template-columns: 1fr !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-glow, .hero-grid, .hero-ring::after, .hero-ring .r2, .marquee-track { animation: none; }
  }

  /* ---- Cookie consent (bottom right) ---- */
  .cookie-box { position: fixed; right: 20px; bottom: 20px; z-index: 55; max-width: 380px;
    background: var(--surface-card); border: 1px solid var(--border-gold); border-radius: var(--radius-md);
    box-shadow: var(--edge-top), var(--shadow-lg); padding: 22px; animation: panelin .45s var(--ease-out); }
  .cookie-box p { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); margin: 0 0 14px; }
  .cookie-box .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .cookie-box .cookie-more { background: none; border: none; padding: 0; cursor: pointer; margin-left: auto;
    color: var(--text-faint); font-family: var(--font-display); text-transform: uppercase;
    letter-spacing: var(--tracking-wide); font-size: var(--text-2xs); }
  .cookie-box .cookie-more:hover { color: var(--accent-bright); }
  @media (max-width: 900px) {
    .cookie-box { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  }
