/* Inter (SIL Open Font License), self-hosted: a free, close match to Aptos */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* SALTglobe · SaltCube website
   Layout concept: product sheet with dark bands (hero, figures, contact) between
   salt-white content bands; mono labels carry real units. */


:root {
  /* colour */
  --ink: #0c1216;          /* night graphite, cube shadow */
  --ink-2: #131b21;
  --ink-3: #1c262e;
  --steel: #3a434b;        /* cube shell */
  --salt: #f2f3f0;         /* salt white */
  --paper: #ffffff;
  --fog: #e2e6e6;
  --text: #121a1f;
  --muted: #56626a;
  --muted-d: #93a1aa;
  --line: #d3d9da;
  --line-d: rgba(214, 228, 236, 0.12);
  --signal: #ed7e32;       /* SALTglobe orange */
  --signal-ink: #b04f12;   /* orange for text on light */
  --ok: #3fbf8a;
  /* type */
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* scale */
  --s-hero: clamp(2.5rem, 5.6vw, 5.4rem);
  --s-h2: clamp(2rem, 4.4vw, 3.7rem);
  --s-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --s-lead: clamp(1.08rem, 1.3vw, 1.28rem);
  --radius: 14px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--salt); color: var(--text); font: 400 1.0625rem/1.62 var(--body); font-feature-settings: "cv11", "tnum" 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: #111; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
[class*="chip"], .fig-num, .out-list dd, .range-val, .acc-n, .tag b, .fbar .mono, .ticks { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-ink); display: inline-flex; gap: 0.7em; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .eyebrow { color: var(--signal); }
.lead { font-size: var(--s-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.dark .lead { color: var(--muted-d); }
.h2 { font-size: var(--s-h2); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; }
.h3 { font-size: var(--s-h3); line-height: 1.2; letter-spacing: -0.015em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.35em; border-radius: 999px; font-weight: 500; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-primary { background: var(--signal); color: #160b03; }
.btn-primary:hover { background: #f59450; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-line { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn-line:hover { border-color: var(--text); }

/* ---------------- header ---------------- */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; color: #fff; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header.is-static { background: rgba(12, 18, 22, 0.93); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line-d); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand img { height: 28px; width: auto; display: block; }
.brand-lg img { height: 34px; }
@media (max-width: 560px) { .brand img { height: 24px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a .n { font-family: var(--mono); font-size: 0.7rem; color: var(--signal); margin-right: 6px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 3px; font-family: var(--mono); font-size: 0.75rem; }
.lang a, .lang span { padding: 5px 9px; border-radius: 999px; text-decoration: none; letter-spacing: 0.06em; }
.lang [aria-current] { background: #fff; color: var(--ink); }
.lang a { color: rgba(255, 255, 255, 0.75); }
.lang a:hover { color: #fff; }
.header-cta { padding: 0.6em 1.1em; font-size: 0.9rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 24px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); gap: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; overflow-y: auto; }
  .nav a { font-family: var(--display); font-size: 1.8rem; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-d); color: #fff; }
  .nav a:hover { background: none; }
  .nav a .n { font-size: 0.8rem; vertical-align: middle; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s; }
  .menu-open .site-header { background: var(--ink); }
  .menu-btn { display: inline-flex; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------------- hero ---------------- */
.dark { background: var(--ink); color: #eef2f4; color-scheme: dark; }
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 60% at 74% 48%, rgba(96, 124, 146, 0.42), transparent 70%),
  radial-gradient(30% 22% at 74% 86%, rgba(237, 126, 50, 0.16), transparent 70%),
  linear-gradient(180deg, #0a0f13 0%, var(--ink) 60%, #0e151a 100%); }
.hero-inner { position: relative; display: grid; gap: 32px; padding-block: clamp(36px, 7vw, 96px) 36px; }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero h1 { font-size: var(--s-hero); line-height: 0.98; letter-spacing: -0.045em; max-width: 12.5ch; }
.hero h1 em { font-style: normal; color: var(--muted-d); }
.hero .lead { color: #b7c3ca; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.hero-facts div { padding: 18px 18px 4px 0; display: grid; gap: 4px; min-width: 0; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line-d); }
.hero-facts b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1; font-feature-settings: "tnum"; }
.hero-facts span { font-size: 0.82rem; color: var(--muted-d); line-height: 1.35; }

/* cube stage: cut-out render with float, tilt and light sweep */
.cube-stage { position: relative; aspect-ratio: 1 / 0.92; width: 100%; max-width: 620px; justify-self: center; }
.cube-glow { position: absolute; inset: 6% 4% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(148, 176, 198, 0.42), rgba(148, 176, 198, 0.08) 65%, transparent); filter: blur(8px); animation: glow 7s ease-in-out infinite; }
.cube-floor { position: absolute; left: 14%; right: 10%; bottom: 3%; height: 11%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 60%, transparent); animation: floor 7s ease-in-out infinite; }
.cube-floor::after { content: ""; position: absolute; inset: -40% -12%; border-radius: 50%; border: 1px solid rgba(237, 126, 50, 0.5); opacity: 0; animation: ring 7s ease-out infinite; }
.cube-tilt { position: absolute; inset: 4% 8% 9%; }
.cube-float { position: relative; width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.cube-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); animation: arrive 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.cube-sheen { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 140% 0; animation: sheen 7s ease-in-out 1.6s infinite; }
.tag { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(16, 24, 30, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-d); color: #eef2f4; animation: tagin .8s cubic-bezier(.2, .7, .2, 1) both, float 7s ease-in-out infinite; }
.tag i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(237, 126, 50, 0.6); animation: pulse 2.4s ease-out infinite; }
.tag b { font-family: var(--mono); font-weight: 400; font-size: 0.86rem; letter-spacing: 0.02em; }
.tag span { font-size: 0.74rem; color: var(--muted-d); }
.tag-a { left: -2%; top: 18%; animation-delay: .9s, -1s; }
.tag-b { right: -2%; top: 46%; animation-delay: 1.1s, -3.4s; }
.tag-c { left: 6%; bottom: 10%; animation-delay: 1.3s, -5s; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .75; } }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes ring { 0%, 55% { opacity: 0; transform: scale(.7); } 62% { opacity: .9; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes sheen { 0%, 60% { background-position: 140% 0; } 100% { background-position: -60% 0; } }
@keyframes arrive { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tagin { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 126, 50, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(237, 126, 50, 0); } }
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: min(calc(100svh - var(--header-h) - 120px), 760px); }
  .hero-facts { grid-column: 1 / -1; }
}
@media (max-width: 979px) { .cube-stage { max-width: 460px; } }
@media (max-width: 640px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .tag { padding: 8px 10px; } .tag b { font-size: 0.78rem; } .tag span { font-size: 0.68rem; }
  .tag-a { left: 0; top: 6%; } .tag-b { right: 0; top: 44%; } .tag-c { left: 2%; bottom: 4%; }
}

/* ---------------- sections ---------------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 980px) { .section-head.split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 48px; } }

/* benefits accordion */
.acc-list { border-top: 1px solid var(--text); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto 36px; gap: 18px; align-items: center; padding: clamp(20px, 2.6vw, 32px) 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc-n { font-family: var(--mono); font-size: 0.8rem; color: var(--signal-ink); }
.acc-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.ico { width: 28px; height: 28px; }
.acc-head { display: grid; gap: 4px; min-width: 0; }
.acc-title { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.acc-teaser { color: var(--muted); font-size: 0.98rem; }
.acc-chip { font-family: var(--mono); font-size: 0.82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.acc-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .25s, background .2s; }
.acc-toggle::before, .acc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.acc[open] .acc-toggle { background: var(--text); color: #fff; border-color: var(--text); }
.acc[open] .acc-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc[open] .acc-ico, .acc summary:hover .acc-ico { background: var(--signal); border-color: var(--signal); color: #160b03; }
.acc summary:hover .acc-title { color: var(--signal-ink); }
.acc-body { display: grid; gap: 28px; padding: 0 0 clamp(24px, 3vw, 40px) calc(44px + 56px + 36px); }
.acc-body p { color: var(--muted); max-width: 56ch; font-size: 1.02rem; }
.acc-body figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; display: grid; gap: 10px; }
.acc-body figcaption { font-family: var(--body); font-size: 0.74rem; color: var(--muted); }
.acc-body svg { width: 100%; height: auto; display: block; overflow: visible; }
.acc-body .chart-label { font-family: var(--body); font-size: 10.5px; fill: var(--muted); }
.acc-body .chart-strong { font-family: var(--body); font-weight: 600; font-size: 11px; fill: var(--text); }
.acc[open] .acc-body { animation: accin .35s ease both; }
@keyframes accin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 980px) { .acc-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
@media (max-width: 760px) {
  .acc summary { grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 14px; }
  .acc-n, .acc-chip { display: none; }
  .acc-ico { width: 44px; height: 44px; border-radius: 12px; } .ico { width: 22px; height: 22px; }
  .acc-toggle { width: 32px; height: 32px; }
  .acc-body { padding-left: 0; }
}

/* proof: four offset photo tiles */
.proof { margin-top: clamp(72px, 9vw, 128px); }
.proof-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.proof-head .h2 { max-width: 22ch; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding-bottom: 72px; max-width: 1040px; }
.proof-tile { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; --off: 0px; transform: translateY(var(--off)); }
.proof-tile:nth-child(2) { --off: 56px; } .proof-tile:nth-child(3) { --off: 18px; } .proof-tile:nth-child(4) { --off: 72px; }
.proof-img { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--fog); }
.proof-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04) translateY(var(--py, 0px)); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.proof-tile:hover .proof-img img { transform: scale(1.09) translateY(var(--py, 0px)); }
.proof-tile figcaption { font-size: 0.95rem; font-weight: 500; line-height: 1.35; padding-left: 14px; border-left: 2px solid var(--signal); }
.proof.anim .proof-tile { opacity: .001; transform: translateY(calc(var(--off) + 70px)) rotate(1.5deg); }
.proof.anim .proof-tile.in { opacity: 1; transform: translateY(var(--off)); transition: opacity .8s ease calc(var(--i) * .12s), transform 1.1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .12s); }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; padding-bottom: 40px; }
  .proof-tile:nth-child(2), .proof-tile:nth-child(4) { --off: 40px; } .proof-tile:nth-child(3) { --off: 0px; }
}

/* figures band */
.figures-band { padding-block: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.figures-band::before { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%; background: radial-gradient(closest-side, rgba(237, 126, 50, 0.14), transparent); pointer-events: none; }
.fig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.fig { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-d); min-width: 0; }
.fig-num { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 3.7vw, 4rem); line-height: 0.9; letter-spacing: -0.055em; color: #fff; font-feature-settings: "tnum"; white-space: nowrap; }
.fig-num span:first-child, .fig-num span:last-child { color: var(--signal); }
.fig p { color: var(--muted-d); font-size: 0.95rem; min-height: 3em; }
.fig-bars { display: grid; gap: 12px; margin-top: auto; }
.fbar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 0.78rem; color: var(--muted-d); }
.fbar .mono { color: #eef2f4; font-size: 0.78rem; }
.fbar i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.fbar i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: #7f8d96; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.fbar.accent i::after { background: var(--signal); }
.fig-chips { list-style: none; display: grid; gap: 8px; margin-top: auto; }
.fig-chips li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.84rem; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.fig-chips s { color: var(--muted-d); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.fig-chips span { font-family: var(--mono); font-size: 0.74rem; color: var(--ok); }
.anim .fbar i::after { width: 0; }
.anim .fig.in .fbar i::after { width: var(--w); }
.anim .fig { opacity: .001; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .fig.in { opacity: 1; transform: none; }
.anim .fig:nth-child(2) { transition-delay: .1s; } .anim .fig:nth-child(3) { transition-delay: .2s; } .anim .fig:nth-child(4) { transition-delay: .3s; }
@media (max-width: 1080px) { .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fig-grid { grid-template-columns: minmax(0, 1fr); } .fig p { min-height: 0; } }

.calc-section { padding-block: clamp(72px, 9vw, 120px); }
/* calculator */
.calc { background: var(--ink); color: #eef2f4; border-radius: 22px; overflow: hidden; display: grid; color-scheme: dark; }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.calc-in { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: clamp(24px, 3.4vw, 48px); background: var(--ink-3); display: grid; gap: 18px; align-content: start; }
.calc-h { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.calc-note { font-size: 0.92rem; color: #dbe3e7; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(237, 126, 50, 0.45); background: rgba(237, 126, 50, 0.08); }
.calc-note b { color: var(--signal); font-weight: 500; }
.calc p.note { font-size: 0.85rem; color: var(--muted-d); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; color: var(--muted-d); }
.field .row { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 0 12px; background: rgba(255, 255, 255, 0.03); }
.field .row:focus-within { border-color: var(--signal); }
.field input[type="number"] { width: 100%; min-width: 0; border: 0; background: transparent; padding: 11px 0; font-family: var(--mono); font-size: 1rem; outline: none; -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field .unit { font-family: var(--mono); font-size: 0.8rem; color: var(--muted-d); white-space: nowrap; }
.out-big { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.out-big span { font-size: 0.86rem; color: var(--muted-d); }
.out-big b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.045em; color: var(--signal); font-feature-settings: "tnum"; }
.out-list { display: grid; gap: 0; margin: 0; }
.out-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-d); font-size: 0.95rem; }
.out-list dt { color: var(--muted-d); }
.out-list dd { margin: 0; font-family: var(--mono); text-align: right; }

/* ---------------- configuration ---------------- */
.config { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--paper); }
@media (min-width: 1000px) { .config { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.config-in { padding: clamp(22px, 3.2vw, 44px); display: grid; gap: 30px; align-content: start; }
.config-in h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.cgroup { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.legend-note { text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--muted); margin-left: 6px; }
.cgroup legend, .cgroup > label { font-size: 0.82rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0; margin-bottom: 2px; }
.range-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.range-val { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; font-feature-settings: "tnum"; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) var(--fill, 0%), var(--fog) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--fog); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--signal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--text); }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; transition: border-color .15s, background .15s, color .15s; background: var(--paper); }
.seg input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.seg label:hover span { border-color: var(--text); }
.config-out { background: var(--ink); color: #eef2f4; padding: clamp(22px, 3.2vw, 44px); display: grid; gap: 20px; align-content: start; color-scheme: dark; }
.config-out .rec { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.config-out .rec img { width: 96px; height: 96px; object-fit: contain; background: #e9ecec; border-radius: 12px; padding: 6px; }
.config-out .rec span { font-size: 0.8rem; color: var(--muted-d); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.config-out .rec b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.config-out .hint { font-size: 0.88rem; color: var(--muted-d); }
.config-out .hint:empty { display: none; }
.config-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- about: portrait on black ---------------- */
.about { background: #000; color: #eef2f4; padding-block: clamp(72px, 9vw, 130px); color-scheme: dark; overflow: hidden; }
.about-grid { display: grid; gap: clamp(28px, 5vw, 88px); align-items: center; }
@media (min-width: 980px) { .about-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.about-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 620px; justify-self: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.about-photo::before { content: ""; position: absolute; inset: 4% 6% 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 150, 176, 0.34), transparent 75%); filter: blur(10px); }
.about-photo img { position: relative; mix-blend-mode: lighten; }
.about-photo::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--signal), transparent); opacity: .8; }
.about-copy { display: grid; gap: 24px; align-content: center; min-width: 0; }
.about-copy .h2 { color: #fff; max-width: 18ch; }
.about blockquote { margin: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.01em; color: #dfe6ea; padding-left: 20px; border-left: 3px solid var(--signal); max-width: 34ch; }
.about-sign { display: grid; gap: 2px; }
.about-sign b { font-weight: 700; font-size: 1.05rem; color: #fff; }
.about-sign span { font-size: 0.9rem; color: var(--muted-d); }
.about-bio { color: #aab6bd; max-width: 56ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.about-facts div { padding: 18px 16px 18px 0; display: grid; gap: 4px; min-width: 0; }
.about-facts div + div { padding-left: 16px; border-left: 1px solid var(--line-d); }
.about-facts b { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--signal); }
.about-facts span { font-size: 0.85rem; color: var(--muted-d); }
.steps-title { margin-top: clamp(64px, 8vw, 110px); margin-bottom: 26px; font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; color: #fff; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.steps li { position: relative; padding: 24px 22px 26px; border-radius: 16px; background: #0d1317; border: 1px solid var(--line-d); display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #160b03; font-weight: 700; font-size: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 43px; left: calc(22px + 38px + 10px); right: -16px; height: 1px; background: linear-gradient(90deg, rgba(237, 126, 50, 0.6), rgba(237, 126, 50, 0)); }
.steps h4 { margin: 4px 0 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
.steps p { color: #aab6bd; font-size: 0.94rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.steps h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 979px) {
  .about-photo { aspect-ratio: 1 / 1; max-width: 420px; }
  .about-photo img { object-position: 50% 12%; }
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .about-facts span { font-size: 0.78rem; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--signal-ink); font-size: 1.4rem; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }
@media (min-width: 980px) { .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contact-card { display: grid; gap: 22px; align-content: start; }
.contact-card dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-d); }
.contact-card dl div { padding: 14px 0; border-bottom: 1px solid var(--line-d); display: grid; gap: 2px; }
.contact-card dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-d); }
.contact-card dd { margin: 0; font-size: 1.05rem; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { color: var(--signal); }
.form { display: grid; gap: 16px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 22px; padding: clamp(20px, 3vw, 40px); }
.form .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form .grid2 { grid-template-columns: minmax(0, 1fr); } }
.f { display: grid; gap: 6px; min-width: 0; }
.f label { font-size: 0.84rem; color: var(--muted-d); }
.f input, .f select, .f textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: #eef2f4; outline: none; transition: border-color .15s; }
.f select option { background: var(--ink-2); color: #eef2f4; }
.f textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--signal); }
.f input:user-invalid, .f textarea:user-invalid { border-color: #e35d4f; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: #b5c1c8; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.check a { color: #fff; }
.form-legal { font-size: 0.84rem; color: #9aa6ad; }
.form-legal a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-status { font-size: 0.92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff8f7f; }
[hidden] { display: none !important; }
.mail-fallback { display: grid; gap: 10px; padding: 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.25); font-size: 0.9rem; color: #c8d2d8; }
.mail-fallback pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 0.8rem; max-height: 180px; overflow: auto; background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: 8px; }
.mail-fallback .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- footer ---------------- */
.site-footer { background: #080c0f; color: #c3ced4; padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; color-scheme: dark; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: #fff; font-size: 1.6rem; }
.site-footer p { color: #8e9ca5; max-width: 46ch; margin-top: 14px; }
.site-footer h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6f7e88; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #dbe3e7; }
.site-footer a:hover { color: var(--signal); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: #6f7e88; font-size: 0.82rem; }
.linkbtn { background: none; border: 0; padding: 0; color: #dbe3e7; cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--signal); }

/* privacy notice (no cookies) */
.notice { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); background: var(--paper); color: var(--text); border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); border: 1px solid var(--line); display: grid; gap: 12px; font-size: 0.9rem; }
.notice b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.notice p { color: var(--muted); }
.notice .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice a { color: var(--text); font-size: 0.88rem; }
.notice .btn { padding: 0.6em 1.1em; font-size: 0.9rem; }

/* ---------------- legal pages ---------------- */
.legal { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(64px, 8vw, 110px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; margin: 18px 0 36px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.12rem; margin: 26px 0 8px; font-family: var(--body); font-weight: 500; letter-spacing: 0; }
.legal p, .legal li { color: #2d383f; max-width: 72ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal .meta { font-size: 0.86rem; color: var(--muted); margin-top: 40px; }
.legal a { color: var(--signal-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 600px) {
  .notice { padding: 14px; gap: 8px; font-size: 0.82rem; }
  .notice b { font-size: 1rem; }
  .notice p { line-height: 1.45; }
}

.section-head > div:only-child, .section-head.split > div { align-content: end; }

@media (max-width: 520px) {
  .steps { gap: 10px; }
  .steps li { grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .steps-n { grid-row: span 2; }
  .steps h4 { margin: 0; align-self: end; }
}
