/*
  İHM Teknoloji
  Type:  Jost (geometric, matches the logo mark) for wordmark + display.
         Geist for UI and body copy. Both self-hosted variable fonts.
  Color: brand cyan #00ADEE. Light and dark are both first-class.
  Motion: compositor-only, interruptible, reduced-motion aware.
*/

/* ============================================================
   FONTS  (self-hosted, no CDN)
   ============================================================ */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  color-scheme: light;

  --bg:      #ffffff;
  --bg-2:    #f4f6f8;
  --surface: #ffffff;
  --panel:   #eef2f5;

  --line:    rgba(11, 13, 15, 0.10);
  --line-2:  rgba(11, 13, 15, 0.18);
  --line-3:  rgba(11, 13, 15, 0.30);

  --txt:     #0b0d0f;
  --txt-2:   #55606b;
  --txt-3:   #5f6b76;

  --brand:   #00adee;             /* logo mark only, never small text */
  --acc:     #0176a8;             /* text-safe accent (5.05:1 on white) */
  --acc-ink: #ffffff;             /* label on an accent fill */
  --acc-soft: rgba(0, 173, 238, 0.12);
  --acc-glow: rgba(0, 173, 238, 0.16);

  --particle: 1, 118, 168;        /* canvas ink, read by JS */
  --shadow:   14, 22, 30;

  --glass:      rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.9);

  --warn: #b3261e;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --nav-h: 66px;
  --container: 1240px;

  --display: 'Jost', 'Century Gothic', 'Futura', system-ui, sans-serif;
  --ui: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* springy but never bouncy: Apple's critically-damped default feel */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:      #0a0c0e;
    --bg-2:    #101316;
    --surface: #12161a;
    --panel:   #161b20;
    --line:    rgba(255, 255, 255, 0.09);
    --line-2:  rgba(255, 255, 255, 0.16);
    --line-3:  rgba(255, 255, 255, 0.28);
    --txt:     #f2f5f7;
    --txt-2:   #a8b3ba;
    --txt-3:   #7d8a93;
    --acc:     #00adee;
    --acc-ink: #04121a;
    --acc-soft: rgba(0, 173, 238, 0.14);
    --acc-glow: rgba(0, 173, 238, 0.20);
    --particle: 0, 173, 238;
    --shadow:  0, 0, 0;
    --glass:      rgba(10, 12, 14, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.10);
    --warn: #ff8a6b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:      #0a0c0e;
  --bg-2:    #101316;
  --surface: #12161a;
  --panel:   #161b20;
  --line:    rgba(255, 255, 255, 0.09);
  --line-2:  rgba(255, 255, 255, 0.16);
  --line-3:  rgba(255, 255, 255, 0.28);
  --txt:     #f2f5f7;
  --txt-2:   #a8b3ba;
  --txt-3:   #7d8a93;
  --acc:     #00adee;
  --acc-ink: #04121a;
  --acc-soft: rgba(0, 173, 238, 0.14);
  --acc-glow: rgba(0, 173, 238, 0.20);
  --particle: 0, 173, 238;
  --shadow:  0, 0, 0;
  --glass:      rgba(10, 12, 14, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.10);
  --warn: #ff8a6b;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* ease the light/dark swap: no abrupt brightness jump */
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 700px) { .container { padding-inline: 2.25rem; } }

section { padding-block: 4.5rem; position: relative; }
@media (min-width: 1024px) { section { padding-block: 7.5rem; } }

/* ============================================================
   TYPE  — tracking is size-specific, leading tightens as size grows
   ============================================================ */
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h3, h4 {
  font-family: var(--ui);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-size: 1.1rem; }

p { color: var(--txt-2); max-width: 64ch; }
h1 + p, h2 + p, h3 + p { margin-top: 0.9rem; }

.lede {
  font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--txt-2);
  max-width: 50ch;
}

/* small caps label: positive tracking, as small type needs */
.eyebrow {
  display: block;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.15rem;
}

.sec-head { max-width: 680px; margin-bottom: 3.25rem; }
.sec-head p { margin-top: 1.05rem; }

.hl {
  color: var(--acc);
  background-image: linear-gradient(var(--acc), var(--acc));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 2px;
  padding-bottom: 0.05em;
}
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: sweepIn 0.9s var(--ease-out) 0.8s forwards; }
}
@keyframes sweepIn { to { background-size: 100% 2px; } }

/* ============================================================
   HEADER  — translucent material, content scrolls under
   ============================================================ */
.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  will-change: transform;
}

/* logo büyüdüğü için başlık yüksekliği ekran genişliğiyle birlikte artar */
@media (min-width: 380px)  { :root { --nav-h: 74px; } }
@media (min-width: 1060px) { :root { --nav-h: 88px; } }

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 55;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
/* scroll edge: a soft fade, not a hard 1px rule */
.hdr::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 18px;
  background: linear-gradient(to bottom, var(--glass), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.hdr.stuck::after { opacity: 1; }
.hdr.stuck { box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; }

@media (prefers-reduced-transparency: reduce) {
  .hdr { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---- logotype: chevrons + İHM wordmark (logodan alınan harf formları) + TEKNOLOJİ ---- */
.logo {
  --logo-h: 26px;                 /* chevron ve İHM harflerinin ortak yüksekliği */
  display: flex;
  align-items: flex-start;
  gap: calc(var(--logo-h) * 0.3);
  min-width: 0;
}
.logo-mark {
  width: calc(var(--logo-h) * 1.433);
  height: var(--logo-h);
  color: var(--brand);
  flex-shrink: 0;
  overflow: visible;
}
.logo-mark path { transition: transform 0.55s var(--ease), opacity 0.4s ease; }
.logo:hover .logo-mark path:nth-child(1) { transform: translateX(28px); opacity: 0.3; }
.logo:hover .logo-mark path:nth-child(2) { transform: translateX(14px); opacity: 0.65; }
.logo:hover .logo-mark path:nth-child(3) { transform: translateX(0); }

.logo-txt { display: block; min-width: 0; }
.logo-word {
  display: block;
  width: calc(var(--logo-h) * 3.043);
  height: var(--logo-h);
  color: var(--txt);
}
/* harfler arası boşluk justify ile İHM genişliğine yayılır */
.logo-sub {
  display: block;
  margin-top: calc(var(--logo-h) * 0.18);
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(var(--logo-h) * 0.34);
  line-height: 1;
  color: var(--acc);
  text-align: justify;
  text-align-last: justify;
}
@media (min-width: 380px)  { .logo { --logo-h: 30px; } }
@media (min-width: 1060px) { .logo { --logo-h: 36px; } }
/* ---- nav ---- */
.nav { display: none; align-items: center; gap: 0.15rem; }
.nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: -0.003em;
  color: var(--txt-2);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-s);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav a:hover { color: var(--txt); background: var(--acc-soft); }
.nav a[aria-current="page"] { color: var(--txt); font-weight: 550; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--acc);
  transform: translateX(-50%);
}

.hdr-tools { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.hdr .btn-cta { display: none; }

/* ---- icon buttons (theme toggle, burger) ---- */
.iconbtn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--txt);
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.25s ease, background-color 0.25s ease;
}
.iconbtn:hover { border-color: var(--line-3); }
.iconbtn:active { transform: scale(0.92); }
.iconbtn .ic { width: 1.05rem; height: 1.05rem; }

/* theme toggle: sun and moon cross-fade + rotate */
.theme-t { position: relative; overflow: hidden; }
.theme-t .ic {
  position: absolute;
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
}
.theme-t .i-sun  { opacity: 0; transform: rotate(-70deg) scale(0.5); }
.theme-t .i-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-t .i-sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-t .i-moon { opacity: 0; transform: rotate(70deg) scale(0.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-t .i-sun  { opacity: 1; transform: rotate(0) scale(1); }
  :root:not([data-theme="light"]) .theme-t .i-moon { opacity: 0; transform: rotate(70deg) scale(0.5); }
}

/* desktop switch: placed after .iconbtn so these win the cascade */
@media (min-width: 1100px) {
  .nav { display: flex; }
  .hdr .btn-cta { display: inline-flex; }
  .hdr .burger { display: none; }
}

.burger { position: relative; }
.burger i {
  position: absolute;
  width: 15px; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.2s ease;
}
.burger i:nth-child(1) { transform: translateY(-4.5px); }
.burger i:nth-child(3) { transform: translateY(4.5px); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }

/* ---- mobile drawer ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: var(--bg);
  padding: calc(var(--nav-h) + 1.75rem) 1.25rem 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer li { border-bottom: 1px solid var(--line); overflow: hidden; }
.drawer li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0.15rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease), color 0.2s ease;
}
.drawer.open li a { transform: translateY(0); transition-delay: calc(var(--i) * 40ms + 80ms); }
.drawer li a b {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--acc);
}
.drawer li a[aria-current="page"] { color: var(--acc); }
.drawer .btn { margin-top: 1.85rem; width: 100%; justify-content: center; }
.drawer-foot {
  margin-top: 2.25rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--txt-2);
}
.drawer-foot a:hover { color: var(--acc); }
@media (min-width: 1100px) { .drawer { display: none; } }
body.locked { overflow: hidden; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.006em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.3s ease,
              border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn:active { transform: scale(0.97); }   /* feedback on press, instantly */
.btn .ic { width: 0.95rem; height: 0.95rem; transition: transform 0.4s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

.btn-1 {
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.16), 0 6px 18px var(--acc-glow);
}
.btn-1:hover { box-shadow: 0 2px 6px rgba(var(--shadow), 0.2), 0 12px 30px var(--acc-glow); }

.btn-2 {
  border: 1px solid var(--line-2);
  color: var(--txt);
  background: var(--surface);
}
.btn-2:hover { border-color: var(--line-3); background: var(--panel); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: var(--nav-h) 0;
  overflow: hidden;
  background: var(--bg);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 70% at 85% 5%, rgba(0, 173, 238, 0.20), transparent 60%),
    radial-gradient(ellipse 65% 65% at 15% 92%, rgba(0, 173, 238, 0.15), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(0, 173, 238, 0.10), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 98%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-grid {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-grid > div:first-child {
  flex: 1;
  min-width: 0;
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .hero-grid > div:first-child { padding: 4rem 2rem 4rem 0; }
}

.hero h1 {
  margin: 0 0 1rem 0;
  color: var(--txt);
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: 16ch;
}
.hero h1 .hl { background-size: 100% 2.4px; }

.hero .eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
}

.hero .lede {
  margin: 0 0 2rem 0;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.1rem);
  line-height: 1.68;
  color: var(--txt-2);
  max-width: 50ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.hero-shot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
@media (min-width: 1024px) {
  .hero-shot { min-height: 600px; }
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 2px 8px rgba(var(--shadow), 0.10),
    0 12px 36px rgba(var(--shadow), 0.18),
    0 36px 100px rgba(var(--shadow), 0.28);
  border: 1px solid var(--line-2);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.14), transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.8s var(--ease-out) forwards;
  }
  .rise.d1 { animation-delay: 0.1s; }
  .rise.d2 { animation-delay: 0.18s; }
  .rise.d3 { animation-delay: 0.26s; }
  .rise.d4 { animation-delay: 0.34s; }

  .hero-shot {
    opacity: 0;
    animation: photoEnter 1s var(--ease-out) 0.2s forwards;
  }

  .hero-chip {
    opacity: 0;
    animation: chipSlide 0.7s var(--ease-out) 0.55s forwards;
  }
}

@keyframes rise { to { opacity: 1; transform: none; } }

@keyframes photoEnter {
  0% { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes chipSlide {
  0% { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---- hero topology: endpoints, core switch, security, all on one fabric ---- */
.topo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 450px;
  width: 100%;
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--bg-2);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(var(--shadow), 0.10);
}
.topo svg { width: 100%; height: 100%; }
.tp-link line { stroke: var(--line-3); stroke-width: 1.25; }
.tp-node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.25; }
.tp-lbl text {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  fill: var(--txt-2);
  text-anchor: middle;
}
.tp-core { fill: var(--acc); }
.tp-core-lbl {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  fill: var(--acc-ink);
  text-anchor: middle;
  font-weight: 600;
}
.tp-pulse {
  fill: none;
  stroke: var(--acc);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.tp-dot { fill: var(--acc); opacity: 0; }
.topo-tick { position: absolute; width: 12px; height: 12px; border: 1px solid var(--acc); opacity: 0.65; }
.topo-tick.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.topo-tick.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.topo-tick.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.topo-tick.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .tp-pulse { animation: ringOut 3.6s ease-out infinite; }
  .tp-pulse.p2 { animation-delay: 1.8s; }
  .tp-dot { animation: 3.2s linear infinite; }
  .tp-dot.d1 { animation-name: run1; }
  .tp-dot.d2 { animation-name: run2; animation-delay: 0.8s; }
  .tp-dot.d3 { animation-name: run3; animation-delay: 1.6s; }
  .tp-dot.d4 { animation-name: run4; animation-delay: 2.4s; }
}
@keyframes ringOut {
  0%        { opacity: 0.6; transform: scale(0.3); }
  80%, 100% { opacity: 0; transform: scale(1.9); }
}
/* packets ride the links between the core and each endpoint */
@keyframes run1 {
  0%   { opacity: 0; transform: translate(150px, 150px); }
  12%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(66px, 70px); }
  85%, 100% { opacity: 0; transform: translate(66px, 70px); }
}
@keyframes run2 {
  0%   { opacity: 0; transform: translate(234px, 70px); }
  12%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(150px, 150px); }
  85%, 100% { opacity: 0; transform: translate(150px, 150px); }
}
@keyframes run3 {
  0%   { opacity: 0; transform: translate(150px, 150px); }
  12%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(66px, 230px); }
  85%, 100% { opacity: 0; transform: translate(66px, 230px); }
}
@keyframes run4 {
  0%   { opacity: 0; transform: translate(234px, 230px); }
  12%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(150px, 150px); }
  85%, 100% { opacity: 0; transform: translate(150px, 150px); }
}

/* ============================================================
   PARTNER MARQUEE
   ============================================================ */
.strip { border-block: 1px solid var(--line); padding-block: 2.5rem; background: var(--bg-2); overflow: hidden; }
.strip-lbl {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  text-align: center;
  margin-bottom: 1.6rem;
}
.marquee {
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-run {
  display: flex; align-items: center; flex-shrink: 0;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-run { animation: run 30s linear infinite; }
  .marquee:hover .marquee-run { animation-play-state: paused; }
}
@keyframes run { to { transform: translateX(-100%); } }
.marquee img {
  height: 21px; width: auto;
  filter: brightness(0) invert(0);
  opacity: 0.42;
  transition: opacity 0.3s ease;
}
:root[data-theme="dark"] .marquee img { filter: brightness(0) invert(1); opacity: 0.62; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marquee img { filter: brightness(0) invert(1); opacity: 0.62; }
}
.marquee img:hover { opacity: 1; }
.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--txt-3);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.mark:hover { color: var(--txt); }

/* ============================================================
   SERVICE ROWS
   ============================================================ */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1.4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: padding-inline 0.5s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 -1.25rem;
  z-index: -1;
  border-radius: var(--r-m);
  background: var(--panel);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.svc:hover::before, .svc:focus-visible::before { opacity: 1; }
@media (min-width: 860px) {
  .svc { padding-block: 2.3rem; }
  .svc:hover, .svc:focus-visible { padding-inline: 1.4rem; }
  .svc::before { inset: 0; }
}
.svc-n {
  align-self: start;
  padding-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  transition: color 0.35s ease;
}
.svc:hover .svc-n { color: var(--acc); }

/* row thumbnail: photo pushes in slightly and warms up on hover */
.svc-shot {
  width: 118px;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-s);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.svc-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}
.svc:hover .svc-shot img { transform: scale(1.07); filter: saturate(1.05); }
.svc-t {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.026em;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.svc:hover .svc-t { color: var(--acc); }
@media (min-width: 860px) { .svc:hover .svc-t { transform: translateX(5px); } }
.svc-d { display: block; margin-top: 0.55rem; max-width: 58ch; font-size: 0.94rem; color: var(--txt-2); }
.svc-k {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.svc-go {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  transition: background-color 0.4s var(--ease), border-color 0.35s ease,
              color 0.35s ease, transform 0.5s var(--ease);
}
.svc-go .ic { width: 1rem; height: 1rem; }
.svc:hover .svc-go {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--acc-ink);
  transform: rotate(-45deg);
}
@media (max-width: 620px) {
  /* drop the index, keep the photo: it carries more meaning at this size */
  .svc { grid-template-columns: auto 1fr; }
  .svc-n { display: none; }
  .svc-shot { width: 76px; align-self: start; }
  .svc-go { grid-column: 2; justify-self: start; width: 38px; height: 38px; }
}

/* ============================================================
   SPOTLIGHT CARDS
   ============================================================ */
.cards { display: grid; gap: 1.15rem; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 2.2rem 1.85rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--acc-glow), transparent 62%);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 48px rgba(var(--shadow), 0.1); }
.card:hover::before { opacity: 1; }
.card-i {
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  border-radius: var(--r-m);
  background: var(--acc-soft);
  color: var(--acc);
  margin-bottom: 1.5rem;
  transition: transform 0.55s var(--ease);
}
.card:hover .card-i { transform: translateY(-3px) scale(1.04); }
.card-i .ic { width: 1.3rem; height: 1.3rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.93rem; }

/* ============================================================
   PROCESS FLOW
   ============================================================ */
.flow { position: relative; }
.flow-line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); display: none; border-radius: 2px; }
.flow-line b { position: absolute; inset: 0; display: block; background: var(--acc); border-radius: 2px; transform: scaleX(0); transform-origin: left; }
.flow.seen .flow-line b { transform: scaleX(1); transition: transform 1.6s var(--ease) 0.15s; }
@media (prefers-reduced-motion: reduce) { .flow.seen .flow-line b { transition: none; } }
.flow-steps { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .flow-line { display: block; }
  .flow-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.step { position: relative; }
@media (min-width: 900px) { .step { padding-top: 3rem; } }
.step-dot {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--txt-3);
  margin-bottom: 1rem;
  transition: border-color 0.5s var(--ease), color 0.5s ease, background-color 0.5s ease;
}
@media (min-width: 900px) { .step-dot { position: absolute; top: 0; left: 0; margin: 0; } }
.flow.seen .step-dot { border-color: var(--acc); color: var(--acc); }
.flow.seen .step:first-child .step-dot { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.91rem; }

/* ============================================================
   TILES
   ============================================================ */
.tiles { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile {
  position: relative;
  padding: 1.6rem 1.15rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.tile::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 14px 34px rgba(var(--shadow), 0.09); }
.tile:hover::after { transform: scaleX(1); }
.tile .ic { width: 1.4rem; height: 1.4rem; color: var(--acc); margin-bottom: 1rem; }
.tile b { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.008em; }

/* ============================================================
   CTA SLAB
   ============================================================ */
.slab {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(2.4rem, 5vw, 4.5rem);
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 820px) { .slab { grid-template-columns: 1.5fr auto; gap: 3rem; } }
.slab::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(620px circle at var(--mx, 22%) var(--my, 50%), var(--acc-glow), transparent 58%);
  pointer-events: none;
}
.slab > * { position: relative; }
.slab h2 { margin-bottom: 0.85rem; }
.slab-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.phero {
  position: relative;
  padding-block: calc(var(--nav-h) + 3.75rem) 3.25rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 88% 0%, var(--acc-glow), transparent 64%);
  pointer-events: none;
}
.phero .container { position: relative; }
.crumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--txt-3);
  margin-bottom: 1.7rem;
}
.crumb a { transition: color 0.2s ease; }
.crumb a:hover { color: var(--acc); }
.crumb .ic { width: 0.7rem; height: 0.7rem; }
.phero h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.phero .lede { max-width: 56ch; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.fgrid { display: grid; gap: 1.35rem; }
@media (min-width: 760px)  { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
.f {
  position: relative;
  padding: 2.6rem 2.2rem 2.8rem;
  border: 1px solid rgba(0, 173, 238, 0.15);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 45% 55% at 75% 15%, rgba(0, 173, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 25% 85%, rgba(0, 173, 238, 0.12), transparent 60%),
    var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.35s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  box-shadow:
    0 2px 8px rgba(var(--shadow), 0.08),
    0 8px 24px rgba(var(--shadow), 0.12);
}

[data-theme="dark"] .f {
  background:
    radial-gradient(ellipse 90% 90% at 100% -5%, rgba(0, 173, 238, 0.55), transparent 50%),
    radial-gradient(ellipse 80% 80% at -5% 105%, rgba(0, 173, 238, 0.40), transparent 65%),
    linear-gradient(135deg, #1a2332 0%, #141820 100%);
  border-color: rgba(0, 173, 238, 0.20);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 12px 32px rgba(0, 173, 238, 0.08);
}

.f::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(0, 173, 238, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.f:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 173, 238, 0.35);
  box-shadow:
    0 4px 12px rgba(var(--shadow), 0.10),
    0 16px 40px rgba(0, 173, 238, 0.12),
    0 28px 72px rgba(var(--shadow), 0.16);
  background:
    radial-gradient(ellipse 45% 55% at 75% 15%, rgba(0, 173, 238, 0.25), transparent 55%),
    radial-gradient(ellipse 55% 45% at 25% 85%, rgba(0, 173, 238, 0.18), transparent 60%),
    var(--surface);
}

[data-theme="dark"] .f:hover {
  border-color: rgba(0, 173, 238, 0.40);
  box-shadow:
    0 8px 24px rgba(0, 173, 238, 0.25),
    0 20px 48px rgba(0, 173, 238, 0.12);
  background:
    radial-gradient(ellipse 90% 90% at 100% -5%, rgba(0, 173, 238, 0.65), transparent 50%),
    radial-gradient(ellipse 80% 80% at -5% 105%, rgba(0, 173, 238, 0.50), transparent 65%),
    linear-gradient(135deg, #1a2332 0%, #141820 100%);
}

.f:hover::before { opacity: 1; }

/* soyut arka plan katmanı: logodan türeyen chevron, yay ve çizgi kompozisyonları */
.f {
  --f-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg fill='black'%3E%3Cpath d='M28,52 L64,52 L98,112 L64,172 L28,172 L62,112 Z'/%3E%3Cpath d='M78,52 L114,52 L148,112 L114,172 L78,172 L112,112 Z'/%3E%3Cpath d='M128,52 L164,52 L198,112 L164,172 L128,172 L162,112 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='black' stroke-width='5'%3E%3Cpath d='M18,206 H222'/%3E%3Cpath d='M18,226 H140'/%3E%3Cpath d='M18,18 H96'/%3E%3C/g%3E%3C/svg%3E");
}
.f:nth-child(3n+2) { --f-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='black' stroke-width='6'%3E%3Cpath d='M212,228 A104,104 0 0 0 108,124'/%3E%3Cpath d='M212,228 A150,150 0 0 0 62,78'/%3E%3Cpath d='M212,228 A196,196 0 0 0 16,32'/%3E%3C/g%3E%3Ccircle cx='212' cy='228' r='13' fill='black'/%3E%3Cpath d='M150,24 L178,24 L204,70 L178,116 L150,116 L176,70 Z' fill='black'/%3E%3C/svg%3E"); }
.f:nth-child(3n)   { --f-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='black' stroke-width='5'%3E%3Cpath d='M8,150 L110,48'/%3E%3Cpath d='M8,192 L152,48'/%3E%3Cpath d='M8,234 L194,48'/%3E%3Cpath d='M50,234 L236,48'/%3E%3Cpath d='M92,234 L236,90'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='34' cy='36' r='7'/%3E%3Ccircle cx='72' cy='36' r='7'/%3E%3Ccircle cx='110' cy='36' r='7'/%3E%3Ccircle cx='34' cy='74' r='7'/%3E%3Ccircle cx='210' cy='206' r='7'/%3E%3C/g%3E%3C/svg%3E"); }
.f::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -14%;
  width: 74%;
  aspect-ratio: 1;
  background: var(--brand);
  -webkit-mask: var(--f-motif) no-repeat center / contain;
  mask: var(--f-motif) no-repeat center / contain;
  opacity: 0.07;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.f:hover::after { opacity: 0.14; transform: translate(-8px, -8px) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .f:hover::after { transform: none; } }
.f > * { position: relative; z-index: 1; }
.f .ic {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--acc);
  margin-bottom: 1.45rem;
  transition: transform 0.5s var(--ease);
}
.f:hover .ic { transform: translateY(-4px) scale(1.08); }
.f h3 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.f p { font-size: 0.92rem; }
.f-n {
  position: absolute;
  top: 2.2rem; right: 1.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--acc);
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

/* ============================================================
   SPLIT
   ============================================================ */
.split { display: grid; gap: 2.8rem; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .split.rev > :first-child { order: 2; } }
.checks { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.9rem; }
.checks li { display: flex; gap: 0.7rem; font-size: 0.94rem; color: var(--txt-2); }
.checks .ic { width: 1.05rem; height: 1.05rem; color: var(--acc); flex-shrink: 0; margin-top: 0.28rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--txt-2);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.chip:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }

/* Premium glass chip on hero image */
.hero-chip {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  padding: 1.1rem 1.5rem;
  background: rgba(var(--shadow), 0.68);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
@media (min-width: 1100px) {
  .hero-chip {
    bottom: 2rem;
    left: 2rem;
    right: auto;
  }
}
.hero-chip svg.chip-mark {
  width: 27px;
  height: 19px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.hero-chip span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.25;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* photo frame: real imagery, framed the same way the schematic panels were */
.shot {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(var(--shadow), 0.14);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
/* a hairline of light on the top edge, so the frame reads as a real surface */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .shot img { transform: scale(1.06); }
  .js [data-r].in .shot img,
  .js .shot[data-r].in img { transform: scale(1); }
}

/* ============================================================
   VALUES
   ============================================================ */
.vals { border-top: 1px solid var(--line); }
.val {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
@media (min-width: 860px) { .val { grid-template-columns: 5rem 1fr; } .val:hover { padding-left: 1.2rem; } }
.val-n { font-family: var(--mono); font-size: 0.72rem; color: var(--acc); letter-spacing: 0.1em; padding-top: 0.4rem; }
.val h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.cgrid { display: grid; gap: 3rem; }
@media (min-width: 940px) { .cgrid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.cinfo { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2.25rem; }
.cline { display: flex; gap: 1rem; }
.cline .ic { width: 1.2rem; height: 1.2rem; color: var(--acc); flex-shrink: 0; margin-top: 0.25rem; }
.cline h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 0.45rem;
}
.cline p, .cline a { font-size: 0.96rem; color: var(--txt); }
.cline a { transition: color 0.2s ease; }
.cline a:hover { color: var(--acc); }

.socials { display: flex; gap: 0.5rem; margin-top: 2.25rem; }
.soc {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--txt-2);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}
.soc .ic { width: 1.1rem; height: 1.1rem; }
.soc:hover { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); transform: translateY(-3px); }

.form { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: 0 18px 50px rgba(var(--shadow), 0.07); }
.fld { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.fld label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-2); }
.fld label i { font-style: normal; font-weight: 400; color: var(--txt-3); }
.fld input, .fld select, .fld textarea {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--txt);
  width: 100%;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--txt-3); }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--acc);
  outline: none;
  box-shadow: 0 0 0 4px var(--acc-soft);
}
.fld textarea { resize: vertical; min-height: 118px; }
.err { font-size: 0.78rem; color: var(--warn); display: none; }
.fld.bad input, .fld.bad textarea { border-color: var(--warn); }
.fld.bad .err { display: block; }
.frow { display: grid; gap: 1.3rem; }
@media (min-width: 560px) { .frow.two { grid-template-columns: 1fr 1fr; } }
.fnote { font-size: 0.79rem; color: var(--txt-3); margin-top: 0.9rem; line-height: 1.55; }
.fstat { margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: var(--r-s); font-size: 0.87rem; display: none; border: 1px solid; }
.fstat.on { display: block; }
.fstat.ok, .fstat.success { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); display: block; }
.fstat.no, .fstat.error { border-color: var(--warn); background: rgba(179, 38, 30, 0.08); color: var(--warn); display: block; }
.fstat:not(.ok):not(.no):not(.success):not(.error) { display: none; }

.mapbox { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); }
.mapbox iframe { width: 100%; height: 100%; border: 0; }
:root[data-theme="dark"] .mapbox { filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mapbox { filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9); }
}

.hours { width: 100%; margin-top: 0.6rem; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours td { padding: 0.6rem 1rem 0.6rem 0; font-size: 0.9rem; color: var(--txt-2); }
.hours td:last-child { padding-right: 0; text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 0.8rem; color: var(--txt); }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr { border-top: 1px solid var(--line); padding-block: 4.5rem 2rem; background: var(--bg-2); }
.ftr-grid { display: grid; gap: 2.75rem; }
@media (min-width: 760px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.ftr .logo { --logo-h: 40px; }
.ftr-brand p { font-size: 0.9rem; margin-top: 1.2rem; max-width: 34ch; }
.ftr-col h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 1.2rem;
}
.ftr-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.ftr-col a, .ftr-col p { font-size: 0.9rem; color: var(--txt-2); }
.ftr-col a { transition: color 0.2s ease, padding-left 0.3s var(--ease); }
.ftr-col a:hover { color: var(--acc); padding-left: 4px; }
.ftr-btm {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--txt-3);
}

/* ============================================================
   SCROLL TO TOP  — progress ring that fills as you read
   ============================================================ */
.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  z-index: 45;
  color: var(--txt);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 24px rgba(var(--shadow), 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease),
              visibility 0.45s, color 0.3s ease, border-color 0.3s ease;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: var(--acc); border-color: var(--acc); }
.totop:active { transform: scale(0.92); }
.totop .ic { width: 1.05rem; height: 1.05rem; position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.totop:hover .ic { transform: translateY(-2px); }
.totop svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.totop .ring-bg { fill: none; stroke: var(--line); stroke-width: 2; }
.totop .ring-fg {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
}
@media (prefers-reduced-transparency: reduce) {
  .totop { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   PRELOAD SCREEN
   ============================================================ */
.preload {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preload.done {
  opacity: 0;
  visibility: hidden;
}

.preload-mark {
  width: 150px;
  height: 105px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preload-mark svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.preload-mark path {
  fill: var(--brand);
  opacity: 0;
  transform-origin: 149px 104px;
}

.preload-mark path:nth-child(1) {
  animation: chevronWave 0.7s var(--ease) infinite;
}

.preload-mark path:nth-child(2) {
  animation: chevronWave 0.7s var(--ease) 0.1s infinite;
}

.preload-mark path:nth-child(3) {
  animation: chevronWave 0.7s var(--ease) 0.2s infinite;
}

@keyframes chevronWave {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  35% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preload-mark path {
    animation: none !important;
    opacity: 0.8;
  }
}

/* ============================================================
   REVEAL  (scoped to .js so content is never hidden without JS)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 65ms);
  }
  .js [data-r].in { opacity: 1; transform: none; }
  .js .f[data-r] {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms);
  }
  .js .f[data-r].in { opacity: 1; transform: none; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.ic { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.alt { background: var(--bg-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute;
  top: -4rem; left: 1rem;
  background: var(--acc);
  color: var(--acc-ink);
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-s);
  z-index: 70;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 1rem; }

@media (prefers-contrast: more) {
  :root { --line: rgba(11,13,15,.4); --line-2: rgba(11,13,15,.55); }
  .hdr, .totop { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
