/* =====================================================================
   KINETIC: the live design. Paper ground, ink type that moves, black
   for highlights, a tabbed product showcase. Scoped to
   [data-theme="kinetic"] so the older palettes in styles.css still preview.
   ===================================================================== */
[data-theme="kinetic"] {
  --bg: #F2F1EC; --bg-deep: #E9E7E0; --surface: #FFFFFF; --surface-2: #E2DFD6;
  --line: rgba(14, 14, 16, 0.10); --line-strong: rgba(14, 14, 16, 0.22);
  --text: #0E0E10; --mist: #55555C;
  --accent: #0E0E10; --accent-deep: #2A2A2E; --on-accent: #F2F1EC; --accent-ink: #0E0E10;
  --second: #C9C8C2; --second-soft: #55555C;
  --navy: #0E0E10; --on-navy: #F2F1EC; --on-navy-soft: rgba(242, 241, 236, 0.7);
  --band: #0E0E10; --on-band: #F2F1EC; --on-band-soft: rgba(242, 241, 236, 0.72); --band-strike: #F2F1EC;
  --nav-bg: rgba(242, 241, 236, 0.82);
  --accent-wash: rgba(14, 14, 16, 0.04); --accent-wash-2: rgba(14, 14, 16, 0.08);
  --rim-mid: rgba(14, 14, 16, 0.08);
  --deep-shadow: 0 30px 60px -30px rgba(14, 14, 16, 0.28), 0 1px 0 rgba(14, 14, 16, 0.04);
  --signal-error: #C62828;
  --logo-on-ground: url("assets/brand/edgevyn-logo-dark.png");
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 16px;
  --field-a: #B4B3AD; --field-b: #0E0E10; --field-blend: normal;
}

/* type: tight, heavy, sentence case; small labels in mono */
[data-theme="kinetic"] body { font-size: 17px; }
[data-theme="kinetic"] :is(.display, .acc-name, .work-card h3, .step h3, .band-text, .fact dt, .statement) { text-transform: none; font-weight: 800; letter-spacing: -0.045em; }
[data-theme="kinetic"] .display { font-size: clamp(44px, 7.4vw, 124px); line-height: 0.9; }
[data-theme="kinetic"] .display-xl { font-size: clamp(60px, 10vw, 168px); }
[data-theme="kinetic"] .statement { font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; font-size: clamp(28px, 3.4vw, 52px); max-width: 30ch; }
[data-theme="kinetic"] .statement .w.is-edge { color: var(--accent-ink); }
[data-theme="kinetic"] :is(.nav-menu a, .hero-note, .tags li, .field > span, .needs legend, .step-out, .work-index, .foot-col .foot-head, .stack-list dt, .intro-skip) { font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; }
[data-theme="kinetic"] .nav-menu a { font-size: 13px; color: var(--mist); }
[data-theme="kinetic"] .display mark { border-radius: 0.12em; }

/* actions: ink pills that lighten on hover */
[data-theme="kinetic"] :is(.nav-cta, .block-cta) { font-family: var(--display); text-transform: none; letter-spacing: -0.01em; font-weight: 600; background: var(--text); color: var(--bg); border-radius: 999px; }
[data-theme="kinetic"] :is(.nav-cta, .block-cta):hover { background: var(--accent-deep); color: var(--bg); }
[data-theme="kinetic"] .nav-cta { padding: 11px 20px; font-size: 15px; }
[data-theme="kinetic"] .nav { border-bottom-color: transparent; }
[data-theme="kinetic"] .nav-toggle { border-radius: 999px; }

/* ---------- Hero ---------- */
[data-theme="kinetic"] .hero-k { display: block; min-height: calc(100svh - var(--nav-h)); padding: clamp(8px, 2vh, 24px) 0 0; overflow: hidden; }
/* the 3D dot wave sits behind the moving type, one screen tall */
[data-theme="kinetic"] .hero-k { position: relative; isolation: isolate; }
[data-theme="kinetic"] .hero-field { position: absolute; left: 0; top: 0; width: 100%; height: clamp(460px, 68vh, 660px); z-index: -1; opacity: 0.75; }
[data-theme="kinetic"] :is(.hero-lede, .hero-swap) { text-shadow: 0 0 3px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg); }
.marq { overflow: hidden; white-space: nowrap; line-height: 0.88; }
.marq-track { display: inline-flex; gap: 0.28em; padding-right: 0.28em; font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(60px, min(12.4vw, 17vh), 210px); animation: marq 30s linear infinite; will-change: transform; }
.marq-rev .marq-track { animation-direction: reverse; animation-duration: 36s; }
.marq .o { color: transparent; -webkit-text-stroke: clamp(1.5px, 0.14vw, 2.5px) var(--text); }
@keyframes marq { to { transform: translateX(-50%); } }
.hero-mid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; padding: clamp(18px, 3.2vh, 40px) var(--gutter) 0; }
.hero-swap { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(32px, min(4.4vw, 6.6vh), 72px); }
.swap { display: inline-grid; vertical-align: baseline; overflow: clip; overflow-clip-margin: 0.08em; height: 1.12em; color: var(--accent-ink); }
.swap > span { grid-area: 1 / 1; display: block; line-height: 1.12em; white-space: nowrap; opacity: 0; transform: translateY(100%); animation: swap 10s cubic-bezier(0.7, 0, 0.2, 1) infinite; }
.swap > span:first-child { opacity: 1; transform: none; }
.swap > span:nth-child(2) { animation-delay: 2s; } .swap > span:nth-child(3) { animation-delay: 4s; }
.swap > span:nth-child(4) { animation-delay: 6s; } .swap > span:nth-child(5) { animation-delay: 8s; }
@keyframes swap { 0% { opacity: 0; transform: translateY(100%); } 3%, 18% { opacity: 1; transform: none; } 21%, 100% { opacity: 0; transform: translateY(-100%); } }
.hero-side { display: grid; gap: 18px; justify-items: start; }
[data-theme="kinetic"] .hero-lede { color: var(--mist); font-size: 17px; line-height: 1.55; max-width: 46ch; }
[data-theme="kinetic"] .hero-side .block-cta { padding: 18px 30px; font-size: 18px; }
/* product showcase: a product list with details on the left, a smaller live screen on the right */
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(36px, 7vh, 96px) var(--gutter) clamp(48px, 8vh, 110px); }
.show-title { font-size: clamp(28px, 2.8vw, 44px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px; }
.show-tabs { display: grid; gap: 4px; }
.show-tab { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px 15px; text-align: left; font: inherit; color: var(--mist); background: transparent; border: 0; border-radius: 12px; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s; }
.show-tab:hover { color: var(--text); background: rgba(14, 14, 16, 0.04); }
.show-tab[aria-selected="true"] { background: var(--surface); color: var(--text); }
.show-tab b { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.show-tab small { font-size: 14px; color: var(--mist); white-space: nowrap; }
.show-prog { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; }
.show-tab[aria-selected="true"] .show-prog { opacity: 1; background: rgba(14, 14, 16, 0.08); }
.show-prog i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.show-tab[aria-selected="true"] .show-prog i { animation: prog var(--show-ms, 6000ms) linear forwards; }
.show.is-paused .show-tab[aria-selected="true"] .show-prog i, .show.is-live .show-tab[aria-selected="true"] .show-prog i { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.show-detail { margin-top: 22px; padding: 0 16px; display: grid; gap: 16px; justify-items: start; animation: detail-in 0.5s var(--ease); }
[data-theme="kinetic"] .show-detail[hidden] { display: none; }
@keyframes detail-in { from { opacity: 0; transform: translateY(10px); } }
.show-desc { font-size: 19px; line-height: 1.45; color: var(--text); max-width: 38ch; }
.show-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.show-feats li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.4; color: var(--text); }
.show-feats li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: inset 0 0 0 3.5px var(--bg); }
.show-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--bg); background: var(--text); text-decoration: none; padding: 12px 20px; border-radius: 999px; transition: background-color 0.2s; }
.show-open:hover { background: var(--accent-deep); }
.show-stage { perspective: 1600px; perspective-origin: 50% 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.show-frame { --tilt: 0deg; border-radius: 22px; background: var(--surface); padding: 8px; transform: rotateX(var(--tilt)); transform-origin: 50% 0; }
.show-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 10px 4px; }
.show-url { font-size: 13px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.show-live { display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 13px; font-weight: 600; color: #0B6B3A; background: #E1F3E8; padding: 4px 10px; border-radius: 999px; }
.show-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12A150; }
[data-theme="kinetic"] .show-live[hidden] { display: none; }
.show-screens { position: relative; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; background: var(--surface-2); isolation: isolate; }
.show-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transform: scale(1.05); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.show-screens img.is-on { opacity: 1; transform: none; animation: pan 14s ease-in-out infinite alternate; }
@keyframes pan { from { object-position: 50% 0; } to { object-position: 50% 100%; } }
/* the live site: rendered at desktop width and scaled to fit, fades in over its screenshot once loaded */
.show-embed { position: absolute; left: 0; top: 0; width: 1440px; border: 0; transform-origin: 0 0; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s; background: #fff; z-index: 2; }
.show-embed.is-on { opacity: 1; visibility: visible; transition: opacity 0.8s var(--ease); }
.show-loading { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-size: 13px; color: var(--bg); background: rgba(14, 14, 16, 0.82); padding: 6px 12px; border-radius: 999px; }

/* services sculpture: one 3D point cloud that reshapes per practice (viz.js); images remain the no-WebGL fallback */
.acc-viz { display: none; }
.has-viz .acc-inner > img { display: none; }
.has-viz .acc-viz { display: block; grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--surface); overflow: hidden; }
.acc-viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Sections in the kinetic world ---------- */
[data-theme="kinetic"] :is(.fact, .step, .work-item, .work-card) { border-radius: var(--r); }
[data-theme="kinetic"] .work-item { overflow: hidden; }
[data-theme="kinetic"] .work-media { border: 0; border-radius: var(--r); overflow: hidden; }
[data-theme="kinetic"] .work-card { margin: 0 0 16px 16px; }
[data-theme="kinetic"] .work-link { color: var(--accent-ink); border-bottom-color: var(--accent-ink); font-family: var(--display); text-transform: none; letter-spacing: -0.01em; }
[data-theme="kinetic"] .fact dt::before { border-radius: 2px; }
[data-theme="kinetic"] .acc { border-top-width: 1px; }
[data-theme="kinetic"] .acc-name { font-size: clamp(26px, 3.2vw, 52px); }
[data-theme="kinetic"] .acc-head:hover, [data-theme="kinetic"] .acc-item.is-open .acc-name { color: var(--accent-ink); }
[data-theme="kinetic"] .acc-icon { border-radius: 999px; }
[data-theme="kinetic"] .acc-item.is-open .acc-icon { background: var(--text); border-color: var(--text); color: var(--bg); }
[data-theme="kinetic"] :is(.acc-inner img, img.screen) { border-radius: 12px; }
[data-theme="kinetic"] .tags li { border-radius: 999px; font-size: 12px; }
[data-theme="kinetic"] .tags li:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
[data-theme="kinetic"] .step-num { -webkit-text-stroke-color: var(--text); font-family: var(--display); letter-spacing: -0.05em; }
[data-theme="kinetic"] .steps-line { border-radius: 4px; overflow: hidden; }
[data-theme="kinetic"] .steps-line span { background: var(--accent); }
[data-theme="kinetic"] .stack-list dt { color: var(--accent-ink); font-size: 13px; }
[data-theme="kinetic"] .ring span { font-family: var(--display); text-transform: none; letter-spacing: -0.03em; font-weight: 800; }
[data-theme="kinetic"] .ring span:nth-child(3n + 1) { color: var(--accent-ink); }
[data-theme="kinetic"] .ring span:nth-child(3n + 2) { color: var(--mist); }
[data-theme="kinetic"] .contact { background: var(--bg-deep); }
[data-theme="kinetic"] :is(.field input, .field textarea) { border-radius: 12px; background: var(--surface); font-family: var(--body); }
[data-theme="kinetic"] .chip span { border-radius: 999px; }
[data-theme="kinetic"] .chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
[data-theme="kinetic"] .contact-mail a, [data-theme="kinetic"] .form-status.is-ok { color: var(--accent-ink); }
[data-theme="kinetic"] .contact-form .block-cta { font-size: clamp(20px, 2vw, 28px); }
[data-theme="kinetic"] .band-text { font-weight: 800; }
[data-theme="kinetic"] .foot-col .foot-head { color: var(--second); }

@media (max-width: 900px) {
  .hero-mid { grid-template-columns: 1fr; align-items: start; }
  .marq-track { font-size: clamp(56px, 19vw, 140px); }
  [data-theme="kinetic"] .hero-k { min-height: 0; }
  .show { grid-template-columns: minmax(0, 1fr); }
  .has-viz .acc-viz { grid-column: 1; grid-row: auto; }
  .show-stage { position: static; }
  .show-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .show-tab { flex: 0 0 auto; flex-direction: column; gap: 2px; }
  .show-feats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marq-track, .swap > span, .show-prog i, .show-screens img.is-on, .show-detail { animation: none !important; }
}

/* intro film: its navy ground is baked into the video, so the whole intro layer (film, letterbox, watermark cover)
   goes through one grey-and-contrast pass, turning the navy to true black while the white wordmark stays white */
[data-theme="kinetic"] .intro { filter: grayscale(1) contrast(1.3); }

/* ---------- Ways to work with us ----------
   Default (phones, no script, reduced motion): panels stacked.
   .ways.is-h (wide screens with motion): the section pins and the track slides sideways (main.js). */
.ways { padding: clamp(100px, 14vh, 170px) 0 clamp(80px, 12vh, 140px); overflow-x: clip; }
.ways-head { margin-bottom: clamp(36px, 6vh, 64px); }
.ways-track { display: grid; gap: 20px; padding: 0 var(--gutter); }
.way { position: relative; overflow: hidden; border-radius: 28px; background: var(--surface); padding: clamp(28px, 3.4vw, 52px); min-height: 420px; display: flex; align-items: flex-end; }
.way-word { position: absolute; right: -0.04em; top: -0.12em; font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; font-size: clamp(110px, 17vw, 300px); color: transparent; -webkit-text-stroke: 1.5px rgba(14, 14, 16, 0.16); white-space: nowrap; pointer-events: none; }
.way-body { position: relative; display: grid; gap: 16px; max-width: 560px; }
.way h3 { font-family: var(--display); font-size: clamp(30px, 3.2vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.way-lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--text); max-width: 32ch; }
.way-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 6px; }
.way-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.4; }
.way-list li::before { content: ""; position: absolute; left: 0; top: 0.34em; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: inset 0 0 0 3.5px var(--surface); }
.way-fit { font-size: 15px; color: var(--mist); max-width: 46ch; }
.way-fit b { color: var(--text); font-weight: 600; }
.way-cta { background: var(--text); color: var(--bg); align-items: center; }
.way-cta .way-lede { color: rgba(242, 241, 236, 0.8); }
.way-cta .block-cta { justify-self: start; background: var(--bg); color: var(--text); padding: 16px 26px; font-size: 18px; }
.way-cta .block-cta:hover { background: #FFFFFF; color: var(--text); }
.ways-bar { display: none; }

/* pinned sideways track */
.ways.is-h { padding-block: 0; }
.ways.is-h .ways-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
.ways.is-h .ways-head { margin: 0 0 clamp(20px, 3.5vh, 40px); width: 100%; }
.ways.is-h .ways-head .display { font-size: clamp(40px, min(5.4vw, 8.5vh), 92px); white-space: nowrap; }
.ways.is-h .ways-track { display: flex; gap: 24px; width: max-content; will-change: transform; perspective: 1600px; }
.ways.is-h .way { flex: 0 0 min(72vw, 980px); height: min(54vh, 520px); min-height: 0; transform-origin: 50% 50%; }
.ways.is-h .way-cta { flex-basis: min(44vw, 560px); }
.ways.is-h .ways-bar { display: block; margin: clamp(18px, 3vh, 32px) var(--gutter) 0; height: 3px; border-radius: 3px; background: rgba(14, 14, 16, 0.1); overflow: hidden; }
.ways.is-h .ways-bar span { display: block; height: 100%; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 900px) {
  .way { min-height: 0; padding-top: 120px; }
  .way-word { font-size: clamp(90px, 28vw, 160px); }
  .way-list { grid-template-columns: 1fr; }
}
