/* Layout: a label rail and a content column, divided by one continuous vertical line (the shared stroke
   of the logo) that runs from the hero to the contact band. Single light theme with a navy closing band. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --paper: #F4F6FA;
  --navy: #0F2357;
  --navy-deep: #0A1A44;
  --text: #121A2E;
  --muted: #4A5468;
  --line: #DCE1EA;
  --accent: #3B7BFF;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C3DB;
  --on-navy-line: rgba(255, 255, 255, 0.28);
  --error-on-navy: #FFB4AB;
  --guide: #E6EAF1;
  --guide-strong: #D3D9E4;
  --scroll-thumb: #C5CCD9;
  --scroll-thumb-hover: #8E98AE;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 76rem;
  --rail: 13rem;
  --col-pad: clamp(2rem, 4.5vw, 4.5rem);
  --block: clamp(3rem, 7vw, 5.5rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
/* A thin, quiet scrollbar that keeps native scrolling */
html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid transparent; border-radius: 999px; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--navy); margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; }
.brand { display: block; line-height: 0; }
.brand svg { height: 17px; width: auto; }
.logo-word { fill: var(--navy); }
.logo-shared { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--text); transition: color .2s; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.nav .lang { color: var(--muted); padding-left: 2rem; border-left: 1px solid var(--line); letter-spacing: 0.06em; }
@media (max-width: 44rem) {
  .nav { gap: 1.25rem; }
  .nav a:not(.nav-contact):not(.lang) { display: none; }
  .nav .lang { padding-left: 1.25rem; }
}

/* Grid with the continuous line */
.row { display: grid; }
.row > .rail, .row > .main { padding-block: var(--block); min-width: 0; }
.row > .rail { padding-bottom: 0; }
@media (min-width: 60rem) {
  .row { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .row > .rail { padding-bottom: var(--block); padding-right: 2rem; }
  .row > .main { border-left: 1px solid var(--line); padding-left: var(--col-pad); }
  .hero .row > .main { border-left-color: var(--accent); }
}
@media (max-width: 59.99rem) {
  .row > .main { padding-top: 1.25rem; }
  .hero .row > .main { padding-top: var(--block); }
  .block + .block .row > .rail { border-top: 1px solid var(--line); }
}

/* Hero */
.hero .main { display: grid; gap: 2.5rem; padding-bottom: calc(var(--block) * 1.2); }
.hero h1 {
  font-weight: 300;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero-intro { display: grid; gap: 2rem; max-width: 46rem; }
@media (min-width: 48rem) { .hero-intro { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; } }
.hero-intro p { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--navy); color: var(--on-navy);
  font: 500 0.9375rem/1 var(--font-body); letter-spacing: 0.01em;
  padding: 1.05rem 1.5rem; border: 0; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--navy-deep); }
.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn .arrow, .link .arrow { transition: transform .25s ease; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
.link { display: inline-flex; gap: 0.6rem; align-items: center; color: var(--navy); font-weight: 500; font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; transition: border-color .2s; }
.link:hover { border-bottom-color: var(--navy); }

/* Section headings */
.main > h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.main > .lede { margin-top: 1rem; color: var(--muted); max-width: 38rem; }

/* Services */
.services { margin-top: 3rem; border-top: 1px solid var(--line); }
.services li { display: grid; gap: 0.5rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .services li { grid-template-columns: 17rem minmax(0, 1fr); align-items: baseline; } }
.services h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; }
.services p { color: var(--muted); max-width: 34rem; }

/* Quality: what every project includes */
.quality { margin-top: 3rem; display: grid; gap: 2.25rem 2.5rem; }
@media (min-width: 40rem) { .quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .quality { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quality li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.quality h3 { font-size: 1.125rem; font-weight: 500; }
.quality p { color: var(--muted); font-size: 0.9688rem; }

/* Projects */
.projects { margin-top: 3rem; display: grid; }
.project { display: grid; gap: 1.25rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-meta { font-size: 0.875rem; color: var(--muted); }
.project-meta strong { color: var(--navy); font-weight: 500; }
.project h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; }
.project > p { color: var(--text); max-width: 40rem; }
.keyfacts { display: grid; gap: 1rem 2.5rem; margin-top: 0.5rem; }
@media (min-width: 40rem) { .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.keyfacts div { display: grid; gap: 0.25rem; align-content: start; }
.keyfacts dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.keyfacts dd { color: var(--navy); font-size: 1rem; line-height: 1.45; }
.stack { font-size: 0.875rem; color: var(--muted); }
.project .link { justify-self: start; }

/* Approach: a real sequence */
.steps { margin-top: 3rem; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--navy); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--navy); }
.steps h3 { font-size: 1.125rem; font-weight: 500; }
.steps p { color: var(--muted); font-size: 0.9688rem; }

/* About */
.about { margin-top: 2rem; display: grid; gap: 1.25rem; max-width: 40rem; color: var(--text); }
.credentials { margin-top: 2.5rem; display: grid; border-top: 1px solid var(--line); }
.credentials li { display: grid; gap: 0.15rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .credentials li { grid-template-columns: 10rem minmax(0, 1fr); } }
.credentials span:first-child { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.credentials span:last-child { color: var(--navy); }

/* Contact band, continuing into the footer */
.closing { background: var(--navy); color: var(--on-navy); color-scheme: dark; }
.closing .row > .main { border-left-color: var(--on-navy-line); }
.closing .eyebrow { color: var(--on-navy-muted); }
.closing h2 { color: var(--on-navy); }
.closing .lede { color: var(--on-navy-muted); }
@media (max-width: 59.99rem) { .closing .row > .rail { border-top: 0; } }

.form { margin-top: 3rem; display: grid; gap: 2rem; max-width: 46rem; }
.form-row { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.8125rem; color: var(--on-navy-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--on-navy);
  background: transparent; border: 0; border-bottom: 1px solid var(--on-navy-line); border-radius: 0;
  padding: 0.55rem 0; transition: border-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 1.5rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B9C3DB' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.2rem center;
}
.field select option { background: var(--navy); color: var(--on-navy); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--on-navy-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--on-navy); box-shadow: 0 1px 0 0 var(--on-navy); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--error-on-navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.closing .btn { background: var(--on-navy); color: var(--navy); }
.closing .btn:hover { background: #E3E9F7; }
.closing .btn[disabled] { opacity: .7; cursor: progress; }
.privacy { font-size: 0.8125rem; color: var(--on-navy-muted); max-width: 24rem; }
.privacy a, .legal a { color: inherit; text-underline-offset: 0.25em; }
.privacy a:hover, .legal a:hover { color: var(--on-navy); }
.form-status { font-size: 0.9375rem; padding-left: 1rem; border-left: 2px solid var(--on-navy); }
.form-status[data-kind="error"] { border-left-color: var(--error-on-navy); }

.direct { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; color: var(--on-navy-muted); font-size: 0.9375rem; }
.direct a { color: var(--on-navy); font-family: var(--font-display); font-size: 1.375rem; text-decoration: none; border-bottom: 1px solid var(--on-navy-line); word-break: break-word; }
.direct a:hover { border-bottom-color: var(--on-navy); }
.copy {
  align-self: center; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  color: var(--on-navy-muted); background: none; border: 1px solid var(--on-navy-line); border-radius: 2px;
  padding: 0; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--on-navy); border-color: var(--on-navy-muted); }
.copy svg { grid-area: 1 / 1; width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .2s; }
.copy .icon-done { opacity: 0; transform: scale(.6); }
.copy.is-copied { color: var(--on-navy); border-color: var(--on-navy); }
.copy.is-copied .icon-copy { opacity: 0; transform: scale(.6); }
.copy.is-copied .icon-done { opacity: 1; transform: none; }

.site-footer { border-top: 1px solid var(--on-navy-line); }
.site-footer .wrap { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2.5rem; font-size: 0.8125rem; color: var(--on-navy-muted); }
.site-footer .footer-logo svg { height: 13px; width: auto; display: block; }
.site-footer .logo-word { fill: var(--on-navy); }
.site-footer .logo-shared { fill: #7FB0FF; }
.legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

/* Entrance: the hero settles in once; everything is visible at rest */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
.hero h1 { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-intro { animation: rise .8s .12s cubic-bezier(.2, .7, .2, 1) both; }

/* Privacy statement */
.page-title { font-weight: 300; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.main > .page-title + .lede { margin-top: 1rem; }
.prose { margin-top: 3rem; display: grid; gap: 0.6rem; max-width: 40rem; }
.prose h2 { font-size: 1.1875rem; font-weight: 500; margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--navy); text-underline-offset: 0.2em; }

/* Not-found page */
.notfound-actions { margin-top: 2.5rem; }
.notfound-en { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; max-width: 40rem; }
.notfound-en a { color: var(--navy); text-underline-offset: 0.2em; }

/* Depth: two faint guides frame the content edges, running from the hero into the navy band */
@media (min-width: 60rem) {
  .row {
    background-image:
      linear-gradient(var(--guide), var(--guide)),
      linear-gradient(var(--guide), var(--guide));
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-position: left top, right top;
  }
  .closing .row { --guide: rgba(255, 255, 255, 0.08); }
  .row > .rail { padding-left: 1.5rem; }
  .row > .main { padding-right: 1.5rem; }
}

/* Depth: a construction drawing of the logo's NN in the hero, wide screens only */
.hero .main { position: relative; }
.hero .main > :not(.hero-art) { position: relative; z-index: 1; }
.hero-art { display: none; }
@media (min-width: 80rem) {
  .hero-art {
    display: block; position: absolute; z-index: 0; pointer-events: none;
    right: 0; top: 50%; width: min(28vw, 400px); height: auto; transform: translateY(-50%);
  }
  .hero-art .art-guides { fill: none; stroke: var(--guide-strong); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; }
  .hero-art .art-guides * { vector-effect: non-scaling-stroke; }
  .hero-art .art-letters { fill: none; stroke: var(--navy); stroke-opacity: .28; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .hero-art .art-shared { fill: var(--accent); fill-opacity: .1; stroke: var(--accent); stroke-opacity: .6; stroke-width: 1; vector-effect: non-scaling-stroke; }
}
