/* Veesi v11 polish layer: typography, interaction feel, entrance rhythm.
   Loaded last; it changes no copy, layout structure or approved scroll scenes. */

/* ---------- Typeface consistency ----------
   The approved look is Helvetica Neue + Times New Roman, as on Apple devices.
   Where those are missing (Windows, Android), use matched open fonts instead of
   Arial / Noto: Inter (variable, with display optical size) and Tinos (Times
   metrics). Apple devices never download either file. The AI module used Arial
   first, so it rendered in a different face from the rest of the page. */
@font-face {
  font-family: "Veesi Sans";
  src: url("assets/fonts/veesi-sans.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Veesi Serif";
  src: url("assets/fonts/veesi-serif.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --veesi-sans: "Helvetica Neue", Helvetica, "Veesi Sans", Arial, sans-serif; font-family: var(--veesi-sans); interpolate-size: allow-keywords; }
.v-inv,
.v-inv .v-inv__eyebrow,
.veesi-ai { font-family: var(--veesi-sans); }
.v-inv .v-inv__title,
.concept-caption h3,
.identity-site-nav b,
.identity-site-story strong,
.identity-ghost b { font-family: "Times New Roman", Times, "Veesi Serif", serif; }
.screen-lead h2,
.screen-brand,
.screen-plane h3,
.veesi-ai .vai-brand,
.veesi-ai .vai-site-copy h3 { font-family: Georgia, "Times New Roman", "Veesi Serif", serif; }
h1, h2, h3, .section-heading { font-kerning: normal; }

::selection { background: #f4ff00; color: #060606; }

/* The AI module now shares the page face; keep its compact link on one line. */
@media (max-width: 760px), (max-height: 620px) {
  .veesi-ai .vai-link { max-width: none; white-space: nowrap; }
  .veesi-ai .vai-note { letter-spacing: .015em; }
}

/* ---------- Links and buttons ---------- */
.primary-cta,
.header-cta {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s cubic-bezier(.2, .7, .2, 1),
    background-color .35s ease, border-color .35s ease, color .35s ease;
}
.primary-cta > span[aria-hidden],
.header-cta > span[aria-hidden] { display: inline-block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.text-cta { position: relative; border-bottom-color: transparent; }
.text-cta::after,
.site-header nav a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  pointer-events: none;
}
.text-cta::after { bottom: -1px; background: #333; }
.site-header nav a,
.site-footer nav a { position: relative; }
.site-header nav a::after,
.site-footer nav a::after { bottom: -5px; transform: scaleX(0); transform-origin: right center; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
@keyframes veesi-underline {
  0% { transform: scaleX(1); transform-origin: right center; }
  45% { transform: scaleX(0); transform-origin: right center; }
  46% { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}
@media (hover: hover) and (pointer: fine) {
  .primary-cta:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(86, 94, 0, .6); }
  .primary-cta:not(:disabled):hover > span[aria-hidden],
  .header-cta:hover > span[aria-hidden] { transform: translateX(4px); }
  .header-cta:hover { background-color: var(--ink); border-color: var(--ink); color: var(--ivory); }
  .text-cta:hover::after { animation: veesi-underline .8s cubic-bezier(.6, 0, .2, 1); }
  .site-header nav a:hover::after,
  .site-footer nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.primary-cta:not(:disabled):active { transform: translateY(0) scale(.985); transition-duration: .15s; }

/* ---------- Selected concepts ---------- */
.concept-visual img { transition: transform 1.4s cubic-bezier(.2, .65, .25, 1); transform-origin: 50% 55%; }
.concept-action { transform: translate(-6px, 6px); transition: opacity .4s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.concept-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  border-bottom: 3px solid #194bff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.6, 0, .2, 1);
}
.concept-link:hover::after,
.concept-link:focus-visible::after { transform: scaleX(1); }
.concept-link:hover .concept-action,
.concept-link:focus-visible .concept-action { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .concept-link:hover .concept-visual img { transform: scale(1.045); }
}

/* ---------- Process and FAQ disclosure ---------- */
.step-arrow { transition: transform .55s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, color .3s ease, border-color .3s ease; }
.process-step[open] .step-arrow { transform: rotate(90deg); }
.faq-list summary span,
.faq-list details[open] summary span {
  position: relative;
  display: block;
  flex: none;
  width: max(14px, 1.25vw);
  height: 2.1vw; /* the original glyph's line box: keeps every row's height */
  font-size: 0;
  color: inherit;
}
@media (max-width: 680px) {
  .faq-list summary span,
  .faq-list details[open] summary span { width: 15px; height: 23px; }
}
.faq-list summary span::before,
.faq-list summary span::after,
.faq-list details[open] summary span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  font-size: 0;
  transform: translate(-50%, -50%);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .35s ease;
}
.faq-list summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary span::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-list summary { transition: color .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .process-step summary:hover .step-arrow { background-color: var(--ink); border-color: var(--ink); color: var(--ivory); }
  .faq-list summary:hover { color: #1542d9; }
}
@supports selector(::details-content) {
  .process-step::details-content,
  .faq-list details::details-content,
  .site-ai-foundations::details-content {
    block-size: 0;
    overflow-y: clip;
    opacity: 0;
    transition: block-size .55s cubic-bezier(.2, .7, .2, 1), opacity .45s ease, content-visibility .55s allow-discrete;
  }
  .process-step[open]::details-content,
  .faq-list details[open]::details-content,
  .site-ai-foundations[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- Form ---------- */
.contact-form input,
.contact-form textarea { transition: border-color .25s ease, box-shadow .3s ease, background-color .3s ease; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: #c4c5bf; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #1542d9; box-shadow: 0 0 0 3px rgba(21, 66, 217, .12); background-color: #fff; }

/* Two lines exactly, as approved: the second line never leaves "felt." alone. */
.contact-copy { container-type: inline-size; }
@media (min-width: 681px) {
  .contact-copy .section-heading { font-size: min(4.63vw, calc((100cqw - 1.1vw) / var(--veesi-contact-ratio, 8.3))); white-space: nowrap; }
}

/* ---------- Motion toggle ---------- */
.motion-toggle {
  background: rgba(251, 248, 243, .9);
  border-color: rgba(6, 6, 6, .16);
  color: #343432;
  letter-spacing: .01em;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { background: #fbf8f3; border-color: rgba(6, 6, 6, .36); color: #060606; }
}
@media (max-width: 680px) {
  .motion-toggle { width: 34px; height: 34px; min-height: 0; padding: 0; justify-content: center; }
  .motion-toggle-label { position: absolute; width: 1px; height: 1px; clip-path: inset(100%); overflow: hidden; white-space: nowrap; }
}

/* ---------- Entrance rhythm for the static lower half ---------- */
.reveal-ready [data-veesi-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .9s cubic-bezier(.2, .65, .25, 1), transform 1s cubic-bezier(.2, .65, .25, 1);
  transition-delay: calc(var(--reveal-i, 0) * 75ms);
}
.reveal-ready [data-veesi-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready [data-veesi-reveal]:focus-within { opacity: 1; transform: none; }

@media print {
  .reveal-ready [data-veesi-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- AI lens: own compositor layer only while it travels and scales ---------- */
.veesi-ai[data-vai-moving] .vai-lens { will-change: transform; }

/* ---------- Picture wrappers (WebP with the original files as fallback) ---------- */
picture { display: contents; }

/* ---------- Smooth wheel scrolling (Lenis) ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-veesi-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-poster { transition: none !important; }
  .concept-visual img,
  .primary-cta,
  .header-cta,
  .step-arrow,
  .faq-list summary span::before,
  .faq-list summary span::after { transition: none !important; }
  .text-cta:hover::after { animation: none; }
}
