/* ==========================================================================
   Spadon — night chart (default) / day chart
   Brand ink: #2D7DBC (sampled from the logo). Route magenta: chart overprint.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Night chart */
  --bg: #06121C;
  --bg-2: #0B1B29;
  --bg-3: #10253A;
  --ink: #E6EFF6;
  --ink-2: #9DB2C3;
  --ink-3: #6B8497;
  --line: rgba(126, 178, 222, .14);
  --line-2: rgba(126, 178, 222, .28);
  --grat: rgba(126, 178, 222, .045);

  --brand: #2D7DBC;
  --brand-hi: #5FA8E3;
  --btn-bg: #5FA8E3;
  --btn-bg-hover: #8AC1EC;
  --btn-ink: #04101A;
  --route: #E4509F;
  --focus: #E4509F;

  --contour: rgba(95, 168, 227, .19);
  --contour-index: rgba(95, 168, 227, .42);
  --sounding: rgba(157, 178, 195, .5);

  --glow: rgba(95, 168, 227, .22);
  --header-bg: rgba(6, 18, 28, .74);

  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Latin type (en / de) */
  --f-display: 'Saira', 'Alexandria', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Estedad', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Estedad', ui-monospace, monospace;
  --stretch: 118%;
}

:root[data-theme="light"] {
  color-scheme: light;

  /* Day chart */
  --bg: #F3F7FA;
  --bg-2: #FFFFFF;
  --bg-3: #E6EEF4;
  --ink: #0A2033;
  --ink-2: #44596B;
  --ink-3: #5C7183;
  --line: rgba(20, 70, 110, .13);
  --line-2: rgba(20, 70, 110, .26);
  --grat: rgba(20, 70, 110, .05);

  --brand-hi: #1F6AA5;
  --btn-bg: #1F6AA5;
  --btn-bg-hover: #18578A;
  --btn-ink: #FFFFFF;
  --route: #B8307E;
  --focus: #B8307E;

  --contour: rgba(45, 125, 188, .2);
  --contour-index: rgba(45, 125, 188, .44);
  --sounding: rgba(68, 89, 107, .62);

  --glow: rgba(45, 125, 188, .12);
  --header-bg: rgba(243, 247, 250, .8);
}

/* Persian type */
:lang(fa) {
  --f-display: 'Alexandria', 'Estedad', system-ui, sans-serif;
  --f-body: 'Estedad', system-ui, sans-serif;
  --stretch: 100%;
}
:lang(en), :lang(de) {
  --f-display: 'Saira', 'Alexandria', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Estedad', system-ui, sans-serif;
  --stretch: 118%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s ease, color .5s ease;
}
html:lang(fa) body { line-height: 1.95; }

[lang] { font-family: var(--f-body); }

.i18n-pending body { visibility: hidden; }

img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--brand-hi); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; z-index: 100;
  inset-block-start: 12px; inset-inline-start: 12px;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-ink);
  text-decoration: none; font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

.num { font-variant-numeric: tabular-nums; }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .i-dir { transform: scaleX(-1); }

/* Eyebrow: a section's name, set like a chart annotation */
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  margin-block-end: 1.4rem;
  font-family: var(--f-mono);
  font-size: .76rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; flex: none;
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--route);
}
html:lang(fa) .eyebrow { letter-spacing: 0; font-size: .9rem; font-family: var(--f-body); }

h2 {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 750;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  margin-block-end: 1.1rem;
  text-wrap: balance;
}
html:lang(fa) h2 { line-height: 1.4; letter-spacing: 0; font-weight: 800; }

.sec-head { max-width: 46rem; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.sec-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 54px; padding: 0 1.5rem;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary .i-dir { transition: transform .25s ease; }
.btn-primary:hover .i-dir { transform: translateX(4px); }
[dir="rtl"] .btn-primary:hover .i-dir { transform: scaleX(-1) translateX(4px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.btn-ghost:hover { border-color: var(--brand-hi); color: var(--brand-hi); }
.btn-ghost .num { font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; z-index: 50;
  inset-block-start: 0; inset-inline: 0;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 16px var(--gutter);
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.topbar.is-scrolled {
  padding-block: 10px;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: block; margin-inline-end: auto; border-radius: 6px; }
/* Logos are pre-coloured per theme (CSS masks don't load from file://) */
.theme-img[data-for="light"] { display: none; }
[data-theme="light"] .theme-img[data-for="dark"] { display: none; }
[data-theme="light"] .theme-img[data-for="light"] { display: block; }

.brand-word, .foot-word { width: auto; }
.brand-word { height: 46px; transition: height .3s ease; }
.is-scrolled .brand-word { height: 40px; }

.nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); }
.nav a {
  position: relative;
  padding-block: .35rem;
  color: var(--ink-2); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute;
  inset-inline: 0; inset-block-end: 0;
  height: 2px; border-radius: 2px;
  background: var(--route);
  transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .25s ease;
}
[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.tools { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  display: flex; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.lang-switch button {
  min-width: 38px; height: 32px; padding: 0 .55rem;
  border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-2); cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem; font-weight: 500; letter-spacing: .06em;
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch button[lang="fa"] { font-family: 'Estedad', sans-serif; font-size: .9rem; letter-spacing: 0; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--ink-2); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brand-hi); }
.theme-toggle .i { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity .3s ease, transform .4s ease; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(40deg) scale(.6); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(640px, 100svh, 1000px);
  padding-block-start: 96px;
  overflow: hidden;
}

.chart {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero .chart {
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 76% 46%, #000 30%, rgba(0, 0, 0, .22) 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 76% 46%, #000 30%, rgba(0, 0, 0, .22) 100%);
}
[dir="rtl"] .hero .chart {
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 24% 46%, #000 30%, rgba(0, 0, 0, .22) 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 24% 46%, #000 30%, rgba(0, 0, 0, .22) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.hero-copy { padding-block: clamp(1rem, 4vh, 3rem) clamp(.5rem, 2vh, 1.5rem); }

.eyebrow-brand { font-family: 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }
.hero .eyebrow { flex-wrap: wrap; row-gap: .25rem; }
.hero .eyebrow-brand + span::before { content: "/"; margin-inline-end: .8rem; color: var(--line-2); }

h1 {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin-block-end: 1.6rem;
}
html:lang(fa) h1 { font-size: clamp(2.6rem, 5.8vw, 5.3rem); line-height: 1.32; letter-spacing: 0; font-weight: 850; }
html:lang(de) h1 { font-size: clamp(2.1rem, 4.5vw, 4.2rem); }
h1 .ln { display: block; animation: rise .9s cubic-bezier(.2, .75, .2, 1) both; }
h1 .ln:nth-child(2) { color: var(--brand-hi); animation-delay: .12s; }

.lead {
  max-width: 34em;
  margin-block-end: 2.3rem;
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  color: var(--ink-2);
  text-wrap: pretty;
  animation: rise .9s .24s cubic-bezier(.2, .75, .2, 1) both;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: rise .9s .34s cubic-bezier(.2, .75, .2, 1) both; }

.hero-mark { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.marlin {
  width: min(100%, 500px);
  filter: drop-shadow(0 28px 60px var(--glow));
  animation: leap 1.5s .1s cubic-bezier(.16, .8, .2, 1) both;
}
.marlin img { width: 100%; height: auto; }

.hero-foot {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: 1.5rem 1.9rem;
  font-family: var(--f-mono); font-size: .8rem;
  color: var(--ink-3);
}
html:lang(fa) .hero-foot { font-family: var(--f-body); font-size: .88rem; }
.readout b { font-weight: 500; color: var(--ink-2); }
.readout .sep { opacity: .5; margin-inline: .2rem; }
.graduation {
  flex: 1; height: 7px;
  border: 1px solid var(--line-2);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 36px, transparent 36px 72px);
}
.dive {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink-2); text-decoration: none;
  transition: color .2s ease;
}
.dive:hover { color: var(--ink); }
.dive .i { animation: bob 2.6s ease-in-out infinite; }

/* ---------- About ---------- */
.about { padding-block: clamp(5rem, 12vw, 9.5rem) clamp(3rem, 7vw, 5rem); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}
.about-grid > .eyebrow { align-self: start; margin-block-start: .9rem; }
.statement {
  margin-block-end: 1.8rem;
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.32;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
html:lang(fa) .statement { line-height: 1.75; letter-spacing: 0; font-weight: 600; }
.about-body { max-width: 40em; color: var(--ink-2); font-size: 1.1rem; text-wrap: pretty; }

/* ---------- Services: the water column ---------- */
.services { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem); }

.column {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  padding-inline-start: 34px;
}
/* The column itself: light fades with depth, in both themes */
.column::before {
  content: ""; position: absolute;
  inset-block: 0; inset-inline-start: 0;
  width: 8px; border-radius: 8px;
  background: linear-gradient(to bottom,
    #A9DAF7 0%, #5FA8E3 14%, #2D7DBC 30%, #1A5486 50%, #0D2E4B 70%, #061A2B 86%, #02090F 100%);
}

.layer {
  position: relative;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 15rem);
  gap: 1rem clamp(1.5rem, 3.5vw, 3rem);
  padding-block: 2.1rem;
  border-block-start: 1px solid var(--line);
}
/* depth tick running from the column into the row */
.layer::before {
  content: ""; position: absolute;
  inset-block-start: -1px; inset-inline-start: -34px;
  width: 26px; height: 1px;
  background: var(--line-2);
}

.layer-depth { display: flex; flex-direction: column; gap: .3rem; }
.depth {
  font-family: var(--f-mono);
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink);
}
.zone {
  font-family: var(--f-mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-hi);
}
html:lang(fa) .depth { font-family: var(--f-body); font-weight: 600; }
html:lang(fa) .zone { font-family: var(--f-body); font-size: .84rem; letter-spacing: 0; }

.layer h3, .abyss-panel h3 {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  margin-block-end: .55rem;
}
html:lang(fa) .layer h3, html:lang(fa) .abyss-panel h3 { line-height: 1.6; }
.layer-body p { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

.tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-content: start; gap: .4rem;
}
.tags li {
  padding: .28rem .6rem;
  border: 1px solid var(--line-2); border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: .74rem; line-height: 1.35;
  color: var(--ink-2);
}

/* The abyss: always a night panel, whatever the theme */
.layer-abyss { grid-template-columns: 11rem minmax(0, 1fr); padding-block-end: 0; }
.abyss-panel {
  --ink: #E6EFF6; --ink-2: #A3B7C7; --ink-3: #7A93A6;
  --line: rgba(126, 178, 222, .14); --line-2: rgba(126, 178, 222, .3);
  --brand-hi: #6CB1E8;
  --contour: rgba(95, 168, 227, .16);
  --contour-index: rgba(95, 168, 227, .34);
  --sounding: rgba(157, 178, 195, .45);

  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(45, 125, 188, .22), transparent 60%),
    #030B12;
  color: var(--ink);
}
.abyss-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-block-end: .7rem; }
.ai-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 32em; }
.usecases {
  list-style: none; padding: 0;
  margin: 2.2rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem 2rem;
}
.usecases li { padding-block-start: 1rem; border-block-start: 1px solid var(--line-2); }
.usecases h4 { font-size: 1.02rem; font-weight: 600; line-height: 1.45; margin-block-end: .35rem; color: var(--ink); }
.usecases p { font-size: .96rem; color: var(--ink-2); }

/* ---------- Process: a plotted course ---------- */
.process { padding-block: clamp(4rem, 9vw, 7rem); border-block-start: 1px solid var(--line); }

.route {
  position: relative;
  list-style: none; margin: 0; padding: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem;
}
.route::before {
  content: ""; position: absolute;
  inset-block-start: 9px; inset-inline-start: 9px; inset-inline-end: 4px;
  border-block-start: 2px dashed var(--route);
  opacity: .85;
}
.route::after {
  content: ""; position: absolute;
  inset-block-start: 4px; inset-inline-end: 1px;
  width: 12px; height: 12px;
  border-block-start: 2px solid var(--route);
  border-inline-end: 2px solid var(--route);
  transform: rotate(45deg);
}
[dir="rtl"] .route::after { transform: rotate(-45deg); }

.wp { position: relative; }
.wp-mark {
  position: absolute;
  inset-block-start: calc(-3rem + 0px); inset-inline-start: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--route);
  box-shadow: 0 0 0 5px var(--bg);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.wp-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: var(--route);
}
.wp-num {
  display: block; margin-block-end: .7rem;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--route);
}
html:lang(fa) .wp-num { font-family: var(--f-body); font-size: .88rem; letter-spacing: 0; }
.wp h3 {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 700;
  font-size: 1.35rem; line-height: 1.25;
  margin-block-end: .55rem;
}
html:lang(fa) .wp h3 { line-height: 1.6; }
.wp p { color: var(--ink-2); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  border-block-start: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grat) 1px, transparent 1px),
    linear-gradient(90deg, var(--grat) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center -1px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.channels { list-style: none; margin: 2.6rem 0 0; padding: 0; }
.ch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "value copy";
  align-items: center; column-gap: 1rem;
  padding-block: 1.15rem;
  border-block-start: 1px solid var(--line);
}
.ch:last-child { border-block-end: 1px solid var(--line); }
.ch-label {
  grid-area: label; margin-block-end: .3rem;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
html:lang(fa) .ch-label { font-family: var(--f-body); font-size: .88rem; letter-spacing: 0; }
.ch-value {
  grid-area: value; justify-self: start;
  max-width: 100%;
  font-family: 'Saira', var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.ch-value:hover { color: var(--brand-hi); }
.ch-phone .ch-value {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: var(--brand-hi);
}
.ch-phone .ch-value:hover { color: var(--ink); }

.copy {
  grid-area: copy;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--ink-2);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.copy:hover { color: var(--ink); border-color: var(--brand-hi); }
.copy .i { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .2s ease, transform .2s ease; }
.copy .i-check { opacity: 0; transform: scale(.5); }
.copy.is-done { color: var(--brand-hi); border-color: var(--brand-hi); }
.copy.is-done .i-copy { opacity: 0; transform: scale(.5); }
.copy.is-done .i-check { opacity: 1; transform: none; }

.composer {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: background-color .5s ease;
}
.composer h3 {
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 700;
  font-size: 1.45rem; line-height: 1.3;
  margin-block-end: 1.4rem;
}
.composer fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.composer legend { padding: 0; margin-block-end: .75rem; font-size: .95rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: .35rem .9rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .92rem; line-height: 1.3;
  color: var(--ink-2); cursor: pointer; user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip span:hover { border-color: var(--brand-hi); color: var(--ink); }
.chip input:checked + span { background: var(--brand-hi); border-color: var(--brand-hi); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: .45rem; margin-block-end: 1.1rem; }
.field > span { font-size: .95rem; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.6;
  transition: border-color .2s ease, background-color .5s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: var(--brand-hi); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 1px; border-color: transparent; }
.field textarea[aria-invalid="true"] { border-color: var(--route); }

.form-err { margin: -.3rem 0 1rem; font-size: .92rem; color: var(--route); }
.composer .btn { width: 100%; }
.form-note { margin-block-start: .9rem; font-size: .86rem; color: var(--ink-3); }

/* ---------- Footer ---------- */
.foot { padding-block: 2.6rem 3rem; border-block-start: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot-word { height: 58px; }
.foot-tag, .foot-meta { font-size: .92rem; color: var(--ink-3); }
.to-top {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink-2); text-decoration: none; font-size: .92rem;
  transition: color .2s ease;
}
.to-top:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes leap {
  from { opacity: 0; transform: translate3d(0, 14%, 0) rotate(12deg) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layer { grid-template-columns: 9rem minmax(0, 1fr); }
  .layer .tags { grid-column: 2; }
  .layer-abyss { grid-template-columns: 9rem minmax(0, 1fr); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .route::before, .route::after { display: none; }
  .wp-mark { inset-block-start: -2.4rem; }
  .route { padding-block-start: 2.4rem; }
  .wp::before {
    content: ""; position: absolute;
    inset-block-start: calc(-2.4rem + 9px); inset-inline-start: 26px; inset-inline-end: -1rem;
    border-block-start: 2px dashed var(--route); opacity: .85;
  }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hero { min-height: 0; padding-block-start: 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-mark { order: -1; justify-content: flex-end; margin-block-end: -1rem; }
  .marlin { width: min(52vw, 270px); }
  .hero .chart, [dir="rtl"] .hero .chart {
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, rgba(0, 0, 0, .25) 75%);
    mask-image: linear-gradient(to bottom, #000 25%, rgba(0, 0, 0, .25) 75%);
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > .eyebrow { margin-block-start: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-word { height: 38px; }
  .is-scrolled .brand-word { height: 34px; }
  .topbar { gap: .75rem; padding-block: 12px; }
  .lang-switch button { min-width: 34px; padding: 0 .4rem; }
  .theme-toggle { width: 38px; height: 38px; }

  .actions .btn { flex: 1 1 100%; }
  .hero-foot .graduation { display: none; }
  .hero-foot { justify-content: space-between; }

  .column { padding-inline-start: 22px; }
  .column::before { width: 6px; }
  .layer::before { inset-inline-start: -22px; width: 16px; }
  .layer, .layer-abyss { grid-template-columns: 1fr; gap: .9rem; }
  .layer .tags { grid-column: auto; }
  .layer-depth { flex-direction: row; align-items: baseline; gap: .8rem; }
  .usecases { grid-template-columns: 1fr; }

  .route { grid-template-columns: 1fr; padding-block-start: 0; padding-inline-start: 2.6rem; row-gap: 2.2rem; }
  .route::before {
    display: block;
    inset-block: 10px 0; inset-inline-start: 9px; inset-inline-end: auto;
    border-block-start: 0; border-inline-start: 2px dashed var(--route);
  }
  .wp::before { display: none; }
  .wp-mark { inset-block-start: 2px; inset-inline-start: -2.6rem; }

  .foot-grid { flex-direction: column; align-items: flex-start; }
  .to-top { margin-inline-start: 0; }
}

.foot-link { color: var(--ink-2); text-decoration: none; }
.foot-link:hover { color: var(--brand-hi); }
@media (max-width: 640px) {
  .actions .btn-ghost { flex: 1 1 auto; padding-inline: 1.05rem; }
  .ch-phone .ch-value { font-size: 1.8rem; font-stretch: 100%; white-space: nowrap; }
}
