/* =========================================================
   Linkverse — landing page styles
   Hand-written, no framework. Editorial palette and rhythm.
   ========================================================= */

:root {
  --ink:        #06070d;             /* deep near-black with a cool tilt */
  --ink-2:      #0e1119;
  --ink-3:      #161a25;
  --paper:      #eef2fb;             /* cool off-white */
  --paper-2:    #d8def0;
  --rule:       rgba(238, 242, 251, 0.12);
  --rule-2:     rgba(6, 7, 13, 0.12);
  --muted:      rgba(238, 242, 251, 0.62);
  --muted-ink:  rgba(6, 7, 13, 0.58);
  --accent:     #46c8ff;             /* logo cyan-blue */
  --accent-2:   #b86bff;             /* logo violet */
  --accent-3:   #ec4899;             /* warm highlight */
  --glow-1:     rgba(70, 200, 255, 0.18);
  --glow-2:     rgba(184, 107, 255, 0.18);
  --grad:       linear-gradient(115deg, #46c8ff 0%, #7d8eff 50%, #b86bff 100%);

  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell:  1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-sm: 4px;
  --r-md: 10px;

  --easing: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 80% -10%, rgba(70,200,255,0.10), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(184,107,255,0.08), transparent 70%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Faint film-grain noise across the whole page for depth — SVG data URI, no asset */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 2; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--easing), background .25s var(--easing), color .25s var(--easing), border-color .25s var(--easing);
  white-space: nowrap;
}
.btn--solid {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--solid::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s var(--easing);
  z-index: -1;
}
.btn--solid:hover { color: #07080d; }
.btn--solid:hover::before { opacity: 1; }
.btn--ghost {
  border-color: var(--rule);
  color: var(--paper);
  background: rgba(238,242,251,0.02);
}
.btn--ghost:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  color: var(--paper);
}
.btn--link {
  padding: 13px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
}
.btn--link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-2);
}
.btn span[aria-hidden] { transition: transform .25s var(--easing); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--easing), background .3s var(--easing);
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.brand__word {
  font-family: "Syne", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(70,200,255,0.18));
  transition: filter .25s var(--easing);
}
.brand:hover .brand__word {
  filter: drop-shadow(0 0 22px rgba(125,142,255,0.32));
}
.brand__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
  transform: translateY(-1px);
}
@media (max-width: 540px) {
  .brand__tag { display: none; }
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--easing);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .25s var(--easing);
}
.nav__links a:hover::after { right: 0; }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--paper);
  margin: 3px auto;
  transition: transform .25s var(--easing);
}

.menu {
  display: none;
  flex-direction: column;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--rule);
}
.menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .menu[data-open] { display: flex; }
  .menu[data-open] { animation: fade .2s var(--easing) both; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 0;
  overflow: hidden;
}
.hero::before {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 30% 60%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, black 0%, transparent 60%);
  pointer-events: none;
  opacity: .22;
}
/* Gradient hairline at the bottom edge of the hero — bridges hero into next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,142,255,0.5), transparent);
  pointer-events: none;
  opacity: 0.6;
}

/* Aurora orbs — soft, blurred color blobs that give the hero depth */
.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero__orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  will-change: transform;
}
.hero__orb--cyan {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(70,200,255,0.45), transparent 65%);
  top: -200px; right: -160px;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero__orb--violet {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(184,107,255,0.40), transparent 65%);
  top: 12%; left: -200px;
  animation: drift 32s ease-in-out -8s infinite alternate;
}
.hero__orb--magenta {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(236,72,153,0.22), transparent 65%);
  bottom: -160px; left: 28%;
  animation: drift 38s ease-in-out -14s infinite alternate;
  opacity: 0.28;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
}

/* Giant watermark logo behind the hero — JPG, blended into the bg */
.hero__watermark {
  position: absolute;
  right: -6%;
  top: 2%;
  width: min(62vw, 760px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.45;
  mix-blend-mode: lighten;            /* only pixels brighter than bg show — kills JPG noise */
  pointer-events: none;
  z-index: 0;
  /* Crush dark JPG noise to true black before blending */
  filter: contrast(1.35) brightness(0.92)
          drop-shadow(0 0 30px rgba(70,200,255,0.20))
          drop-shadow(0 0 70px rgba(184,107,255,0.14));
  /* Radial fade on ALL sides so the rectangular JPG edge disappears completely */
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 25%, transparent 85%);
}
@media (max-width: 820px) {
  .hero__watermark { right: -22%; top: 22%; width: 130%; opacity: 0.32; }
}

/* Brand mark images (nav + footer) — show the upper half of the logo only */
.brand__mark { flex: 0 0 auto; }
.brand__logo,
.footer__logo {
  display: block;
  object-fit: cover;
  object-position: center top;        /* upper half of the image */
  mix-blend-mode: lighten;
  border-radius: 2px;
  max-width: none;
  flex-shrink: 0;
  filter: contrast(1.25) brightness(0.95);
}
.brand__logo {
  width: 64px;
  height: 32px;                       /* 64:32 = 2:1 → exactly the upper half */
  filter: contrast(1.25) brightness(0.95)
          drop-shadow(0 0 10px rgba(70,200,255,0.30));
}
.footer__logo {
  width: 56px;
  height: 28px;
  filter: contrast(1.25) brightness(0.95)
          drop-shadow(0 0 8px rgba(70,200,255,0.20));
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero__title {
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  filter: drop-shadow(0 0 24px rgba(70,200,255,0.25));
}
.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 720px;
}
.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hero__stats div { display: flex; flex-direction: column; gap: 8px; }
.hero__stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stats dd span {
  color: var(--accent);
  margin-left: 2px;
  font-style: italic;
}

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2) 30%, transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--ink-2) 30%, transparent); }

.marquee__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding: 18px 0;
  animation: marquee 42s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  width: max-content;
}
.marquee__track span:nth-child(even) { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 24px;
  row-gap: 12px;
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 140px; height: 1px;
  background: var(--grad);
  opacity: 0.85;
}
.section-head__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-top: 12px;
  align-self: start;
}
.section-head__title {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  grid-column: 2;
}
.section-head__kicker {
  grid-column: 2;
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17px);
}

/* ---------- Services ---------- */

.services {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(70,200,255,0.06), transparent 60%),
    var(--ink);
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  transition: background .35s var(--easing);
}
.service:hover {
  background: rgba(245, 241, 234, 0.02);
}
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--accent);
  line-height: 1;
}
.service__body { display: grid; gap: 14px; max-width: 76ch; }
.service h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.service p { color: var(--muted); font-size: 16px; max-width: 60ch; }

.tag-row {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-row li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- Approach ---------- */

.approach {
  background: var(--ink);
}
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.steps li {
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  transition: background .3s var(--easing);
}
.steps li:hover { background: var(--ink-2); }
.steps h4 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.steps h4 span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.steps p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 15px;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.case {
  background: var(--ink);
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  gap: 18px;
  align-content: start;
  transition: background .35s var(--easing);
}
.case:hover { background: var(--ink-2); }
.case__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 12px;
}
.case h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 26ch;
}
.case p { color: var(--muted); font-size: 15px; max-width: 48ch; }
.case__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.case__stats div { display: grid; gap: 4px; }
.case__stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--paper);
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured case (Dayplanner) ---------- */

.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  margin-bottom: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
}
.featured__body {
  padding: clamp(28px, 3.6vw, 52px);
  display: grid;
  gap: 22px;
  align-content: start;
}
.featured__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.featured__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(70,200,255,0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(70,200,255,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(70,200,255,0.04); }
}
@media (prefers-reduced-motion: reduce) {
  .featured__eyebrow .dot { animation: none; }
}
.featured__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.featured__title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.featured__lede {
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17px);
}
.featured__list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
}
.featured__list li {
  position: relative;
  padding-left: 22px;
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 64ch;
}
.featured__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 12px; height: 1px;
  background: var(--accent);
}
.featured__list code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 5px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--paper);
}
.featured__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.featured__cta .mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.featured__visual {
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(184,107,255,0.10), transparent 70%),
    var(--ink);
  border-left: 1px solid var(--rule);
  display: grid;
  place-items: center;
  padding: clamp(28px, 3vw, 48px);
}

/* Telegram window mock */
.tgwin {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(125,142,255,0.18),
    0 0 40px -10px rgba(70,200,255,0.18);
  /* Gradient border via dual-background trick */
  background:
    linear-gradient(#16181d, #16181d) padding-box,
    linear-gradient(140deg, rgba(70,200,255,0.5), rgba(184,107,255,0.4) 60%, transparent 100%) border-box;
  border: 1px solid transparent;
}
.tgwin__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,0.02);
}
.tgwin__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 0 18px rgba(125,142,255,0.45);
}
.tgwin__name { font-size: 13.5px; color: var(--paper); font-weight: 500; line-height: 1.2; }
.tgwin__sub  { font-size: 11.5px; color: var(--muted); }
.tgwin__menu { display: inline-flex; flex-direction: column; gap: 3px; }
.tgwin__menu span { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.tgwin__body {
  padding: 16px 14px 18px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(70,200,255,0.06), transparent 50%);
}
.bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble--me {
  justify-self: end;
  background: #2b6ea3;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--bot {
  justify-self: start;
  background: #1f2229;
  color: var(--paper);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}
.bubble--small { font-size: 12px; color: var(--muted); }
.bubble strong { color: var(--accent-2); font-weight: 500; }

.tgwin__task {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,0.015);
}
.tgwin__task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tgwin__task-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tgwin__task-title {
  font-size: 14px;
  color: var(--paper);
  font-weight: 500;
}
.tgwin__chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}
.tgwin__chip--accent { color: var(--accent); border-color: rgba(184,107,255,0.45); }

@media (max-width: 880px) {
  .featured { grid-template-columns: 1fr; }
  .featured__visual { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Capability tiles ---------- */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cap {
  background: var(--ink);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: background .35s var(--easing);
}
.cap:hover { background: var(--ink-2); }
.cap__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.cap h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.cap p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 38ch;
}
.cap .tag-row { margin-top: 8px; }

@media (max-width: 880px) {
  .caps-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */

.quote {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--paper);
  color: var(--ink);
}
.quote blockquote {
  margin: 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.quote blockquote p span {
  color: var(--accent);
  font-style: italic;
  margin: 0 4px;
}
.quote blockquote footer {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  padding-bottom: clamp(80px, 9vw, 140px);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.contact__intro h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 18px;
  max-width: 14ch;
}
.contact__intro > p {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 36px;
}
.contact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact__details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.contact__details li > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__details a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s var(--easing), color .2s var(--easing);
}
.contact__details a:hover { color: var(--accent-2); border-bottom-color: var(--accent); }
.contact__details p { color: var(--muted); margin: 0; }

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__opt { color: rgba(245,241,234,0.4); text-transform: none; letter-spacing: normal; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color .25s var(--easing);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.contact__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.contact__privacy {
  color: var(--muted);
  font-size: 13px;
  max-width: 38ch;
  margin: 0;
  transition: color .25s var(--easing);
}
.contact__privacy.is-success { color: #5dd3a8; }
.contact__privacy.is-error   { color: #ec4899; }

/* Honeypot — visually & a11y-hidden, but not display:none (some bots skip those) */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 880px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  background: var(--ink);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--serif);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--easing);
}
.footer__links a:hover { color: var(--paper); }
.footer__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Reveal-on-scroll (subtle) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--easing), transform .7s var(--easing);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
