/* Two voices: Nozhik for the statement, Ysabeau for reading and interaction. */
@font-face {
  font-family: 'YD Nozhik';
  src: url('/assets/fonts/nozhik/Nozhik-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YD Ysabeau';
  src: url('/assets/fonts/ysabeau/Ysabeau-Variable.ttf') format('truetype');
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-reading: 'YD Ysabeau', 'Segoe UI', Arial, sans-serif;
  --font-display: 'YD Nozhik', Impact, 'Arial Narrow', sans-serif;
  --yd-vector-guide: #769dff;
  --yd-vector-node: #c6d8ff;
}

@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .yd-text-assembly-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5001;
    pointer-events: none;
    user-select: none;
  }
  .yd-text-assembly-frame {
    transform-box: fill-box;
    transform-origin: center;
    animation: yd-text-settle 480ms var(--yd-text-delay) both;
  }
  .yd-text-assembly-edge {
    fill: none;
    stroke: var(--yd-vector-guide);
    stroke-width: 1;
    stroke-dasharray: 1 1;
    animation: yd-text-trace 255ms var(--yd-text-delay) both;
  }
  .yd-text-assembly-handles {
    fill: var(--yd-vector-node);
    stroke: #4a70d0;
    stroke-width: .65;
    animation: yd-text-handles 480ms var(--yd-text-delay) both;
  }
  .yd-text-assembly-glyph {
    stroke: var(--yd-vector-guide);
    stroke-width: .75px;
    paint-order: stroke fill;
  }
  ::highlight(yd-assembly-ink) {
    color: color-mix(in srgb, var(--yd-text-color, currentColor) var(--yd-text-native, 0%), transparent);
    -webkit-text-stroke-color: transparent;
    text-shadow: none;
  }
  select[data-yd-text-assembling],
  [data-yd-text-assembling]:placeholder-shown::placeholder,
  :is(svg text, svg tspan)[data-yd-text-assembling] {
    -webkit-text-fill-color: color-mix(in srgb, currentColor var(--yd-text-native, 0%), transparent);
    text-shadow: none;
  }
  :is(svg text, svg tspan)[data-yd-text-assembling] {
    fill-opacity: var(--yd-text-native, 0%);
  }
  [data-text-assembly] .title-reveal .title-word-inner {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  @keyframes yd-text-settle {
    0% { opacity: 0; transform: scale(1.025, 1.23); }
    27% { opacity: .84; }
    57% { transform: scale(.998, .975); }
    67% { opacity: .72; }
    100% { opacity: 0; transform: none; }
  }
  @keyframes yd-text-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes yd-text-handles {
    0%, 19% { opacity: 0; }
    47%, 75% { opacity: 1; }
    100% { opacity: 0; }
  }
}

body,
html body :is(.jp-process,.jp4,.studio-about,.faq-index,.feedback-afterword,.contact-workspace,.yd-signoff) {
  font-family: var(--font-reading) !important;
  font-weight: 400;
  font-synthesis: none;
  font-variant-numeric: lining-nums;
}
body :is(button,input,select,textarea) { font-family: var(--font-reading) !important; }
body :is(p,li,label,small) { font-weight: 400 !important; }
body :is(a:not(.brand),button,select,label) { font-weight: 500 !important; }
body :is(input,textarea) { font-weight: 400 !important; }
body :is(h3,h4),
body :is(h3,h4) :is(span,strong,em,b) {
  font-family: var(--font-reading) !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
}
body :is(h3,h4) { line-height: 1.18 !important; }
body :is(h1,h2),
body :is(h1,h2) :is(span,strong,em,b,i) {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: .012em !important;
  font-synthesis: none;
}
body :is(h1,h2) { line-height: 1.04 !important; }
body :is(p,input,textarea,li) { overflow-wrap: break-word; }
body :is(.section-label,.campaign-kicker,.v12-kicker,.hero-film-caption,.hero-film-controls button,
  .v11-scroll,.direction-topline,.direction-media-note,.feedback-meta,.contact-meta,
  .studio-label,.faq-index-label,.workflow-counter,.campaign-step-name strong) {
  font-weight: 450 !important;
}
body .section-label { font-size: 12px; line-height: 1.6; letter-spacing: .07em; }
body .site-header .nav a { font-size: 15px; font-weight: 450 !important; letter-spacing: .01em; }
body .mobile-quick-nav a { font-size: 14px; letter-spacing: .01em; }
body .lang-select { font-size: 13px; }
body .site-header :is(.sound-btn,.lang-select,.menu-button) { min-width: 44px; min-height: 44px; }
body .site-header .nav a { min-height: 44px; line-height: 44px; }
body :is(a[href],button,select) { cursor: pointer; touch-action: manipulation; }
body button:disabled { cursor: not-allowed; }
body :is(a,button,select,input,textarea):focus-visible { outline: 3px solid #9db0e4; outline-offset: 4px; }

/* Preserve the studio's wordmarks and the media's own artwork. */
body .brand, body .brand * { font-family: Inter, 'Segoe UI', Arial, sans-serif !important; }
body .yd-signoff-name, body .yd-signoff-name>span { font-family: Arial, Helvetica, sans-serif !important; }
body .v11-hero-word { font-family: Inter, 'Segoe UI', Arial, sans-serif; }

/* The approved Nozhik statement keeps its proportions; the bridge is light. */
html.v12-home .hero-with-film .v11-hero-copy h1 {
  font-size: clamp(54px,7.45vw,124px);
  line-height: .9 !important;
  letter-spacing: .005em !important;
}
html.v12-home .hero-with-film .v11-hero-copy h1>span {
  white-space: nowrap;
  letter-spacing: .005em !important;
}
html.v12-home .hero-with-film .v11-hero-copy h1>.hero-title-bridge {
  font-family: var(--font-reading) !important;
  font-size: .42em;
  font-weight: 350 !important;
  line-height: 1.25;
  letter-spacing: .03em !important;
  text-transform: uppercase;
}
html.v12-home .hero-with-film .v11-hero-copy h1>.hero-title-accent {
  color: #5875ff;
  font-size: 2.05em;
  line-height: .9;
}
html.v12-home .hero-with-film .v11-hero-lead {
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 350 !important;
  letter-spacing: .005em;
}
html.v12-home .hero-project-terms { font-size: 14px; line-height: 1.6; }
html.v12-home .hero-film-caption { font-size: 16px; line-height: 1.5; }
html.v12-home .hero-film-caption small { font-size: 12px; }
html.v12-home .hero-film-controls button { font-size: 15px; min-height: 44px; }
html.v12-home .v11-hero-actions { gap: 18px; flex-wrap: wrap; }
html.v12-home .v11-hero-actions a { display: inline-flex; align-items: center; gap: 20px; font-size: 17px; font-weight: 500 !important; letter-spacing: .005em; }
html.v12-home .v11-hero-actions a>svg { width: 19px; height: 19px; flex: 0 0 auto; }
html.v12-home .v11-scroll { font-size: 12px; min-height: 44px; }

/* Keep each scene's scale and rhythm, with room for Nozhik's descenders. */
html.v12-home :is(.v11-work-head,.services-stage-head,.production-heading,.v12-compare-head,
  .manifesto-architecture-copy,.workflow-heading,.studio-intro,.faq-index-intro,
  .feedback-intro,.contact-intro) h2 { padding-block: .06em .1em; }
html.v12-home .studio-about #studio-heading { font-size: clamp(48px,6.3vw,88px); }
html.v12-home .services-stage .services-stage-head h2 { font-size: clamp(64px,6.2vw,88px); }
html.v12-home #faq #faq-heading { font-size: clamp(54px,6.8vw,94px); }
html.v12-home #reviews .feedback-intro h2 { font-size: clamp(54px,6.8vw,94px); }
html.v12-home #contact .contact-intro h2 { font-size: clamp(60px,7.3vw,104px); }
html.v12-home .workflow-heading h2 { font-size: clamp(54px,6.8vw,96px); }
html.v12-home .direction-copy h3 { font-size: clamp(25px,2.25vw,32px); }
html.v12-home .feedback-page-content h3 { letter-spacing: -.025em !important; }
html.v12-home #contact .contact-form :is(input,textarea,select) { font-size: 16px; }
body .yd-signoff-links a { font-weight: 400 !important; }
body .yd-signoff-legal, body .yd-signoff-music { font-size: 13px; }

/* Service and policy pages share the roles without adopting the home grid. */
body .campaign-hero-heading h1 { font-size: clamp(72px,9vw,144px); }
body .campaign-section-heading h2,
body .campaign-included h2 { font-size: clamp(56px,6.2vw,100px); }
body .campaign-close h2 { font-size: clamp(64px,7vw,112px); }
body .campaign-hero-heading p { font-size: 18px; font-weight: 350 !important; }
body .campaign-stage h3 { font-size: clamp(30px,3.2vw,44px); }
body .campaign-step-name strong { font-size: 16px; }
body .campaign-step-name small { font-size: 12px; }
body .workflow-scene text { font-family: var(--font-reading); }
body .v12-policy-hero h1 { font-size: clamp(64px,8vw,128px); }
body .v12-policy-block h2 { font-size: clamp(32px,3.3vw,52px); }
body .v12-policy-block p { font-size: 16px; }

@media (max-width: 1100px) and (min-width: 901px) {
  body .site-header .nav { gap: 16px; }
  body .site-header .nav a { font-size: 14px; }
}
@media (max-width: 900px) {
  html.v12-home .hero-with-film .v11-hero-copy h1 { font-size: clamp(64px,10.5vw,116px); }
  body .site-header .nav a { font-size: 18px; }
  body .campaign-hero-heading h1 { font-size: clamp(64px,11vw,110px); }
}
@media (max-width: 600px) {
  /* COMPOSITION needs more width than INFO; the content sets the proportions. */
  html.v12-home .jp-mobile-stages .jp-card-tabs { grid-template-columns: 1fr 1.5fr .65fr .85fr; }
  html.v12-home .hero-with-film .v11-hero-copy h1 { font-size: clamp(48px,17vw,88px); }
  html.v12-home .hero-with-film .v11-hero-lead { font-size: 21px !important; line-height: 1.45 !important; }
  html.v12-home .hero-film-caption { font-size: 15px; }
  html.v12-home .hero-film-controls button { font-size: 14px; }
  html.v12-home .hero-project-terms { font-size: 13px; }
  html.v12-home .v11-hero-actions a { font-size: 16px; }
  html.v12-home .v11-scroll { font-size: 11px; }
  html.v12-home .services-stage .services-stage-head h2 { font-size: clamp(50px,13vw,72px); }
  html.v12-home :is(.studio-about #studio-heading,#faq #faq-heading,#reviews .feedback-intro h2) { font-size: clamp(46px,12.2vw,68px); }
  html.v12-home #contact .contact-intro h2 { font-size: clamp(54px,14vw,78px); }
  html.v12-home .workflow-heading h2 { font-size: clamp(52px,13.5vw,76px); }
  body .campaign-hero-heading h1 { font-size: clamp(54px,15vw,84px); }
  body :is(.campaign-section-heading,.campaign-included) h2 { font-size: clamp(46px,12vw,70px); }
  body .campaign-close h2 { font-size: clamp(50px,13vw,78px); }
  body .campaign-step-name strong { font-size: 15px; }
  body .v12-policy-hero h1 { font-size: clamp(48px,12.8vw,78px); }
  body .v12-policy-block h2 { font-size: 32px; }
}

[data-title-assembly-position] { position: relative; }
.yd-title-vectors {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  max-width: none; overflow: visible; pointer-events: none; user-select: none;
}
.yd-title-trace, .yd-title-frame, .yd-title-tangent, .yd-title-node {
  vector-effect: non-scaling-stroke;
}
.yd-title-trace, .yd-title-frame, .yd-title-tangent {
  fill: none; stroke: var(--yd-vector-guide); stroke-width: 1;
}
.yd-title-node { fill: #171d2d; stroke: var(--yd-vector-node); stroke-width: 1; }
.yd-title-tip { fill: var(--yd-vector-node); }
.yd-title-grip { fill: transparent; touch-action: none; }

@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  [data-title-assembly] .title-word-inner {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .v11-hero-copy h1[data-title-assembly] > span {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  [data-title-assembly], [data-title-assembly] :is(span, strong, em, b, i) {
    text-shadow: none !important;
  }
  [data-title-assembly="waiting"], [data-title-assembly="waiting"] :is(span, strong, em, b, i) {
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke-color: transparent !important;
  }
  ::highlight(yd-letter-0),
  ::highlight(yd-letter-1),
  ::highlight(yd-letter-2),
  ::highlight(yd-letter-3),
  ::highlight(yd-letter-4),
  ::highlight(yd-letter-5),
  ::highlight(yd-letter-6),
  ::highlight(yd-letter-7),
  ::highlight(yd-letter-8),
  ::highlight(yd-letter-9) {
    -webkit-text-stroke-color: transparent;
    text-shadow: none;
  }
  ::highlight(yd-letter-0) { color: transparent; }
  ::highlight(yd-letter-1) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 10%, transparent); }
  ::highlight(yd-letter-2) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 20%, transparent); }
  ::highlight(yd-letter-3) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 30%, transparent); }
  ::highlight(yd-letter-4) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 40%, transparent); }
  ::highlight(yd-letter-5) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 50%, transparent); }
  ::highlight(yd-letter-6) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 60%, transparent); }
  ::highlight(yd-letter-7) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 70%, transparent); }
  ::highlight(yd-letter-8) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 80%, transparent); }
  ::highlight(yd-letter-9) { color: color-mix(in srgb, var(--yd-title-color, currentColor) 90%, transparent); }
}
@media print, (prefers-reduced-motion: reduce), (forced-colors: active) {
  .yd-title-vectors { display: none; }
}
