/* Hememics Việt Nam — theme stylesheet (ported from the approved HTML design) */
/* Layout: clean white — wide photographic hero, logo red accents, one deep-ink band for the investor */
:root {
  color-scheme: light;
  /* Brand palette from the Hememics Vietnam logo: red #E2585E · silver #BEBDC1 · ink #181818 */
  --white: #FFFFFF;
  --glow: rgba(226,88,94,.10);
  --hexline: %23BEBDC1;
  --mist: #F4F4F5;           /* soft silver ground */
  --rule: #E4E4E6;
  --silver: #BEBDC1;         /* logo silver – decorative only, too light for text */
  --ink: #181818;            /* logo ink */
  --ink-2: #4A4A4F;
  --ink-3: #6B6A70;
  --brand: #E2585E;          /* logo red – fills, lines, large text */
  --brand-text: #C23E45;     /* logo red darkened for small text on white (AA) */
  --brand-deep: #C9444B;     /* red fill behind white text (AA) */
  --brand-soft: #FCE9EA;
  --signal: #E2585E;
  --deep: #181818;
  --f-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }

a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.ribbon { background: var(--ink); color: #D6D6D9; font-size: 13px; text-align: center; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 32px; padding-block: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--f-display); font-weight: 500; font-size: 17px; letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); font-weight: 400; }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.menu a { text-decoration: none; color: var(--ink-2); padding-block: 4px; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--ink); border-color: var(--brand); }
.lang { display: flex; gap: 2px; font-family: var(--f-mono); font-size: 12.5px; }
.lang a { text-decoration: none; display: inline-block; background: none; border: 0; padding: 4px 6px; color: var(--ink-3); cursor: pointer; font: inherit; }
.lang a[aria-current] { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang span { color: var(--rule); align-self: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 15px; padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.burger { display: none; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; font-family: var(--f-mono); font-size: 12px; color: var(--ink); cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 0; border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(55% 65% at 78% 38%, var(--glow), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(226,88,94,.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7v32.3' fill='none' stroke='%23BEBDC1' stroke-opacity='.11' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #F5F5F6 0%, var(--white) 100%); }
#heroFx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-img { box-shadow: 0 30px 80px -30px rgba(226,88,94,.35); }
.stats { background: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(38px, 6vw, 80px); font-weight: 300; }
.hero h1 strong { font-weight: 500; color: var(--brand); }
.hero-side { display: grid; gap: 22px; padding-bottom: 10px; }
.hero-side p { color: var(--ink-2); font-size: 16.5px; }
.hero-side .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-img { position: relative; margin-top: 48px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--rule); }
.hero-img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center; }
.callout { position: absolute; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(226,88,94,.5); animation: ping 2.2s infinite; }
.callout.red i { background: var(--signal); box-shadow: 0 0 0 0 rgba(226,88,94,.5); animation-name: pingred; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(226,88,94,0); } 100% { box-shadow: 0 0 0 0 rgba(226,88,94,0); } }
@keyframes pingred { 70% { box-shadow: 0 0 0 10px rgba(226,88,94,0); } 100% { box-shadow: 0 0 0 0 rgba(226,88,94,0); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 0; border-bottom: 1px solid var(--rule); }
.stat { padding: 30px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat .v { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .v sub { font-size: .38em; vertical-align: baseline; color: var(--brand-text); margin-left: 4px; font-family: var(--f-mono); letter-spacing: 0; }
.stat .k { font-size: 13.5px; color: var(--ink-3); }

section { padding-block: 104px; }
.head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; margin-bottom: 56px; align-items: end; }
.head h2 { font-size: clamp(30px, 4vw, 52px); margin-top: 16px; font-weight: 300; }
.head p { color: var(--ink-2); max-width: 38em; }

/* graphene interactive */
.lattice-wrap { position: relative; border-radius: 18px; background: var(--mist); overflow: hidden; border: 1px solid var(--rule); }
#lattice { display: block; width: 100%; height: 340px; cursor: crosshair; }
.lattice-note { position: absolute; left: 20px; bottom: 16px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 6px; }
.platforms { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.plat { padding: 36px 40px 8px 0; }
.plat + .plat { padding-left: 40px; border-left: 1px solid var(--rule); }
.plat h3 { font-size: 28px; font-weight: 400; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.plat h3 code { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.plat p { color: var(--ink-2); margin-top: 14px; }
.plat ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.plat li { padding: 11px 0; border-top: 1px dashed var(--rule); font-size: 15px; display: grid; grid-template-columns: 26px minmax(0,1fr); }
.plat li::before { content: "+"; font-family: var(--f-mono); color: var(--brand); }

/* process vertical */
.flow { background: var(--mist); }
.flow-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; }
.flow-grid .sticky { position: sticky; top: 120px; align-self: start; }
.flow-grid h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 300; margin-top: 16px; }
.flow-grid .sticky p { color: var(--ink-2); margin-top: 18px; max-width: 30em; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule); align-items: baseline; }
ol.steps li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 14px; color: var(--brand-text); }
ol.steps h3 { font-size: 21px; font-weight: 400; }
ol.steps p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
ol.steps .eq { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* products — datasheet table */
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 20px; background: var(--mist); border-bottom: 1px solid var(--rule); }
td { padding: 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #F7F7F8; }
td .name { font-family: var(--f-display); font-size: 18px; }
td .desc { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
td.mono { font-family: var(--f-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sku { font-family: var(--f-mono); font-size: 12.5px; color: var(--brand-text); background: var(--brand-soft); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
td a { font-family: var(--f-mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
td a:hover { color: var(--brand); }

/* capability */
.cap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.cap-card { border: 1px solid var(--rule); border-radius: 14px; padding: 30px; display: grid; gap: 10px; align-content: start; }
.cap-card .v { font-family: var(--f-display); font-size: 40px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cap-card .v small { font-size: 16px; color: var(--brand-text); font-family: var(--f-mono); margin-left: 4px; }
.cap-card p { color: var(--ink-2); font-size: 15px; }

/* investor — the one deep band */
.investor { background: var(--deep); color: #EDEDEE; }
.investor .label { color: #F08A8F; }
.inv { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 64px; align-items: center; }
.inv h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 300; margin-top: 16px; }
.inv h2 b { font-weight: 500; }
.inv p { color: #BEBDC1; margin-top: 20px; max-width: 38em; }
.inv-card { background: #fff; border-radius: 18px; padding: 28px; display: grid; justify-items: center; gap: 12px; }
.inv-card img { width: 100%; max-width: 210px; height: auto; }
.inv-card span { font-family: var(--f-mono); font-size: 11.5px; color: #5E5E63; letter-spacing: .1em; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.post { border-radius: 14px; background: var(--mist); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .2s; }
.post:hover { background: var(--brand-soft); }
.post .meta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); display: flex; gap: 12px; }
.post h3 { font-size: 21px; font-weight: 400; }
.post p { color: var(--ink-2); font-size: 14.5px; }

/* contact */
.ct { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; }
.ct h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 300; margin-top: 16px; }
.ct dl { margin: 36px 0 0; display: grid; gap: 0; }
.ct dl div { display: grid; grid-template-columns: 120px minmax(0,1fr); padding: 14px 0; border-top: 1px solid var(--rule); }
.ct dt { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.ct dd { margin: 0; user-select: all; }
form { display: grid; gap: 22px; }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); padding: 10px 0; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.chips label { font-family: var(--f-body); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.chips input:checked + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.ok { color: var(--brand-text); font-size: 14px; }

footer { background: var(--mist); padding-block: 40px; font-size: 13.5px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }

@media (max-width: 1020px) {
  .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); padding: 14px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .burger { display: inline-block; margin-left: auto; }
  .nav .btn { display: none; }
  .cap { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .hero-top, .head, .platforms, .flow-grid, .inv, .ct { grid-template-columns: minmax(0,1fr); }
  .hero { padding-block: 36px 0; }
  .hero-top { gap: 24px; }
  .hero-img { margin-top: 28px; border-radius: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .head { gap: 16px; margin-bottom: 36px; }
  .plat, .plat + .plat { padding: 28px 0 8px; border-left: 0; }
  .plat + .plat { border-top: 1px solid var(--rule); }
  .flow-grid { gap: 32px; } .flow-grid .sticky { position: static; }
  .news { grid-template-columns: minmax(0,1fr); }
  .inv { gap: 32px; } .inv-card { max-width: 300px; }
  .ct { gap: 40px; }
  section { padding-block: 64px; }
  #lattice { height: 260px; }
}
@media (max-width: 520px) {
  .callout { display: none; }
  ol.steps li { grid-template-columns: 40px minmax(0,1fr); }
  ol.steps .eq { grid-column: 2; }
  .row2 { grid-template-columns: minmax(0,1fr); }
  .ct dl div { grid-template-columns: 90px minmax(0,1fr); }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= multi-page additions ================= */
.m-only { display: none; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.menu a.active, .has-sub.active > button { color: var(--ink); border-color: var(--brand); }
.has-sub { position: relative; }
.has-sub > button { background: none; border: 0; border-bottom: 1.5px solid transparent; font: inherit; color: var(--ink-2); padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.has-sub > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-sub > button:hover { color: var(--ink); }
.sub { display: none; position: absolute; top: calc(100% + 12px); left: -16px; min-width: 250px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(24,24,24,.25); z-index: 70; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { display: grid; }
/* Desktop dropdown: keep it open while the pointer crosses the gap, close with a short delay */
@media (min-width: 1181px) {
  .sub { display: grid; visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s ease .25s, transform .18s ease .25s, visibility 0s linear .43s; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge over the gap */
  .has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
}
.sub a { border: 0 !important; padding: 10px 12px !important; border-radius: 8px; display: grid; gap: 2px; }
.sub a:hover { background: var(--mist); }
.sub a small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }

/* page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); padding-block: 56px 64px;
  background:
    radial-gradient(50% 80% at 85% 40%, var(--glow), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7v32.3' fill='none' stroke='%23BEBDC1' stroke-opacity='.11' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #F5F5F6 0%, var(--white) 100%); }
.page-hero > .wrap { position: relative; z-index: 1; }
.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; letter-spacing: .04em; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: var(--rule); }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 300; margin-top: 22px; max-width: 16em; }
.page-hero h1 strong { font-weight: 500; color: var(--brand); }
.page-hero .intro { color: var(--ink-2); font-size: 18px; margin-top: 18px; max-width: 40em; }
.page-hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--rule); background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }

/* generic blocks */
.sec-sm { padding-block: 72px; }
.mist { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.split.top { align-items: start; }
.prose { max-width: 40em; }
.prose p { color: var(--ink-2); margin-top: 16px; }
.prose p:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; margin-top: 14px; }
.prose h3 { font-size: 22px; font-weight: 400; margin-top: 36px; }
.prose ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.prose li { padding: 10px 0 10px 26px; border-top: 1px dashed var(--rule); position: relative; color: var(--ink); }
.prose li::before { content: "+"; position: absolute; left: 0; font-family: var(--f-mono); color: var(--brand); }
.lead-quote, .card p.lead-quote { font-size: clamp(22px, 2.6vw, 32px); font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; color: var(--ink); border-left: 3px solid var(--brand); padding-left: 24px; }
.ph { position: relative; border-radius: 16px; border: 1px solid var(--rule); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7v32.3' fill='none' stroke='%23BEBDC1' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"), linear-gradient(135deg, #F7E9EA, #FAFAFA); display: grid; place-items: center; }
.ph span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); background: rgba(255,255,255,.85); border: 1px dashed var(--ink-3); border-radius: 6px; padding: 6px 10px; text-align: center; }
.ph.wide { aspect-ratio: 16 / 7; }
.photo-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 0 30px 80px -40px rgba(226,88,94,.4); }
.photo-frame img { display: block; width: 100%; height: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.card { border: 1px solid var(--rule); border-radius: 14px; padding: 28px; background: #fff; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 21px; font-weight: 400; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .k { font-family: var(--f-mono); font-size: 12px; color: var(--brand-text); letter-spacing: .08em; text-transform: uppercase; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.num-card .v { font-family: var(--f-display); font-size: 44px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num-card .v small { font-family: var(--f-mono); font-size: 15px; color: var(--brand-text); margin-left: 4px; }

/* timeline (real chronology) */
.timeline { position: relative; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 120px 24px minmax(0,1fr); gap: 20px; padding-bottom: 34px; position: relative; }
.tl .yr { font-family: var(--f-display); font-size: 26px; font-weight: 300; color: var(--ink); text-align: right; line-height: 1.1; }
.tl .dot { position: relative; }
.tl .dot::before { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl .dot::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: -34px; width: 2px; background: var(--rule); }
.tl:last-child .dot::after { display: none; }
.tl h3 { font-size: 20px; font-weight: 400; }
.tl p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* team */
.person { display: grid; gap: 12px; }
.avatar { aspect-ratio: 1 / 1; border-radius: 14px; max-width: 100%; background: linear-gradient(160deg, #F9E4E5, #FFFFFF); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; font-weight: 300; color: var(--brand); }
.person h3 { font-size: 18px; font-weight: 500; }
.person p { color: var(--ink-3); font-size: 14px; margin-top: -6px; }

/* spec table generic */
.spec-table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 15px; }
.spec-table th, .spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; background: var(--mist); font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.spec-table td { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* product cards */
.p-card { border: 1px solid var(--rule); border-radius: 16px; background: #fff; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.p-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(226,88,94,.45); }
.p-visual { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #F8EBEC, #FAFAFA); border-bottom: 1px solid var(--rule); }
.p-visual svg { width: 48%; height: auto; }
.p-body { padding: 22px 24px 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.p-body h3 { font-size: 20px; font-weight: 400; }
.p-body p { color: var(--ink-2); font-size: 14.5px; }
.p-body .more { font-family: var(--f-mono); font-size: 13px; color: var(--brand-text); margin-top: 6px; }

/* detail page */
.detail { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: start; }
.gallery-main { border-radius: 16px; border: 1px solid var(--rule); background: linear-gradient(160deg, #F8EBEC, #FAFAFA); aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; }
.gallery-main svg { width: 62%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.thumbs div { aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--rule); background: var(--mist); }
.thumbs div:first-child { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.buy { display: grid; gap: 18px; }
.buy h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; }
.buy .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-list { display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: #fff; text-decoration: none; transition: border-color .2s; }
.dl:hover { border-color: var(--brand); }
.dl .ext { font-family: var(--f-mono); font-size: 11px; color: #fff; background: var(--signal); border-radius: 6px; display: grid; place-items: center; height: 40px; }
.dl b { font-weight: 500; display: block; }
.dl small { color: var(--ink-3); font-size: 13px; }
.dl .arrow { font-family: var(--f-mono); color: var(--brand); }

/* news list & article */
.news-big { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 20px; margin-bottom: 20px; }
.post.feature { padding: 0; overflow: hidden; }
.post .cover { aspect-ratio: 16 / 8; max-width: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7v32.3' fill='none' stroke='%23BEBDC1' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"), linear-gradient(135deg, #FCE9EA, #FFFFFF); }
.post .cover.img { background: #fff; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .pad { padding: 28px; display: grid; gap: 12px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; font-family: var(--f-mono); font-size: 14px; }
.pager a, .pager span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); text-decoration: none; }
.pager span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.article .body { font-size: 17px; max-width: 42em; }
.article .body p { margin-top: 18px; color: #2E2E31; }
.article .body h2 { font-size: 28px; font-weight: 400; margin-top: 40px; }
.article .body figure { margin: 32px 0; }
.article .body figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.article aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.side-box { border: 1px solid var(--rule); border-radius: 14px; padding: 22px; background: #fff; display: grid; gap: 12px; }
.side-box h3 { font-size: 16px; font-weight: 500; }
.side-box a { text-decoration: none; font-size: 15px; display: block; padding: 8px 0; border-top: 1px dashed var(--rule); }
.side-box a:hover { color: var(--brand); }
.side-box time { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); display: block; }

/* jobs */
.jobs { display: grid; gap: 12px; }
details.job { border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
details.job[open] { border-color: var(--brand); }
details.job summary { list-style: none; cursor: pointer; padding: 22px 24px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 20px; align-items: center; }
details.job summary::-webkit-details-marker { display: none; }
details.job summary h3 { font-size: 20px; font-weight: 400; }
details.job summary .tags { display: flex; flex-wrap: wrap; gap: 8px; }
details.job summary .plus { font-family: var(--f-mono); font-size: 20px; color: var(--brand); width: 24px; text-align: center; }
details.job[open] summary .plus { transform: rotate(45deg); }
.job-body { padding: 0 24px 26px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; border-top: 1px dashed var(--rule); padding-top: 22px; margin-inline: 0; }
.job-body h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 8px; }
.job-body ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; }
.job-body .apply { grid-column: 1 / -1; }

/* cta band */
.cta-band { background: var(--deep); color: #EDEDEE; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(240,138,143,.25); box-shadow: 0 0 0 40px rgba(240,138,143,.05), 0 0 0 80px rgba(240,138,143,.04); }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; }
.cta-band p { color: #BEBDC1; margin-top: 10px; }
.cta-band .btn { border-color: #F08A8F; background: #F08A8F; color: var(--deep); position: relative; z-index: 1; }
.cta-band .btn:hover { background: #fff; border-color: #fff; }

/* contact page */
.office { display: grid; gap: 0; }
.office > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.office dt { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.office dd { margin: 0; }
.map { border-radius: 16px; border: 1px solid var(--rule); aspect-ratio: 16 / 7; max-width: 100%; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24,24,24,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(24,24,24,.05) 1px, transparent 1px) 0 0 / 40px 40px, #F3F3F4; }
.map::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 14px; background: #fff; transform: rotate(-6deg); box-shadow: 0 0 0 1px var(--rule); }
.map::after { content: ""; position: absolute; top: 0; bottom: 0; left: 38%; width: 10px; background: #fff; transform: rotate(14deg); box-shadow: 0 0 0 1px var(--rule); }
.pin { position: absolute; left: 52%; top: 44%; z-index: 2; display: grid; justify-items: center; gap: 6px; transform: translate(-50%, -100%); }
.pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--signal); box-shadow: 0 0 0 6px rgba(226,88,94,.15); }
.pin span { font-family: var(--f-mono); font-size: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.map .open-map { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-family: var(--f-mono); font-size: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; text-decoration: none; }

footer.big { background: var(--deep); color: #BEBDC1; padding-block: 64px 28px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 40px; }
.foot-grid h4 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #F08A8F; margin: 0 0 14px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; color: #DBDBDE; }
.foot-grid a:hover { color: #fff; }
.foot-grid p { margin-top: 12px; max-width: 26em; }
.foot-brand { font-family: var(--f-display); font-size: 20px; color: #fff; font-weight: 500; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #717076; }

@media (max-width: 1180px) {
  .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); padding: 14px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .burger { display: inline-block; margin-left: auto; }
  .nav .btn { display: none; }
  .sub { position: static; box-shadow: none; border: 0; padding: 4px 0 0 12px; min-width: 0; background: transparent; display: grid; }
  .has-sub > button { display: none; }
  .menu.open .m-only { display: block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .split, .detail, .article, .news-big, .job-body, .cta-band, .foot-grid { grid-template-columns: minmax(0,1fr); }
  .split, .detail, .article { gap: 36px; }
  .grid-3 { grid-template-columns: minmax(0,1fr); }
  .page-hero { padding-block: 36px 44px; }
  .article aside { position: static; }
  .cta-band { padding: 32px 24px; }
  .tl { grid-template-columns: 70px 24px minmax(0,1fr); gap: 12px; }
  .tl .yr { font-size: 20px; }
  details.job summary { grid-template-columns: minmax(0,1fr) auto; }
  details.job summary .tags { grid-column: 1 / -1; grid-row: 2; }
  .sec-sm { padding-block: 52px; }
}
@media (max-width: 520px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0,1fr); }
  .office > div { grid-template-columns: 1fr; gap: 2px; }
  .map { aspect-ratio: 4 / 3; }
}

/* ================= v1 + real content (components used by the new Hememics content) ================= */
:root { --primary: #E2585E; --paper: #F4F4F5; --mint: #FCE9EA; --text: #181818; }
.brand img { height: 36px; width: auto; display: block; }
.foot-logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; }
.foot-logo img { height: 34px; width: auto; display: block; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.img-r { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.img-r img { display: block; width: 100%; height: auto; }
.img-cap { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.card ul, .app ul, .pbox ul { list-style: none; margin: 0; padding: 0; display: grid; }
.card .k { font-family: var(--f-mono); font-size: 12px; color: var(--brand-text); letter-spacing: .08em; text-transform: uppercase; }

/* applications / info boxes */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.app { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 28px 26px 26px; display: grid; gap: 12px; align-content: start; transition: border-color .25s, background-color .25s, transform .25s, box-shadow .25s; }
.app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), #F2A5A8 60%, var(--silver)); transform: scaleX(.18); transform-origin: left; transition: transform .4s ease; }
.app:hover { border-color: #F3D0D2; background: #FFF9F9; transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(226,88,94,.35); }
.app:hover::before { transform: scaleX(1); }
.mist .app { background: #fff; }
.app .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.app h3 { font-size: 20px; font-weight: 400; }
.app li { font-size: 14.5px; color: var(--ink-2); padding: 9px 0; border-top: 1px dashed var(--rule); }

.pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.pbox { border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 30px; display: grid; gap: 14px; align-content: start; }
.pbox.bad { background: var(--mist); border-style: dashed; }
.pbox.good { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.pbox.good h3 { color: #fff; }
.pbox h3 { font-size: 21px; font-weight: 400; }
.pbox .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pbox.good .k { color: #FDECED; }
.pbox li { padding: 10px 0 10px 24px; border-top: 1px dashed var(--rule); position: relative; font-size: 15px; color: var(--ink-2); }
.pbox li::before { content: "–"; position: absolute; left: 4px; color: var(--ink-3); }
.pbox.good li { color: #FFFFFF; border-color: rgba(255,255,255,.25); }
.pbox.good li::before { content: "✓"; color: #FDECED; }
.pbox .lead-quote { border-left: 0; padding-left: 0; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; background: #fff; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: left; }
.cmp thead th { background: var(--mist); font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cmp thead th.hl { background: var(--brand-deep); color: #fff; }
.cmp td.hl { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.cmp tr:last-child td { border-bottom: 0; }

.mkt { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.mkt .m { border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 26px; display: grid; gap: 6px; }
.mkt .m.hl { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.mkt .m .v { font-family: var(--f-display); font-size: clamp(32px, 3.2vw, 44px); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.mkt .m.hl .v { color: #fff; }
.mkt .m b { font-weight: 500; }
.mkt .m span { font-size: 13.5px; color: var(--ink-2); }
.mkt .m.hl span { color: #FFFFFF; }

.bars { display: grid; gap: 14px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 28px; }
.bar { display: grid; grid-template-columns: 170px minmax(0,1fr) 120px; gap: 16px; align-items: center; }
.bar .lb { font-size: 14px; color: var(--ink-2); }
.bar .lb b { display: block; color: var(--ink); font-weight: 500; }
.bar .tr { height: 12px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar .vv { font-family: var(--f-mono); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bars .note { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

.road { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--rule); }
.road .st { position: relative; display: grid; gap: 10px; align-content: start; }
.road .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--brand); position: relative; z-index: 1; }
.road .st.now .dot { background: var(--brand-deep); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }
.road .yr { font-family: var(--f-display); font-size: 26px; font-weight: 300; }
.road ul { list-style: none; margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; display: grid; gap: 6px; }
.road li { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.phase-tl { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.phase-tl div { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; border-top: 3px solid var(--brand); }
.phase-tl b { display: block; font-weight: 500; }
.phase-tl span { color: var(--ink-2); font-size: 14px; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

.people { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.pp { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; display: grid; }
.pp .ph5 { aspect-ratio: 1 / 1; max-width: 100%; background: var(--mist); overflow: hidden; }
.pp .ph5 img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pp:hover .ph5 img { transform: scale(1.04); }
.pp .ph5.init { display: grid; place-items: center; font-family: var(--f-display); font-size: 52px; font-weight: 300; color: var(--brand); }
.pp .nm { padding: 16px 18px 20px; display: grid; gap: 2px; }
.pp h3 { font-size: 17px; font-weight: 500; }
.pp p { font-size: 13.5px; color: var(--ink-3); }

.offices { display: grid; gap: 10px; }
.offices h3 { font-size: 20px; font-weight: 400; margin: 10px 0 4px; }
.offices .office dd { overflow-wrap: anywhere; }

.chain { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: c; }
.chain .z { border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.chain .z::before { counter-increment: c; content: "0" counter(c); font-family: var(--f-mono); font-size: 13px; color: var(--brand-text); }
.chain .pic { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--mist); }
.chain .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chain .arrow { display: none; }
.chain h3 { font-size: 20px; font-weight: 400; }
.chain p { color: var(--ink-2); font-size: 15px; }

.ncards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.post.feature .pad { padding: 0 28px 28px; display: grid; gap: 12px; }
.post .cover img { border-radius: 14px 14px 0 0; }
.inv-card img.wide { max-width: 100%; border-radius: 10px; }

@media (max-width: 1180px) { .apps, .people, .mkt { grid-template-columns: repeat(2, minmax(0,1fr)); } .road { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 24px; } .road::before { display: none; } }
@media (max-width: 820px) {
  .pair, .chain, .why, .ncards { grid-template-columns: minmax(0,1fr); }
  .phase-tl { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bar { grid-template-columns: minmax(0,1fr) 100px; } .bar .tr { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) { .apps, .mkt, .road { grid-template-columns: minmax(0,1fr); } .people { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.apps.apps-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.apps.apps-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 860px) { .apps.apps-3, .apps.apps-2 { grid-template-columns: minmax(0,1fr); } }

/* =================================================================
   WordPress integration
   ================================================================= */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
img { max-width: 100%; height: auto; }
.muted { color: var(--ink-3); }
.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { .admin-bar header.site { top: 0; } }

/* header */
.brand img { height: 40px; width: auto; }
.lang span { color: var(--rule); align-self: center; }
.sub a span { display: block; }

/* footer */
.foot-logo { background: none; padding: 0; border-radius: 0; }
.foot-logo img { height: 46px; width: auto; }
.foot-h { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #F08A8F; margin: 0 0 14px; }
.foot-grid p.tight { margin-top: 0; margin-bottom: 10px; }
.foot-grid p.small { font-size: 13px; margin-top: 6px; }
.foot-grid .social { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-grid .social a { display: inline; }
.foot-bottom a { color: #BEBDC1; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* hero video */
.hero-img video { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; background: #181818; aspect-ratio: 16 / 9; }

/* blocks: generic */
.wp-block-group { box-sizing: border-box; }
p.label { margin: 0; }
.head > div > .label + h2, .head h2.wp-block-heading { margin-top: 16px; }
.head:has(> p:empty) { grid-template-columns: minmax(0,1fr); }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; border-radius: 16px; border: 1px solid var(--rule); background: #fff; }
.wp-block-image figcaption, .wp-element-caption { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 8px; text-align: left; }
.img-r .wp-block-image img, .wp-block-image.img-r img { border: 0; border-radius: 0; }
.wp-block-video { margin: 0; }
.wp-block-video video { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--rule); background: #181818; }
.wp-block-video figcaption { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0,1fr)); gap: 14px; margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: 100%; border-radius: 12px; }
.wp-block-gallery.gallery-wide { --cols: 3; }
.wp-block-gallery.gallery-wide figure.wp-block-image img { aspect-ratio: 4 / 3; }
.wp-block-gallery.gallery-patents { --cols: 5; }
@media (max-width: 1020px) { .wp-block-gallery.has-nested-images { --cols: 3; } .wp-block-gallery.gallery-patents { --cols: 4; } }
@media (max-width: 620px) { .wp-block-gallery.has-nested-images, .wp-block-gallery.gallery-patents, .wp-block-gallery.gallery-wide { --cols: 2; } }

/* buttons (core/buttons → .btn look) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 15px; padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; background: var(--ink); color: var(--white); }
.wp-block-button__link:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.is-style-line .wp-block-button__link { background: transparent; color: var(--ink); }
.is-style-line .wp-block-button__link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.is-style-white .wp-block-button__link { background: #fff; color: var(--ink); border-color: #fff; }
.is-style-white .wp-block-button__link:hover { background: #F08A8F; border-color: #F08A8F; color: var(--deep); }
.is-style-mint .wp-block-button__link { background: #F08A8F; color: var(--deep); border-color: #F08A8F; }
.btn-mint { background: #F08A8F; color: var(--deep); border-color: #F08A8F; }

/* prose / entry */
.prose > * + * { margin-top: 16px; }
.prose .label + h2 { margin-top: 14px; }
.prose ul.wp-block-list, .prose ol.wp-block-list { margin-top: 18px; }
.entry h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 300; margin-top: 40px; }
.entry h3 { font-size: 22px; font-weight: 400; margin-top: 30px; }
.entry p { color: var(--ink-2); margin-top: 16px; }
.entry ul:not(.wp-block-list), .entry ol:not(.wp-block-list) { padding-left: 20px; color: var(--ink-2); }
.entry a { color: var(--brand-text); }
.entry figure { margin: 28px 0; }
.article .body .lede { font-size: 20px; color: var(--brand-text); margin-top: 0; font-weight: 500; line-height: 1.5; }
.article .body .cover-figure { margin: 28px 0; }
.article .body .back { margin-top: 40px; }
.article .body ul, .article .body ol { color: #2E2E31; margin-top: 16px; }

/* cards & sections built from blocks */
.card > *, .app > *, .pbox > * { margin: 0; }
.card .icon svg { display: block; }
.plat > * + * { margin-top: 14px; }
.inv-card p { font-family: var(--f-mono); font-size: 11.5px; color: #5E5E63; letter-spacing: .1em; margin: 0; text-align: center; }
.inv-card .wp-block-image img { border: 0; border-radius: 10px; }
.inv .wp-block-buttons { margin-top: 28px; }
.flow ol.steps li { grid-template-columns: 64px minmax(0,1fr); font-family: var(--f-display); font-size: 20px; line-height: 1.35; }
.flow .sticky > * + * { margin-top: 16px; }
.flow .sticky .wp-block-buttons { margin-top: 24px; }
.split > .wp-block-video, .split > .wp-block-image { min-width: 0; }
.note { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 20px; }
.disclaimer { font-size: 14px; color: var(--ink-3); border-left: 3px solid var(--rule); padding-left: 16px; margin-top: 32px; max-width: 52em; }
.stack > * + * { margin-top: 20px; }
.gap-top { margin-top: 40px; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* news */
.news-side { display: grid; gap: 20px; }
.post.feature .pad { padding: 0 28px 28px; }
.filters a { font-size: 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; text-decoration: none; transition: all .2s; }
.filters a:hover { border-color: var(--brand); }
.filters a[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager .page-numbers { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); text-decoration: none; }
.pager .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager .page-numbers.dots { border: 0; }
.side-h { font-size: 16px; font-weight: 500; font-family: var(--f-display); }
.side-box.mint { background: var(--mint); }
.side-box.mint p { color: var(--ink-2); font-size: 14.5px; }
.side-box.mint .btn { justify-content: center; border-top: 0; padding: 11px 20px; }
.side-box.mint a.btn { color: var(--white); }
.side-box.mint a.btn:hover { color: #fff; }

/* jobs */
.job-body .apply { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.job-body .deadline { width: 100%; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.job-detail h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin: 28px 0 8px; }
.job-detail h4:first-child { margin-top: 0; }
.job-detail ul { padding-left: 18px; color: var(--ink-2); }
.form-title { font-size: clamp(26px, 3vw, 36px); font-weight: 300; }
#apply .muted { margin: 10px 0 24px; }

/* forms */
.hm-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hm-form legend, .hm-form .field > label { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding: 0; margin-bottom: 8px; }
.hm-form .req { color: var(--signal); }
.hm-form input[type="file"] { border-bottom-style: dashed; font-size: 14px; }
.hm-form .consent label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-body); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.hm-form .consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--brand); border: 0; padding: 0; }
.hm-form .consent a { color: var(--brand-text); }
.hm-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hm-form button[disabled] { opacity: .6; cursor: progress; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { background: var(--brand-soft); color: #A8323A; }
.form-msg.err { background: #FCE9EA; color: #A8323A; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* contact */
.contact-intro { margin-bottom: 32px; }
.map--embed { background: #F3F3F4; }
.map--embed::before, .map--embed::after { display: none; }
.map--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-sec { padding-top: 0; }

/* team */
.people + .wp-block-buttons { margin-top: 28px; }

@media (max-width: 820px) {
  .news-big { grid-template-columns: minmax(0,1fr); }
}

/* fixes after visual review */
.lattice { display: block; width: 100%; height: 340px; cursor: crosshair; }
@media (max-width: 820px) { .lattice { height: 260px; } }
.split > .wp-block-image img, .split > .wp-block-video video, .img-full img { width: 100%; }
.inv-card { padding: 16px; }
.inv-card img, .inv-card .wp-block-image img { max-width: 100%; width: 100%; }
.app p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.pbox .lead-quote { color: var(--primary); }
.pbox.good .lead-quote, .pbox.good p { color: #fff; }
.inv h2 strong { font-weight: 500; }
.plat h3 a { text-decoration: none; }
.plat h3 a:hover { color: var(--brand); }
.hm-form .consent label { display: block; position: relative; padding-left: 30px; }
.hm-form .consent input { position: absolute; left: 0; top: 0; }

/* ================= Brand refresh (logo palette) + calmer, lighter pages ================= */
/* Icons are stored in page content with an inline stroke colour – recolour them here. */
.icon svg, .icon svg * { stroke: var(--brand); }
.pbox.good .k { color: #fff; opacity: .85; }
/* Fewer words on screen: give sections more air and keep paragraphs short and narrow. */
.head { margin-bottom: 40px; }
.head p:empty, .prose p:empty { display: none; }
.head p { font-size: 17px; }
.card p, .app p { font-size: 14.5px; }
.inv p { font-size: 17px; }


/* ================= Home hero – dark stage (layout inspired by full-screen industrial heroes) ================= */
.hx { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--hh, 73px)); padding: calc(var(--hh, 73px) + 40px) 0 104px; min-height: min(100svh, 980px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; color: #fff;
  background: radial-gradient(60% 60% at 80% 45%, rgba(226,88,94,.18), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(190,189,193,.08), transparent 70%), #111112; }
.hx-bg { position: absolute; inset: 0; z-index: -1; }
.hx-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; filter: grayscale(1) contrast(1.2) blur(2px); }
.hx-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(17,17,18,.72) 0%, rgba(17,17,18,.35) 45%, rgba(17,17,18,0) 70%), linear-gradient(0deg, #111112 0%, rgba(17,17,18,0) 22%); }
.hexfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; width: 100%; }
.hx-kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); display: flex; align-items: center; gap: 12px; }
.hx-kicker::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hx h1 { font-size: clamp(36px, 4.3vw, 62px); font-weight: 300; margin-top: 20px; color: #fff; max-width: 13em; }
.hx h1 strong { font-weight: 500; background: linear-gradient(90deg, #F2858A 0%, #E2585E 50%, #BEBDC1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-intro { color: #D6D6D9; font-size: 18px; margin-top: 20px; max-width: 30em; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 36px 0 0; }
.hx-stats dt { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 40px); white-space: nowrap; font-weight: 400; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hx-stats dd { margin: 6px 0 0; font-size: 13px; color: var(--silver); max-width: 9em; line-height: 1.4; }
.hx-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-brand { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-brand:hover { background: var(--brand); border-color: var(--brand); }

/* honeycomb of application icons (flat-top hexagons; --c column, --r row incl. half-row offset) */
.hx-comb { --w: clamp(96px, 9.2vw, 136px); --h: calc(var(--w) * .866); --gap: 8px; --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  position: relative; justify-self: end; width: calc(var(--w) * 3.25 + var(--gap) * 3); height: calc(var(--h) * 3.5 + var(--gap) * 3); }
.hx-comb .cell { position: absolute; left: calc(var(--c) * (var(--w) * .75 + var(--gap))); top: calc(var(--r) * (var(--h) + var(--gap))); width: var(--w); height: var(--h); clip-path: var(--hex); display: grid; place-items: center; align-content: center; gap: 6px; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.38), rgba(255,255,255,.06) 45%, rgba(226,88,94,.45)); animation: hxin .7s cubic-bezier(.2,.7,.2,1) both, hxfloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms), calc(var(--i) * -.65s); }
.hx-comb .cell::before { content: ""; position: absolute; inset: 1.5px; clip-path: var(--hex); background: linear-gradient(160deg, #2B2B2E, #161617 70%); transition: background .35s; }
.hx-comb .cell > * { position: relative; }
.hx-comb .cell svg { width: 36%; height: auto; transition: color .3s, transform .35s; }
.hx-comb .cell span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; max-width: 86%; text-align: center; line-height: 1.2; }
.hx-comb .cell:hover::before { background: radial-gradient(70% 70% at 50% 40%, rgba(226,88,94,.38), #1B1B1D 75%); }
.hx-comb .cell:hover svg { color: #F2858A; transform: translateY(-3px); }
.hx-comb .cell:hover span { opacity: 1; transform: none; }
.hx-comb .cell.is-brand::before { background: radial-gradient(70% 70% at 50% 45%, rgba(226,88,94,.28), #1B1B1D 80%); }
.hx-comb .cell.is-brand .mark { width: 34%; }
.hx-comb .cell.is-brand span { display: none; }
@keyframes hxin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hx-scroll { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; }
.hx-scroll i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: hxwheel 1.8s ease-in-out infinite; }
@keyframes hxwheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 1020px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hx-comb { justify-self: center; --w: clamp(76px, 20vw, 112px); }
  .hx { min-height: 0; padding-bottom: 88px; }
}
@media (max-width: 520px) { .hx-stats { gap: 16px 28px; } .hx-intro { font-size: 16.5px; } .hx-scroll { display: none; } .hx-comb { --gap: 5px; } }

/* header sits transparent on top of the dark hero, turns white after scrolling */
header.site.is-overlay { transition: background-color .3s, border-color .3s; }
.brand .logo-on-dark { display: none; }
header.is-overlay:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
header.is-overlay:not(.scrolled) .brand > img { display: none; }
header.is-overlay:not(.scrolled) .brand .logo-on-dark { display: block; }
header.is-overlay:not(.scrolled) .lang a { color: rgba(255,255,255,.6); }
header.is-overlay:not(.scrolled) .lang a[aria-current] { color: #fff; }
header.is-overlay:not(.scrolled) .lang span { color: rgba(255,255,255,.3); }
header.is-overlay:not(.scrolled) .burger { color: #fff; border-color: rgba(255,255,255,.35); }
header.is-overlay:not(.scrolled) .nav > .btn-dark { background: var(--brand-deep); border-color: var(--brand-deep); }
@media (min-width: 1181px) {
  header.is-overlay:not(.scrolled) .menu > a, header.is-overlay:not(.scrolled) .has-sub > button { color: rgba(255,255,255,.82); }
  header.is-overlay:not(.scrolled) .menu > a:hover, header.is-overlay:not(.scrolled) .has-sub > button:hover, header.is-overlay:not(.scrolled) .menu > a.active, header.is-overlay:not(.scrolled) .has-sub.active > button { color: #fff; }
}

/* ================= Content: justified body text ================= */
.entry p, .prose p, .card p, .app p, .pbox p, .vm-body p, .head p, .inv p, .entry li, .prose li, .pbox li, .job-body li { text-align: justify; text-justify: inter-word; }
.entry p.label, .prose p.label, .card p.k, .app p.k, .pbox p.k, .vm-body p.k, .entry .has-text-align-center, .wp-element-caption { text-align: left; }
.entry .has-text-align-center { text-align: center; }

/* ================= About: vision & mission – compact cards with an illustration ================= */
.vm { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.vm-card { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.vm-card > * { margin: 0; }
.vm-card .vm-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.vm-card .vm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-body { padding: 22px 26px 26px; display: grid; gap: 10px; align-content: start; }
.vm-body > * { margin: 0; }
.vm-body .k { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brand-text); }
.vm-body p:not(.k) { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 820px) { .vm { grid-template-columns: minmax(0,1fr); } .vm-body { padding: 18px 20px 22px; } }

/* ================= Contact: details + map (no form) ================= */
.ct .map { aspect-ratio: auto; height: 100%; min-height: 360px; }
