/* Xynova Digital
   Layout: a 12-column grid, everything hung from the left edge. Xynova blue is
   used as a field (hero, closing band), never as a tint. One signature moment:
   the kinetic headline on the home page, whose letters change width.

   No style attributes anywhere (strict CSP). JS writes CSS custom properties
   through CSSOM, which the CSP allows. */

@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody-v2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-roman-v2.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-v2.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #2131D9;
  --blue-deep: #1824B0;
  --ink: #0A0F3D;
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --mist: #C9CEF8;
  --slate: #50567A;
  --rule: #D7DAE5;
  --flare: #FFC83D;

  --display: "Anybody", "Arial Narrow", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.04; text-wrap: balance; }
::selection { background: var(--flare); color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible, .hero :focus-visible, .band-blue :focus-visible, .colophon :focus-visible { outline-color: var(--flare); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--flare); color: var(--ink); padding: 10px 16px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ------------------------------------------------------------ masthead */
.masthead { position: relative; z-index: 10; }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand { display: inline-flex; text-decoration: none; color: var(--ink); }
.brand .wm { height: 28px; width: auto; }
.masthead.on-blue { background: var(--blue); color: var(--paper); }
.masthead.on-blue .brand { color: var(--paper); }

.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  font-family: var(--display); font-size: 1rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; padding-block: 6px; position: relative;
  font-variation-settings: "wdth" 100;
  transition: font-variation-settings .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { font-variation-settings: "wdth" 122; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; font: 600 1rem var(--display); color: inherit; background: none;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 18px; cursor: pointer;
}

/* ------------------------------------------------------------ hero (home) */
.hero { background: var(--blue); color: var(--paper); overflow: hidden; }
.kinetic {
  font-family: var(--display); font-weight: 800; line-height: .86; letter-spacing: -.01em;
  white-space: nowrap; margin: clamp(32px, 5vw, 72px) 0 0;
  font-size: clamp(3rem, 11vw, 10.5rem);
  user-select: none; -webkit-user-select: none;
}
.kinetic .k {
  display: inline-block; position: relative;
  font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 800);
}
/* the i's tittle is the nova point from the logo */
.kinetic .k-i::after {
  content: ""; position: absolute; left: 50%; top: -.1em;
  width: .17em; height: .17em; margin-left: -.085em; border-radius: 50%;
  background: var(--flare);
}
.hero-foot { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 104px); align-items: end; row-gap: 32px; }
.hero h1 {
  grid-column: 1 / span 8;
  font-family: var(--text); font-weight: 400; font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.22; letter-spacing: -.005em; text-wrap: pretty;
}
.hero h1 em { font-style: italic; }
.hero-actions { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ------------------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-variation-settings: "wdth" 100;
  transition: font-variation-settings .35s var(--ease), background-color .2s;
}
.btn:hover, .btn:focus-visible { font-variation-settings: "wdth" 118; }
.btn-flare { background: var(--flare); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.link {
  font-family: var(--display); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 0 1.5px; background-position: 100% 100%; }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(72px, 10vw, 160px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { row-gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { grid-column: 1 / span 6; font-size: clamp(1.9rem, 3.3vw, 3.05rem); font-variation-settings: "wdth" 112; letter-spacing: -.015em; }
.section-head p { grid-column: 8 / span 5; color: var(--slate); max-width: 46ch; margin: 0; align-self: end; }

/* capabilities: big rows that widen on hover */
.caps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.caps li { border-bottom: 1px solid var(--rule); }
.caps a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: baseline; padding-block: clamp(20px, 2.6vw, 34px); text-decoration: none;
}
.caps .cap-name {
  grid-column: 1 / span 7; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3.1vw, 2.85rem); line-height: 1; letter-spacing: -.015em;
  font-variation-settings: "wdth" 96;
  transition: font-variation-settings .5s var(--ease), color .3s;
}
.caps .cap-desc { grid-column: 8 / span 5; color: var(--slate); margin: 0; font-size: 1.0625rem; }
.caps a:hover .cap-name, .caps a:focus-visible .cap-name { font-variation-settings: "wdth" 132; color: var(--blue); }

/* explorations grid: asymmetric, 7/5 then 5/7 */
.explore { row-gap: clamp(48px, 6vw, 96px); }
.ex { margin: 0; }
.ex:nth-child(4n+1) { grid-column: 1 / span 7; }
.ex:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.ex:nth-child(4n+3) { grid-column: 1 / span 5; }
.ex:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: clamp(-120px, -6vw, -40px); }
.ex a { text-decoration: none; display: block; }
.ex-frame { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--rule); }
.ex-frame .art { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.ex a:hover .art, .ex a:focus-visible .art { transform: scale(1.035); }
.ex figcaption { display: grid; gap: 6px; padding-top: 18px; }
.ex-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; font-variation-settings: "wdth" 110; }
.ex-meta { font-family: var(--display); font-size: .9375rem; color: var(--slate); }
.ex-line { margin: 0; color: var(--ink); max-width: 52ch; }
.concept-note {
  display: inline-block; font-family: var(--display); font-size: .875rem; font-weight: 500;
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 12px; color: var(--slate);
}

/* process steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--col-gap); counter-reset: step; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.75rem); line-height: 1; color: var(--blue);
  font-variation-settings: "wdth" 60; margin-bottom: 18px;
}
.steps h3 { font-size: 1.375rem; margin-bottom: 10px; font-variation-settings: "wdth" 110; }
.steps p { color: var(--slate); font-size: 1rem; margin: 0; }

/* principles */
.principles { row-gap: 40px; }
.principle { grid-column: span 4; }
.principle h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 14px; font-variation-settings: "wdth" 108; }
.principle p { color: var(--slate); margin: 0; }

/* closing band */
.band-blue { background: var(--blue); color: var(--paper); padding-block: clamp(80px, 11vw, 168px); }
.band-in { row-gap: 32px; align-items: end; }
.band-blue h2 { grid-column: 1 / span 8; font-size: clamp(2.2rem, 4.4vw, 4.1rem); letter-spacing: -.02em; font-variation-settings: "wdth" 116; }
.band-blue .band-side { grid-column: 10 / span 3; display: grid; gap: 18px; justify-items: start; }
.band-blue .band-side p { margin: 0; color: var(--mist); }
.band-blue .link { color: var(--paper); font-size: 1.125rem; }

/* ------------------------------------------------------------ inner pages */
.intro { padding-block: clamp(48px, 7vw, 112px) clamp(56px, 7vw, 120px); border-bottom: 1px solid var(--rule); }
.intro .grid { row-gap: 24px; }
.intro h1 {
  grid-column: 1 / span 10; font-size: clamp(2.4rem, 5.2vw, 4.9rem); letter-spacing: -.025em;
  font-variation-settings: "wdth" 118; font-weight: 800;
}
.intro .lede { grid-column: 1 / span 7; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.4; margin: 0; }
.intro .lede-side { grid-column: 9 / span 4; align-self: end; color: var(--slate); margin: 0; }

/* work detail */
.case { padding-block: clamp(64px, 8vw, 128px); border-bottom: 1px solid var(--rule); }
.case:last-child { border-bottom: 0; }
.case .grid { row-gap: 32px; }
.case .grid { align-items: start; }
.case-art { grid-column: 1 / span 7; position: sticky; top: 24px; }
.case-text { grid-column: 9 / span 4; display: grid; gap: 26px; }
.case:nth-child(odd) .case-art { grid-column: 6 / span 7; grid-row: 1; }
.case:nth-child(odd) .case-text { grid-column: 1 / span 4; grid-row: 1; }
.case-head h2 { font-size: clamp(1.75rem, 2.7vw, 2.4rem); font-variation-settings: "wdth" 114; margin: 14px 0 10px; }
.case-head .ex-meta { display: block; }
.case-line { font-size: 1.3rem; line-height: 1.45; margin: 0; }
.case-text h3, .svc-body h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; font-variation-settings: "wdth" 100; color: var(--slate); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--blue); }

/* services */
.svc { padding-block: clamp(56px, 7vw, 112px); border-bottom: 1px solid var(--rule); }
.svc .grid { row-gap: 28px; }
.svc-head { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.svc-head .glyph { width: 64px; height: 64px; color: var(--blue); }
.glyph .g-flare { fill: var(--flare); stroke: var(--ink); stroke-width: 1.2; }
.svc-head h2 { font-size: clamp(1.75rem, 2.9vw, 2.6rem); font-variation-settings: "wdth" 114; }
.svc-body { grid-column: 7 / span 6; display: grid; gap: 28px; }
.svc-body > p:first-child { font-size: 1.3rem; line-height: 1.45; margin: 0; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--col-gap); }

.models { row-gap: 32px; }
.model { grid-column: span 4; border-top: 1.5px solid var(--ink); padding-top: 20px; }
.model h3 { font-size: 1.5rem; margin-bottom: 10px; font-variation-settings: "wdth" 110; }
.model p { color: var(--slate); margin: 0; }

/* studio */
.statement { grid-column: 1 / span 9; font-family: var(--text); font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.25; margin: 0; }
.statement em { color: var(--blue); }
.prose-cols { row-gap: 24px; }
.prose-cols > div { grid-column: span 6; }
.prose-cols h3 { font-size: 1.5rem; margin-bottom: 12px; font-variation-settings: "wdth" 108; }
.prose-cols p { color: var(--slate); }

/* approach detail */
.phase { padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--rule); }
.phase .grid { row-gap: 20px; }
.phase-n {
  grid-column: 1 / span 2; font-family: var(--display); font-weight: 800; color: var(--blue);
  font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .85; font-variation-settings: "wdth" 56;
}
.phase-head { grid-column: 3 / span 4; }
.phase-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-variation-settings: "wdth" 112; margin-bottom: 10px; }
.phase-head p { color: var(--slate); margin: 0; }
.phase-body { grid-column: 8 / span 5; display: grid; gap: 22px; }
.phase-body h3 { font-size: 1.0625rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; font-variation-settings: "wdth" 100; }

/* contact */
.contact-grid { row-gap: 48px; }
.contact-side { grid-column: 1 / span 4; display: grid; gap: 28px; align-content: start; }
.contact-side h2 { font-size: 1.0625rem; color: var(--slate); font-weight: 600; margin-bottom: 6px; }
.contact-side .big-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); font-variation-settings: "wdth" 104; word-break: break-word; }
.form { grid-column: 6 / span 7; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.field .hint { font-family: var(--display); font-weight: 400; color: var(--slate); font-size: .9375rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #B9BDCF; border-radius: 6px; padding: 13px 14px; width: 100%;
  transition: border-color .2s;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; font-family: var(--display); font-size: .9875rem; font-weight: 500;
  border: 1.5px solid #B9BDCF; border-radius: 999px; padding: 8px 16px; background: var(--white);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-left: 3px solid var(--blue); padding: 6px 0 6px 16px; }
.form-status.is-shown { display: block; }
.form-status p { margin: 0 0 6px; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }

/* legal prose */
.prose { grid-column: 1 / span 8; max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; font-variation-settings: "wdth" 108; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* 404 */
.lost { padding-block: clamp(64px, 10vw, 160px); }
.lost .kinetic-static { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 26vw, 22rem); line-height: .8; color: var(--blue); font-variation-settings: "wdth" 150; margin: 0 0 32px; letter-spacing: -.03em; }

/* ------------------------------------------------------------ concept art text */
.art-wide { font-weight: 800; font-variation-settings: "wdth" 150; }
.art-mid { font-weight: 600; font-variation-settings: "wdth" 104; }

/* ------------------------------------------------------------ footer */
.colophon { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px) 28px; }
.colophon .brand { color: var(--paper); }
.colophon .wm-foot { height: 34px; width: auto; }
.colophon-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; }
.colophon-brand { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.colophon-brand p { color: var(--mist); max-width: 38ch; margin: 0; font-size: 1.0625rem; }
.colophon-col { grid-column: span 3; display: grid; gap: 10px; align-content: start; font-family: var(--display); }
.colophon-col:first-of-type { grid-column: 8 / span 2; }
.colophon-col a { text-decoration: none; opacity: .86; width: fit-content; }
.colophon-col a:hover, .colophon-col a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.colophon-h { font-weight: 600; color: var(--mist); margin: 0 0 6px; font-size: .9375rem; }
.colophon-base {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid rgba(201, 206, 248, .22);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--display); font-size: .9375rem; color: var(--mist);
}
.colophon-base p { margin: 0; }
.colophon-legal { display: flex; gap: 22px; }
.colophon-legal a { text-decoration: none; }
.colophon-legal a:hover, .colophon-legal a:focus-visible { text-decoration: underline; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; }
  .section-head h2, .section-head p { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .band-blue h2, .band-blue .band-side { grid-column: 1 / -1; }
  .case-art, .case-text, .case:nth-child(odd) .case-art, .case:nth-child(odd) .case-text { grid-column: 1 / -1; grid-row: auto; position: static; }
  .svc-head, .svc-body { grid-column: 1 / -1; }
  .phase-n { grid-column: 1 / span 3; }
  .phase-head { grid-column: 4 / -1; }
  .phase-body { grid-column: 4 / -1; }
  .contact-side, .form { grid-column: 1 / -1; }
  .model, .principle { grid-column: 1 / -1; }
  .intro .lede, .intro .lede-side, .intro h1 { grid-column: 1 / -1; }
  .statement, .prose { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    min-height: calc(100vh - 100%); min-height: calc(100dvh - 92px);
  }
  .masthead.on-blue .nav { background: var(--blue); }
  .masthead { background: var(--paper); }
  .masthead.on-blue { background: var(--blue); }
  .masthead.on-blue .nav { border-bottom-color: rgba(201, 206, 248, .3); }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.75rem; font-weight: 700; padding-block: 10px; font-variation-settings: "wdth" 112; }
  .nav a::after { display: none; }
  .brand .wm { height: 24px; }

  .caps a { grid-template-columns: 1fr; row-gap: 6px; }
  .caps .cap-name, .caps .cap-desc { grid-column: 1 / -1; }
  .ex:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .cols2, .row2 { grid-template-columns: 1fr; }
  .prose-cols > div { grid-column: 1 / -1; }
  .phase-n { grid-column: 1 / -1; }
  .phase-head, .phase-body { grid-column: 1 / -1; }
  .colophon-brand, .colophon-col, .colophon-col:first-of-type { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.lost-h { font-size: clamp(2rem, 4vw, 3.25rem); font-variation-settings: "wdth" 112; margin-bottom: 14px; }
.lost p { color: var(--slate); }
