/* Identité visuelle de cybersecurite.hashe.fr, adaptée à Wagtail. */

    /* Palette et proportions : les réglages principaux sont ici. */
    :root {
      --bg: #0b0e0c;
      --surface: #111611;
      --ink: #f0f2e9;
      --muted: #a0a69d;
      --dim: #727c70;
      --accent: #c2f970;
      --line: rgba(199, 222, 180, .15);
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      --sans: "Helvetica Neue", Arial, sans-serif;
      --max: 1320px;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 30px; }
    body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
    body.modal-open { overflow: hidden; }
    ::selection { background: var(--accent); color: var(--bg); }
    a { color: inherit; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
    [hidden] { display: none !important; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .skip { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 18px; background: var(--accent); color: var(--bg); transform: translateY(-160%); }
    .skip:focus { transform: translateY(0); }
    .shell { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 56px; }
    .atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 78% 31%, rgba(116, 166, 58, .072), transparent 48%), var(--bg); }
    .atmosphere::before { content: ""; position: absolute; inset: 0; opacity: .026; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.94' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
    .atmosphere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(199,222,180,.025) 50%, transparent calc(50% + .5px)); background-size: 160px 100%; }
    .topbar { display: flex; align-items: center; justify-content: space-between; min-height: 109px; border-bottom: 1px solid var(--line); gap: 20px; }
    .brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
    /* Fenêtre de présentation : les marges vides du PNG ne prennent plus de place.
       Le fichier image d’origine est conservé sans modification. */
    .brand-logo { display: block; width: 190px; max-width: 100%; height: auto; aspect-ratio: 1317 / 600; object-fit: cover; object-position: center 55%; }
    .brand-mark, .brand-name, .brand-divider, .brand-specialty { display: none; }
    .topbar-right { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
    .status { display: flex; align-items: center; gap: 9px; font: 10px/1.4 var(--mono); letter-spacing: 1.35px; text-transform: uppercase; color: #c3cbbb; }
    .status-dot { position: relative; height: 6px; width: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
    .status-dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(194,249,112,.4); border-radius: 50%; animation: beacon 3.5s ease-out infinite; }
    .motion-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); transition: border-color .2s, color .2s; }
    .motion-toggle:hover { color: var(--accent); border-color: var(--accent); }
    .motion-toggle svg { height: 13px; width: 13px; }
    .motion-toggle[aria-pressed="false"] .pause-icon, .motion-toggle[aria-pressed="true"] .play-icon { display: none; }
    .hero { position: relative; min-height: 641px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 0; padding: 62px 0 61px; }
    .hero-copy { position: relative; z-index: 2; min-width: 0; }
    .hero-logo-panel {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 354px;
      max-width: 100%;
      gap: 10px;
      margin: 0 0 22px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: linear-gradient(180deg, rgba(17,22,17,.86), rgba(11,14,12,.6));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 18px 60px rgba(0,0,0,.18);
    }
    .hero-logo {
      display: block;
      width: 100%;
      max-width: 320px;
      height: auto;
      aspect-ratio: 1317 / 600;
      object-fit: cover;
      object-position: center 55%;
      filter: drop-shadow(0 0 18px rgba(194,249,112,.07));
    }
    .hero-logo-subnote { max-width: 100%; font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); overflow-wrap: break-word; }
    .hero-logo-subnote::before { content: "// "; color: var(--accent); }
    .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.65px; font: 10px/1.5 var(--mono); }
    .eyebrow::before { content: ""; display: block; width: 25px; height: 1px; background: var(--accent); }
    h1 { margin: 0; font-size: clamp(68px, 7.3vw, 101px); line-height: .99; font-weight: 750; letter-spacing: -.072em; }
    .hero-line { display: block; white-space: nowrap; }
    .accent { color: var(--accent); }
    .scramble { display: inline-block; min-height: 1.05em; }
    .hero-intro { margin: 30px 0 0; color: var(--ink); font-size: 19px; line-height: 1.55; letter-spacing: -.25px; }
    .hero-description { margin: 9px 0 0; max-width: 395px; font-size: 14px; line-height: 1.85; color: var(--muted); }
    .actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
    .button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 17px 21px; min-height: 51px; text-decoration: none; background: var(--accent); color: #162109; border: 1px solid var(--accent); font-size: 12px; line-height: 1.25; font-weight: 700; border-radius: 3px; transition: background .2s, box-shadow .2s, transform .2s; }
    .button-primary:hover { background: #d4ffa0; box-shadow: 0 4px 30px rgba(194,249,112,.12); transform: translateY(-2px); }
    .button-primary svg { width: 15px; height: 15px; transition: transform .2s; }
    .button-primary:hover svg { transform: translate(2px, 2px); }
    .button-terminal { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 0; color: #c2c8bb; border: 0; border-bottom: 1px solid transparent; background: none; font: 11px/1.4 var(--mono); transition: color .2s, border-color .2s; }
    .button-terminal:hover { color: var(--accent); border-bottom-color: var(--line); }
    .terminal-glyph { color: var(--accent); font-size: 16px; }
    .launch-note { display: flex; gap: 8px; align-items: center; margin: 23px 0 0; color: var(--dim); font: 10px/1.6 var(--mono); }
    .launch-note svg { height: 12px; width: 12px; flex-shrink: 0; }
    .visual { position: relative; width: 100%; aspect-ratio: 1 / 1.08; max-height: 540px; isolation: isolate; }
    .visual::before { content: ""; position: absolute; inset: 9% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(166,227,97,.065), rgba(166,227,97,.015) 43%, transparent 66%); filter: blur(6px); }
    .visual::after { content: ""; position: absolute; inset: 2% -2%; background-image: radial-gradient(rgba(180,206,158,.17) .7px, transparent .7px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse, #000 22%, transparent 69%); mask-image: radial-gradient(ellipse, #000 22%, transparent 69%); z-index: -1; }
    #network { position: absolute; inset: 0; width: 100%; height: 100%; }
    .core { position: absolute; top: 49%; left: 50%; width: 87px; transform: translate(-50%, -50%); color: var(--accent); filter: drop-shadow(0 0 25px rgba(194,249,112,.2)); pointer-events: none; }
    .core svg { width: 100%; height: auto; display: block; }
    .core-label { position: absolute; top: calc(49% + 68px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: #bdcca8; font: 8px/1 var(--mono); letter-spacing: 4px; pointer-events: none; }
    .visual-label { position: absolute; font: 8px/1.7 var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: 1.1px; }
    .visual-label b { color: #c0c9b8; font-weight: normal; }
    .visual-label.top { top: 8%; left: 11%; display: flex; align-items: center; gap: 10px; }
    .visual-label.top::before { content: "+"; color: var(--accent); font-size: 15px; }
    .visual-label.side { right: -3%; top: 50%; writing-mode: vertical-rl; font-size: 8px; letter-spacing: 1.75px; opacity: .8; }
    .visual-label.bottom { bottom: 7%; left: 10%; padding-left: 13px; border-left: 1px solid var(--accent); }
    .visual-label.bottom-right { right: 2%; bottom: 12%; color: #bed897; text-align: right; }
    .art-plus { position: absolute; color: #748d5b; font: 15px/1 var(--mono); }
    .art-plus.one { top: 14%; right: 7%; }
    .art-plus.two { bottom: 16%; left: 4%; }
    .art-scale { position: absolute; right: 4%; bottom: 27%; height: 50px; width: 17px; border-right: 1px solid rgba(194,249,112,.2); background: repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(194,249,112,.25) 9px, rgba(194,249,112,.25) 10px) right / 7px 100% no-repeat; }
    .expertise-bar { display: flex; gap: 22px; align-items: center; padding: 17px 0 23px; border-bottom: 1px solid var(--line); }
    .expertise-caption { display: flex; align-items: center; gap: 9px; font: 9px/1.4 var(--mono); color: var(--dim); letter-spacing: 1.15px; }
    .expertise-caption svg { width: 12px; height: 12px; color: var(--accent); }
    .expertise-items { display: flex; align-items: center; gap: 25px; margin-left: auto; }
    .expertise-items span { font: 10px/1.4 var(--mono); letter-spacing: 1.7px; color: #b8c0af; }
    .expertise-items .sep { width: 3px; height: 3px; border-radius: 50%; background: #657157; }
    .approach { padding: 48px 0 44px; }
    .section-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
    .section-line h2 { margin: 0; font: 10px/1.5 var(--mono); letter-spacing: 1.7px; color: var(--muted); text-transform: uppercase; font-weight: normal; }
    .section-line span { font: 9px/1.5 var(--mono); letter-spacing: 1px; color: var(--dim); }
    .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
    .principle { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-right: 20px; }
    .principle:not(:last-child) { border-right: 1px solid var(--line); }
    .principle-number { padding-top: 5px; color: #9ebc78; font: 9px/1.4 var(--mono); }
    .principle h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.15; font-weight: 500; letter-spacing: -.5px; }
    .principle p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; max-width: 240px; }
    footer { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding: 25px 0 28px; border-top: 1px solid var(--line); color: var(--dim); font: 9px/1.5 var(--mono); }
    .footer-address { display: inline-flex; align-items: center; gap: 9px; color: #afbba3; text-decoration: none; }
    .footer-address::before { content: "↳"; color: var(--accent); font-size: 13px; }
    .footer-address:hover { color: var(--accent); }
    .footer-end { color: #89977b; letter-spacing: 1.2px; }
    .footer-end span { color: var(--accent); }
    .reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
    .reveal-delay-1 { animation-delay: .10s; }
    .reveal-delay-2 { animation-delay: .22s; }
    .reveal-delay-3 { animation-delay: .34s; }
    .reveal-delay-4 { animation-delay: .46s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes beacon { 0% { opacity: .5; transform: scale(.65); } 65%, 100% { opacity: 0; transform: scale(1.45); } }
    html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    html[data-motion="off"] { scroll-behavior: auto; }
    @media (prefers-reduced-motion: reduce) {
      html:not([data-motion="on"]), html:not([data-motion="on"]) * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    }
    /* Terminal : une interface de présentation locale, pas un shell. */
    .terminal { padding: 0; width: min(660px, calc(100% - 32px)); max-height: min(580px, calc(100dvh - 48px)); color: var(--ink); background: #0d120d; border: 1px solid #38482d; border-radius: 8px; box-shadow: 0 30px 120px rgba(0,0,0,.6), 0 0 65px rgba(194,249,112,.035); }
    .terminal::backdrop { background: rgba(3,7,3,.78); backdrop-filter: blur(8px); }
    .terminal-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #141c12; border-bottom: 1px solid var(--line); }
    .terminal-lights { display: flex; gap: 5px; }
    .terminal-lights i { display: block; width: 6px; height: 6px; border: 1px solid #637a4b; border-radius: 50%; }
    .terminal-lights i:first-child { background: var(--accent); border-color: var(--accent); }
    .terminal-top h2 { margin: 0; color: #bccca9; font: 11px/1.4 var(--mono); font-weight: normal; }
    .terminal-close { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); border-radius: 3px; font-size: 23px; line-height: 1; }
    .terminal-close:hover { background: rgba(194,249,112,.08); color: var(--accent); }
    .terminal-content { height: 325px; min-height: 150px; max-height: calc(100dvh - 240px); padding: 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3c522b transparent; font: 12px/1.9 var(--mono); overflow-wrap: anywhere; }
    .terminal-line { margin: 0 0 5px; white-space: pre-wrap; }
    .terminal-line.accent { color: var(--accent); }
    .terminal-line.dim { color: var(--muted); }
    .terminal-line.command { margin-top: 16px; color: #b7c6a9; }
    .terminal-line.error { color: #f1c693; }
    .terminal-form { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); }
    .terminal-prompt { color: var(--accent); white-space: nowrap; }
    .terminal-input { width: 100%; min-width: 0; padding: 5px 0; border: 0; background: transparent; color: var(--ink); caret-color: var(--accent); border-radius: 0; outline: 0; }
    .terminal-input:focus-visible { outline: none; }
    .terminal-form:focus-within { box-shadow: inset 2px 0 var(--accent); }
    .terminal-submit { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--accent); }
    .terminal-submit:hover { background: rgba(194,249,112,.08); }
    .terminal-foot { padding: 10px 20px; border-top: 1px solid var(--line); color: var(--dim); font: 8px/1.7 var(--mono); letter-spacing: .4px; }
    @media (min-width: 1500px) {
      :root { --max: 1420px; }
      .hero { min-height: 710px; }
      h1 { font-size: 112px; }
      .visual { max-height: 575px; }
    }
    @media (max-width: 1100px) {
      .shell { padding: 0 38px; }
      .hero { min-height: 600px; grid-template-columns: 1.2fr 1fr; }
      h1 { font-size: clamp(65px, 7.8vw, 85px); }
      .visual { width: 109%; margin-left: -5%; }
      .visual-label.side { right: 0; }
      .core { width: 70px; }
      .core-label { top: calc(49% + 57px); }
      .actions { gap: 18px; }
      .principles { gap: 22px; }
      .principle { gap: 7px; padding-right: 15px; }
    }
    @media (max-width: 800px) {
      .shell { padding: 0 28px; }
      .topbar { min-height: 90px; }
      .brand-logo { width: 180px; }
      .topbar-right { gap: 16px; }
      .hero { min-height: auto; grid-template-columns: 1fr; padding: 55px 0 10px; }
      .hero-logo-panel { margin-bottom: 20px; }
      .hero-logo-subnote { font-size: 9px; letter-spacing: 1.45px; }
      h1 { font-size: clamp(65px, 11.5vw, 91px); }
      .hero-intro { margin-top: 26px; }
      .hero-description { max-width: 410px; }
      .visual { max-width: 510px; width: 100%; aspect-ratio: 1.22; margin: 8px auto 0; }
      .core { width: 69px; }
      .core-label { top: calc(49% + 53px); }
      .visual-label.top { top: 9%; }
      .visual-label.side { right: 2%; }
      .visual-label.bottom { bottom: 8%; }
      .visual-label.bottom-right { bottom: 11%; right: 5%; }
      .expertise-bar { padding: 10px 0 22px; }
      .expertise-caption { display: none; }
      .expertise-items { margin: 0; width: 100%; justify-content: space-between; gap: 13px; }
      .expertise-items span { font-size: 9px; letter-spacing: 1.2px; }
      .approach { padding: 33px 0; }
      .principles { gap: 18px; }
      .principle { display: block; }
      .principle-number { display: block; margin-bottom: 12px; }
      .principle h3 { font-size: 18px; }
      .principle p { font-size: 11px; }
      footer { gap: 16px; }
      .footer-end { display: none; }
    }
    @media (max-width: 480px) {
      .shell { padding: 0 22px; }
      .topbar { min-height: 81px; }
      .brand-logo { width: 144px; }
      .topbar-right { gap: 12px; }
      .hero-logo-panel { width: 272px; max-width: 100%; margin-bottom: 20px; padding: 12px 15px; }
      .hero-logo { max-width: 240px; }
      .hero-logo-subnote { font-size: 8px; letter-spacing: 1.15px; }
      .status { font-size: 8px; letter-spacing: .7px; gap: 7px; }
      .motion-toggle { width: 30px; height: 30px; }
      .hero { padding-top: 43px; }
      .eyebrow { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 25px; gap: 10px; }
      h1 { font-size: clamp(47px, 13.9vw, 66px); }
      .hero-intro { font-size: 17px; line-height: 1.6; margin-top: 22px; }
      .hero-description { font-size: 13px; line-height: 1.85; max-width: 330px; }
      .actions { gap: 19px; margin-top: 26px; }
      .button-primary { font-size: 11px; padding: 15px 15px; gap: 14px; min-height: 47px; }
      .button-terminal { font-size: 10px; gap: 6px; }
      .launch-note { margin-top: 18px; font-size: 9px; }
      .visual { aspect-ratio: 1.05; margin-top: 5px; }
      .core { width: 61px; }
      .core-label { font-size: 7px; letter-spacing: 3px; top: calc(49% + 46px); }
      .visual-label { font-size: 7px; }
      .visual-label.side { font-size: 7px; right: -2%; }
      .visual-label.top { top: 8%; left: 5%; }
      .visual-label.bottom { left: 6%; bottom: 8%; }
      .visual-label.bottom-right { bottom: 10%; right: 1%; }
      .expertise-items { gap: 9px; }
      .expertise-items span { font-size: 8px; letter-spacing: .9px; }
      .section-line { margin-bottom: 25px; }
      .section-line h2 { font-size: 9px; }
      .section-line span { font-size: 8px; }
      .principles { grid-template-columns: 1fr; gap: 24px; }
      .principle { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding-right: 0; }
      .principle:not(:last-child) { border-right: 0; }
      .principle-number { padding-top: 4px; margin: 0; }
      .principle h3 { font-size: 19px; margin-bottom: 6px; }
      .principle p { font-size: 12px; max-width: 280px; line-height: 1.8; }
      footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 23px 0; }
      .terminal-prompt { font-size: 10px; }
      .terminal-form { padding: 12px 14px; gap: 8px; }
      .terminal-input { font-size: 16px; }
      .terminal-content { font-size: 11px; padding: 16px; }
      .terminal-foot { font-size: 7px; padding: 10px 14px; }
    }
    @media (max-width: 359px) {
      .shell { padding: 0 17px; }
      .status { font-size: 7px; letter-spacing: .3px; }
      .topbar-right { gap: 8px; }
      h1 { font-size: 45px; }
      .actions { gap: 8px 16px; }
      .expertise-items span { font-size: 7px; }
    }
  

/* Wagtail : navigation, sections éditoriales et blog. Aucun build CSS. */
:root { color-scheme: dark; }
main:focus { outline: none; }
img { max-width: 100%; }
.dim { color: var(--dim); }
.topbar { position: relative; gap: 24px; }
.brand { flex-shrink: 0; }
.topbar-right { gap: 14px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.main-nav a { padding: 13px 0; text-decoration: none; color: var(--muted); font: 11px/1.5 var(--mono); transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.main-nav a.is-active { box-shadow: 0 1px var(--accent); }
.header-contact { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px 15px; border: 1px solid var(--line); color: var(--ink); font: 10px/1.4 var(--mono); border-radius: 3px; }
.header-contact span { color: var(--accent); font-size: 16px; }
.header-contact:hover { border-color: var(--accent); }
.nav-toggle { border: 1px solid var(--line); padding: 8px 10px; background: var(--surface); color: var(--ink); font: 11px/1.5 var(--mono); }
.nav-toggle span { color: var(--accent); margin-left: 10px; }
.hero-line { white-space: normal; overflow-wrap: anywhere; }
.hero-intro { max-width: 430px; }
.hero-description { max-width: 425px; }
.actions { gap: 18px 24px; }
.text-link { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; background: none; border: 0; padding: 8px 0; color: var(--ink); font: 11px/1.6 var(--mono); }
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--accent); }
.content-section { padding: 76px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.section-header .eyebrow, .content-heading .eyebrow { margin-bottom: 18px; }
.section-header h2, .content-heading h2, .two-columns-section > h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.13; letter-spacing: -.045em; font-weight: 550; }
.section-header > .text-link { flex-shrink: 0; }
.section-intro { max-width: 660px; margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.service-card { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 30px 28px 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,22,17,.7), rgba(17,22,17,.12)); transition: background .2s; }
.service-card:hover { background: var(--surface); }
.service-number { font: 10px/1.4 var(--mono); color: var(--dim); }
.service-icon { font: 30px/1 var(--mono); color: var(--accent); margin: 40px 0 26px; letter-spacing: -.07em; white-space: nowrap; }
.service-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.035em; margin: 0 0 15px; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:hover { color: var(--accent); }
.service-card > p { margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.service-card .text-link { margin-top: auto; font-size: 10px; }
.block-approach { border-top: 1px solid var(--line); }
.approach { padding: 47px 0 50px; }
.approach-intro { margin: -9px 0 26px; }
.principles { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.principle p { max-width: 280px; }
.latest-posts { border-top: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 0 14px; border-top: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); font: 9px/1.7 var(--mono); letter-spacing: .2px; }
.post-meta > span + span::before { content: '/'; color: var(--dim); margin-right: 14px; }
.post-card h3 { font-size: 25px; line-height: 1.3; font-weight: 500; letter-spacing: -.035em; margin: 22px 0 13px; overflow-wrap: anywhere; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.post-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; }
.post-tags, .article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags span, .article-tags a { padding: 5px 8px; color: #b8c0af; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font: 9px/1.4 var(--mono); }
.post-arrow { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; color: var(--accent); border: 1px solid var(--line); border-radius: 50%; }
.post-arrow svg { width: 16px; height: 16px; }
.post-arrow:hover { color: var(--bg); background: var(--accent); }
.post-cover-link { display: block; margin-bottom: 22px; overflow: hidden; background: var(--surface); }
.post-cover { width: 100%; height: auto; aspect-ratio: 760/430; object-fit: cover; display: block; transition: transform .3s; }
.post-cover-link:hover .post-cover { transform: scale(1.02); }
.empty-state { padding: 38px; border: 1px dashed var(--line); background: rgba(17,22,17,.4); }
.empty-marker { display: block; margin-bottom: 18px; font: 30px/1 var(--mono); color: var(--accent); }
.empty-state h2 { font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.site-footer { align-items: center; padding: 28px 0 32px; gap: 18px 28px; font-size: 10px; }
.footer-brand p { font-family: var(--sans); font-size: 12px; line-height: 1.7; margin: 10px 0 0; max-width: 240px; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links > a { text-decoration: none; color: var(--muted); }
.footer-links > a:hover { color: var(--accent); }
.footer-terminal { font-size: 10px; min-height: 32px; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; font: 10px/1.65 var(--mono); color: var(--dim); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--muted); }
.page-heading { padding: 72px 0 65px; border-bottom: 1px solid var(--line); }
.page-heading .eyebrow { margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(48px, 6.8vw, 88px); line-height: 1.07; letter-spacing: -.065em; max-width: 16ch; overflow-wrap: anywhere; }
.page-intro { margin: 28px 0 0; max-width: 720px; font-size: 18px; line-height: 1.75; letter-spacing: -.15px; color: var(--muted); }
.page-sections { padding: 0 0 66px; }
.content-heading { padding: 54px 0 10px; }
.two-columns-section { padding: 50px 0 16px; }
.two-columns-section > h2 { margin-bottom: 26px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; }
.two-columns > div + div { border-left: 1px solid var(--line); padding-left: 44px; }
.content-prose { padding: 28px 0 12px; max-width: 850px; }
.prose { min-width: 0; color: #c8cec1; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > :first-child, .prose .rich-text > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 550; letter-spacing: -.035em; line-height: 1.3; scroll-margin-top: 35px; }
.prose h2 { margin: 52px 0 19px; font-size: clamp(27px,3vw,35px); }
.prose h3 { margin: 35px 0 16px; font-size: 23px; }
.prose h4 { margin: 28px 0 14px; font-size: 19px; }
.prose p { margin: 0 0 23px; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration: none; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { margin: 20px 0 26px; padding-left: 24px; }
.prose li { padding-left: 5px; margin: 7px 0; }
.prose li::marker { color: var(--accent); }
.prose li > p { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0; border-left: 2px solid var(--accent); padding: 19px 24px; color: var(--ink); background: var(--surface); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { padding: 3px 6px; background: #182015; color: #d4f0b8; font: .83em/1.7 var(--mono); border-radius: 3px; }
.prose pre { max-width: 100%; margin: 25px 0; padding: 25px; border: 1px solid var(--line); border-radius: 3px; background: #0c120b; color: var(--ink); overflow: auto; scrollbar-width: thin; scrollbar-color: #3c522b transparent; font: 12px/1.8 var(--mono); tab-size: 4; }
.prose pre code { padding: 0; background: none; color: inherit; font: inherit; border-radius: 0; }
.prose .codehilite { position: relative; background: transparent; margin: 25px 0; }
.prose .codehilite pre { margin: 0; padding-top: 43px; }
.code-copy { position: absolute; top: 8px; right: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--surface); font: 9px/1.4 var(--mono); }
.code-copy:hover { color: var(--accent); border-color: var(--accent); }
.table-scroll { max-width: 100%; margin: 26px 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 13px; line-height: 1.65; text-align: left; }
.table-scroll table { margin: 0; }
.prose th { background: #182015; color: var(--ink); font-weight: 600; }
.prose td, .prose th { border: 1px solid var(--line); padding: 13px 16px; }
.prose img { max-width: 100%; height: auto; display: block; border-radius: 3px; }
.prose .footnote { font-size: 12px; color: var(--muted); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px; margin: 34px 0; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 100%, rgba(194,249,112,.05), transparent 80%), var(--surface); }
.callout .eyebrow { margin-bottom: 17px; }
.callout h2 { font-size: clamp(26px,3vw,38px); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin: 0; }
.callout p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 14px; margin: 18px 0 0; max-width: 610px; }
.callout .button-primary { flex-shrink: 0; }
.service-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.service-glyph { padding-right: 30px; color: var(--accent); font: 90px/1 var(--mono); letter-spacing: -.1em; opacity: .8; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 43px 0 57px; border-top: 1px solid var(--line); }
.contact-strip .eyebrow { margin-bottom: 15px; }
.contact-strip h2 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; margin: 0; }
.meta-label { display: block; text-transform: uppercase; color: var(--dim); font: 9px/1.6 var(--mono); letter-spacing: 1px; }
.contact-details { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 30px 70px; padding: 46px 0 10px; }
.contact-details .meta-label { margin-bottom: 16px; }
.contact-email, .contact-phone { font-size: clamp(22px,3.6vw,43px); text-decoration: none; letter-spacing: -.04em; }
.contact-email span { color: var(--accent); }
.contact-email:hover, .contact-phone:hover { color: var(--accent); }
.blog-heading h1 { max-width: 100%; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 35px 0 26px; }
.blog-search { display: flex; align-items: center; min-width: 0; width: 440px; gap: 13px; padding: 8px 10px 8px 17px; border: 1px solid var(--line); background: var(--surface); }
.blog-search > span { color: var(--accent); font-family: var(--mono); }
.blog-search input { color: var(--ink); min-width: 0; flex: 1; width: 100%; padding: 7px 0; background: none; border: 0; font: 12px/1.5 var(--mono); }
.blog-search input::placeholder { color: var(--dim); }
.blog-search input:focus-visible { outline-offset: 3px; }
.blog-search button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--accent); flex-shrink: 0; }
.blog-search button svg { width: 17px; height: 17px; }
.results-count { color: var(--dim); font: 10px/1.5 var(--mono); }
.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 32px; }
.tag-filters a { padding: 8px 11px; font: 10px/1.5 var(--mono); text-decoration: none; border: 1px solid var(--line); color: var(--muted); }
.tag-filters a:hover { color: var(--accent); border-color: var(--accent); }
.tag-filters a.is-active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.blog-grid { row-gap: 40px; margin-bottom: 70px; }
.blog-empty { margin: 20px 0 70px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 27px; padding: 0 0 60px; font: 11px/1.5 var(--mono); }
.pagination a { color: var(--accent); text-decoration: none; }
.pagination span { color: var(--muted); }
.article-heading { max-width: 940px; padding: 58px 0 40px; }
.article-heading h1 { margin: 24px 0 0; font-size: clamp(40px,5.5vw,73px); line-height: 1.09; letter-spacing: -.058em; overflow-wrap: anywhere; }
.article-heading .page-intro { max-width: 800px; font-size: 19px; }
.article-tags { margin-top: 24px; }
.article-tags a:hover { color: var(--accent); border-color: var(--accent); }
.article-cover { margin: 0 0 35px; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 56px; justify-content: space-between; padding: 40px 0 75px; border-top: 1px solid var(--line); }
.aside-inner { position: sticky; top: 30px; }
.article-aside .text-link { font-size: 10px; }
.article-toc { margin-top: 35px; }
.article-toc .meta-label { margin-bottom: 18px; }
.article-toc ol { padding: 0; list-style: none; margin: 0; border-left: 1px solid var(--line); }
.article-toc a { display: block; padding: 7px 0 7px 15px; color: var(--muted); font: 11px/1.65 var(--mono); text-decoration: none; }
.article-toc a:hover, .article-toc a.is-active { color: var(--accent); box-shadow: -1px 0 var(--accent); }
.copy-link { margin-top: 27px; }
.related-posts { border-top: 1px solid var(--line); }
.related-posts .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.error-page { min-height: 65vh; padding: 90px 0; }
.error-page h1 { font-size: clamp(40px,6vw,78px); }
.error-page > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 30px 0; }
@media (min-width: 801px) { .nav-toggle { display: none !important; } }
@media (max-width: 1100px) {
  .main-nav { gap: 8px 19px; }
  .header-contact { display: none; }
  .topbar-right { gap: 10px; }
  .service-card { padding: 25px 22px; }
  .post-grid { gap: 22px; }
  .post-card h3 { font-size: 23px; }
  .article-layout { grid-template-columns: 180px minmax(0,1fr); gap: 40px; }
}
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; padding: 4px 0; gap: 0 16px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; border-top: 1px solid var(--line); padding: 12px 0; margin: 0; gap: 9px 25px; }
  .nav-enhanced .main-nav:not(.is-open) { display: none; }
  .topbar-right { margin-left: auto; gap: 13px; }
  .topbar .brand-logo { width: 172px; }
  .content-section { padding: 50px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 10px 16px; padding: 27px; }
  .service-card .service-number { grid-column: 1; }
  .service-card .service-icon { grid-column: 1; grid-row: 2 / span 2; font-size: 24px; margin: 5px 0 0; }
  .service-card h3 { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 7px; align-self: center; }
  .service-card > p { grid-column: 2; margin: 0 0 5px; }
  .service-card .text-link { grid-column: 2; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .principles { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .section-header { align-items: flex-start; }
  .section-header > .text-link { margin-top: 4px; }
  .page-heading { padding: 49px 0; }
  .page-heading h1 { font-size: clamp(42px,8vw,67px); }
  .page-intro { font-size: 16px; }
  .two-columns { gap: 30px; }
  .two-columns > div + div { padding-left: 27px; }
  .callout { padding: 29px; flex-direction: column; align-items: flex-start; }
  .service-glyph { font-size: 60px; padding-right: 8px; }
  .service-heading { gap: 27px; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 25px; }
  .article-aside { border-bottom: 1px solid var(--line); padding-bottom: 25px; }
  .aside-inner { position: static; }
  .article-toc { margin-top: 18px; }
  .article-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .article-aside .copy-link { display: none; }
  .article-heading { padding-top: 43px; }
  .article-heading .page-intro { font-size: 17px; }
  .blog-tools { align-items: flex-start; }
  .results-count { margin-top: 17px; flex-shrink: 0; }
  .site-footer { align-items: flex-start; }
}
@media (max-width: 560px) {
  .post-grid, .related-posts .post-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 16px; }
  .section-header h2, .content-heading h2 { font-size: 31px; }
  .principles { grid-template-columns: 1fr; gap: 25px; }
  .principle { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
  .principle:not(:last-child) { border: 0; }
  .principle-number { padding-top: 5px; margin: 0; }
  .principle p { max-width: 100%; font-size: 13px; }
  .principle h3 { font-size: 20px; }
  .two-columns { grid-template-columns: 1fr; gap: 25px; }
  .two-columns > div + div { border-left: 0; padding-left: 0; }
  .blog-tools { flex-direction: column; gap: 13px; }
  .blog-search { width: 100%; }
  .results-count { margin-top: 0; }
  .service-heading { grid-template-columns: 1fr; }
  .service-glyph { display: none; }
  .article-toc ol { display: block; }
  .prose { font-size: 15px; }
  .prose pre { padding: 19px 15px; font-size: 11px; }
  .prose td, .prose th { padding: 10px 12px; }
  .article-heading h1 { font-size: clamp(35px,9.5vw,49px); }
  .page-heading h1 { font-size: clamp(40px,11vw,58px); }
  .empty-state { padding: 27px; }
  .footer-links { gap: 10px 22px; }
  .breadcrumbs { font-size: 9px; }
  .callout { padding: 25px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { --ink: #111; --muted: #444; --accent: #204700; --bg: #fff; --surface: #f5f5f5; --line: #ccc; }
  .atmosphere, .topbar, .site-footer, .terminal, .article-aside, .related-posts, .contact-strip, .copy-link, .code-copy, .w-userbar { display: none !important; }
  body { background: #fff; color: #111; }
  .shell { max-width: none; padding: 0; }
  .article-layout { display: block; padding: 20px 0; }
  .article-heading { padding: 20px 0; }
  .prose { color: #222; }
  .prose pre { background: #f5f5f5; color: #111; white-space: pre-wrap; }
  .prose code { background: #f5f5f5; color: #111; }
  .codehilite span { color: inherit !important; }
}
