
  :root {
    --ink: #201e1d;
    --ink-2: #151312;
    --red: #ec3013;
    --red-dark: #b8240e;
    --paper: #f3f2f2;
    --muted: #6b6664;
    --line: rgba(32, 30, 29, 0.16);
    --line-w: rgba(243, 242, 242, 0.16);
    --mono: "Space Mono", ui-monospace, monospace;
    --maxw: 1280px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: "Archivo", Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
  @media (max-width: 640px) { .wrap { padding: 0 22px; } }

  a { color: var(--red-dark); text-decoration: none; }
  a:hover { color: var(--red); }

  ::selection { background: var(--red); color: #fff; }

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .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; }

  /* ---------- Nav ---------- */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(243, 242, 242, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
  .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
  .brand-logo { height: 36px; width: auto; display: block; flex: none; }
  .brand .name { font-weight: 600; letter-spacing: -0.01em; font-size: 16px; white-space: nowrap; }
  .nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
  .nav-links a {
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 10px; color: var(--ink); text-decoration: none; opacity: 0.6;
    position: relative; padding: 6px 0; white-space: nowrap; transition: opacity .2s, color .2s;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--red); transition: width .25s cubic-bezier(.2,.7,.2,1);
  }
  .nav-links a:hover { opacity: 1; color: var(--red); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta {
    flex: none;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px;
    color: #fff; background: var(--red); padding: 12px 20px; border-radius: 100px;
    text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s;
  }
  .nav-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
  @media (max-width: 1024px) { .nav-links { display: none; } }

  /* ---------- Hero ---------- */
  .hero { position: relative; padding: 96px 0 0; overflow: hidden; }
  .hero-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; }
  .hero-eyebrow { color: var(--red); font-size: 13px; letter-spacing: 0.18em; }
  .hero-logo { height: 72px; }
  .hero-logo img { height: 100%; width: auto; display: block; }

  .hero h1 {
    font-size: clamp(64px, 13vw, 190px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.88;
    color: var(--ink);
  }
  .hero h1 .red { color: var(--red); }
  .hero h1 .l1 { display: block; }
  .hero h1 .l2 { display: block; margin-left: clamp(0px, 8vw, 120px); }
  .hero h1 .l3 { display: block; margin-left: clamp(0px, 16vw, 240px); }

  .hero-type {
    margin-top: 40px;
    font-family: var(--mono);
    font-size: clamp(14px, 1.7vw, 18px);
    letter-spacing: 0.06em;
    min-height: 1.6em;
  }
  .hero-type .cursor {
    display: inline-block; width: 2px; height: 1.1em;
    background: var(--red); margin-left: 6px; vertical-align: -0.15em;
    animation: blink 1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .hero-lower {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
    margin-top: 56px; padding-bottom: 44px;
  }
  .hero-sub { font-size: clamp(18px, 2.2vw, 24px); font-weight: 400; color: var(--ink); opacity: 0.72; max-width: 560px; line-height: 1.4; }
  .hero-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; white-space: nowrap; }
  .hero-meta a { color: var(--red-dark); text-decoration: none; }
  .hero-meta a:hover { color: var(--red); }

  /* marquee */
  .marquee { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; padding: 14px 0; }
  .marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 28s linear infinite; }
  .marquee-track span {
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px;
    display: flex; align-items: center; gap: 48px; white-space: nowrap; color: var(--ink);
  }
  .marquee-track span::after { content: "●"; color: var(--red); font-size: 9px; }
  @keyframes scroll { to { transform: translateX(-50%); } }

  /* ---------- Sections ---------- */
  section.block { padding: 130px 0; position: relative; }
  section.alt { background: var(--ink); color: var(--paper); }

  .sec-index {
    position: absolute; top: 60px; right: 48px;
    font-size: clamp(120px, 18vw, 260px); font-weight: 800; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px var(--line);
    user-select: none; pointer-events: none; letter-spacing: -0.04em;
  }
  section.alt .sec-index { -webkit-text-stroke: 1px var(--line-w); }

  .sec-head { position: relative; margin-bottom: 70px; }
  .sec-kicker { color: var(--red); font-size: 13px; letter-spacing: 0.18em; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
  .sec-kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
  .sec-title { font-size: clamp(40px, 6.5vw, 88px); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
  .sec-lede { font-size: clamp(18px, 2vw, 22px); opacity: 0.66; max-width: 620px; margin-top: 22px; line-height: 1.45; }

  /* ---------- Cards ---------- */
  .grid { display: grid; gap: 20px; }
  .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } .svc { grid-template-columns: 1fr 1fr; } }

  .card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .35s;
    position: relative; overflow: hidden;
  }
  .card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(32,30,29,.35); }
  section.alt .card { background: rgba(243,242,242,.05); border-color: var(--line-w); }
  section.alt .card:hover { background: rgba(243,242,242,.09); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

  .card .tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--red); display: inline-block; margin-bottom: 20px; }
  .card h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.05; }
  .card p { font-size: 16px; opacity: 0.66; line-height: 1.55; }

  /* ---------- Module cards ---------- */
  .modcard {
    background: rgba(243, 242, 242, 0.05);
    border: 1px solid var(--line-w);
    border-radius: 16px;
    padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .3s, background .3s, border-color .3s;
  }
  .modcard:hover { transform: translateY(-5px); background: var(--red); border-color: var(--red); }
  .modcard .m-top { display: flex; align-items: flex-start; justify-content: space-between; }
  .modcard .icon {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--line-w); color: var(--red);
    transition: background .3s, color .3s, border-color .3s;
  }
  .modcard .icon svg { width: 22px; height: 22px; }
  .modcard .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--red); transition: color .3s; }
  .modcard h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
  .modcard p { font-size: 14px; opacity: 0.6; line-height: 1.5; transition: opacity .3s; }
  .modcard:hover .icon { background: #fff; color: var(--red); border-color: #fff; }
  .modcard:hover .num { color: #fff; }
  .modcard:hover p { opacity: 0.92; }

  /* ---------- Services stacking ---------- */
  .stack-wrap { display: flex; flex-direction: column; }
  .stack-card {
    position: sticky;
    top: calc(88px + var(--i) * 18px);
    min-height: 320px;
    background: #262322;
    border: 1px solid var(--line-w);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 -12px 32px -18px rgba(0, 0, 0, 0.65);
    display: flex; flex-direction: column; gap: 14px;
  }
  .stack-card .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--red); }
  .stack-card h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
  .stack-card p { font-size: 16px; opacity: 0.65; line-height: 1.55; max-width: 560px; }
  .stack-link { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--red); text-decoration: none; margin-top: auto; }
  .stack-link:hover { color: #fff; }
  @media (max-width: 640px) {
    .stack-card { top: calc(72px + var(--i) * 14px); min-height: 0; padding: 24px 20px; }
    .stack-card h3 { font-size: 24px; }
  }

  /* ---------- Flow pipeline ---------- */
  .flow { display: flex; flex-direction: column; }
  .flow-row {
    display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start;
    padding: 34px 0; border-top: 1px solid var(--line); position: relative;
  }
  .flow-row:last-child { border-bottom: 1px solid var(--line); }
  .flow-row .idx { font-family: var(--mono); font-size: 15px; letter-spacing: 0.12em; opacity: 0.4; padding-top: 6px; }
  .flow-row h3 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; margin-bottom: 8px; }
  .flow-row p { font-size: 16px; opacity: 0.6; max-width: 560px; }
  .flow-row .marker { position: absolute; left: 96px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
  @media (max-width: 640px) { .flow-row { grid-template-columns: 1fr; gap: 6px; } .flow-row .marker { display: none; } }

  /* ---------- Values ---------- */
  .values { display: grid; grid-template-columns: repeat(3, 1fr); }
  .value { padding: 8px 36px 8px 0; }
  .value + .value { border-left: 1px solid var(--line-w); padding-left: 36px; }
  .value .v-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--red); margin-bottom: 18px; }
  .value h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
  .value p { font-size: 16px; opacity: 0.62; line-height: 1.55; }
  @media (max-width: 860px) {
    .values { grid-template-columns: 1fr; }
    .value + .value { border-left: none; border-top: 1px solid var(--line-w); padding-left: 0; padding-top: 24px; margin-top: 6px; }
  }

  /* ---------- Flow steps (horizontal) ---------- */
  .flowsteps { display: flex; gap: 28px; position: relative; }
  .flowsteps::before { content: ""; position: absolute; top: 28px; left: 4px; right: 4px; height: 2px; background: var(--line); }
  .fs { flex: 1; position: relative; }
  .fs:not(:last-child)::after {
    content: ""; position: absolute; top: 24px; right: -19px; width: 9px; height: 9px;
    border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg);
  }
  .fs .circle {
    width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink);
    display: grid; place-items: center; font-family: var(--mono); font-size: 15px;
    background: var(--paper); position: relative; z-index: 1; margin-bottom: 24px;
  }
  .fs h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
  .fs p { font-size: 15px; opacity: 0.62; line-height: 1.55; }
  @media (max-width: 760px) {
    .flowsteps { flex-direction: column; gap: 8px; }
    .flowsteps::before { display: none; }
    .fs:not(:last-child)::after { display: none; }
    .fs { padding: 0 0 6px; }
    .fs .circle { margin-bottom: 16px; }
  }

  /* ---------- Sectors ---------- */
  .sectors {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--line-w);
    border-bottom: 1px solid var(--line-w);
  }
  .secx {
    position: relative;
    border-left: 1px solid var(--line-w);
    padding: 22px 14px;
    min-height: 280px;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
  }
  .secx:first-child { border-left: none; }
  .secx .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--red); }
  .secx .name { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
  .secx .badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--red); margin-top: auto; }
  .secx .desc {
    position: absolute; inset: 0; z-index: 2;
    background: var(--red); color: #fff;
    padding: 22px 14px;
    display: flex; align-items: center;
    font-size: 13.5px; line-height: 1.5;
    transform: translateX(102%);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
  }
  .secx:hover .desc { transform: translateX(0); }

  @media (max-width: 900px) {
    .sectors { grid-template-columns: 1fr 1fr; gap: 12px; border: none; }
    .secx { min-height: 0; border: 1px solid var(--line-w); border-radius: 14px; padding: 18px 16px; }
    .secx:first-child { border-left: 1px solid var(--line-w); }
    .secx .badge { margin-top: 0; }
    .secx .desc { position: static; transform: none; background: none; color: var(--paper); opacity: 0.7; padding: 0; align-items: flex-start; font-size: 13px; }
  }

  /* ---------- Why ---------- */
  .why { display: grid; gap: 20px; }
  .why-card { border-top: 1px solid var(--line-w); padding: 34px 4px; display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
  .why-card .k { font-size: clamp(26px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
  .why-card .k .red { color: var(--red); }
  .why-card p { font-size: 17px; opacity: 0.62; max-width: 620px; align-self: center; line-height: 1.55; }
  @media (max-width: 720px) { .why-card { grid-template-columns: 1fr; gap: 10px; } }

  /* ---------- Stages ---------- */
  .stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .stage { padding: 40px 30px 40px 0; position: relative; }
  .stage + .stage { padding-left: 30px; border-left: 1px solid var(--line); }
  .stage .ph { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--red); margin-bottom: 16px; }
  .stage h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
  .stage p { font-size: 16px; opacity: 0.62; line-height: 1.55; }
  @media (max-width: 900px) { .stages { grid-template-columns: 1fr; } .stage + .stage { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 30px; } }

  /* ---------- CTA ---------- */
  .cta { background: var(--ink-2); color: var(--paper); padding: 130px 0 0; overflow: hidden; position: relative; }
  .cta .sec-kicker { color: var(--red); }
  .cta h2 { font-size: clamp(44px, 8vw, 110px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.96; max-width: 1000px; }
  .cta h2 .red { color: var(--red); }
  .cta-sub { font-size: clamp(18px, 2vw, 22px); opacity: 0.7; margin-top: 30px; max-width: 520px; line-height: 1.45; }

  .cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 80px; }
  @media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .cta-grid { grid-template-columns: 1fr; } }
  .cta-cell { border-top: 1px solid var(--line-w); padding-top: 18px; }
  .cta-cell .k { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; opacity: 0.45; display: block; margin-bottom: 10px; }
  .cta-cell a, .cta-cell .v { color: var(--paper); text-decoration: none; font-size: 19px; font-weight: 500; transition: color .15s; }
  .cta-cell a:hover { color: var(--red); }

  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 90px; padding: 28px 0 40px; border-top: 1px solid var(--line-w); }
  .footer-bottom img { height: 32px; width: auto; background: var(--paper); padding: 7px 12px; border-radius: 8px; }
  .footer-bottom .legal { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; opacity: 0.4; }

  /* ---------- Mobile ---------- */
  @media (max-width: 640px) {
    .brand .name { display: none; }
    .nav-inner { height: 64px; }
    .nav-cta { padding: 10px 16px; font-size: 10px; }
    .hero { padding: 48px 0 0; }
    .hero-top { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
    .hero-logo { height: 44px; }
    .hero h1 { font-size: clamp(40px, 15vw, 56px); line-height: 0.95; }
    .hero h1 .l2 { margin-left: 0; }
    .hero h1 .l3 { margin-left: 0; }
    .hero-type { margin-top: 24px; }
    .hero-lower { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; }
    .hero-meta { align-items: flex-start; }
    section.block { padding: 80px 0; }
    .sec-head { margin-bottom: 40px; }
    .sec-index { font-size: 96px; top: 40px; right: 22px; }
    .cta { padding: 80px 0 0; }
  }
  @media (max-width: 640px) {
    .card { padding: 18px 16px; border-radius: 14px; }
    .card .tag { font-size: 10px; margin-bottom: 12px; }
    .card h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
    .card p { font-size: 13px; line-height: 1.45; }
    .svc { gap: 10px; }
    .modcard { padding: 18px 16px; border-radius: 14px; gap: 12px; }
    .modcard .icon { width: 40px; height: 40px; border-radius: 10px; }
    .modcard .icon svg { width: 20px; height: 20px; }
    .modcard h3 { font-size: 17px; }
    .modcard p { font-size: 13px; }
    .cta-cell .v { font-size: 16px; line-height: 1.5; }
  }


/* ---- Service detail pages ---- */
.back-link {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--ink); text-decoration: none; opacity: 0.6; white-space: nowrap;
}
.back-link:hover { opacity: 1; color: var(--red); }
.svc-nav .back-link { margin-left: auto; }
.svc-nav .nav-cta { margin-left: 0; }
.svc-hero { padding: 72px 0 72px; }
.svc-hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; }

.lang-switch {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px;
  white-space: nowrap; opacity: 0.8;
}
.lang-switch:hover { opacity: 1; color: var(--red); border-color: var(--red); }
.svc-nav .lang-switch { margin-left: 0; }
@media (max-width: 1024px) { .lang-switch { margin-left: auto; } }
