/* New Line Soft. One family (Archivo, variable width), cool palette, one signature: the line. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1D2B44;
  --blue: #2F5F8F;
  --blue-light: #6FA3D6;
  --mist: #E8EEF4;
  --paper: #FFFFFF;
  --slate: #4B5768;
  --rule: #C9D5E2;
  --ok: #1E6B4A;
  --err: #A3302B;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(4rem, 9vw, 7rem);

  --t-body: 1.0625rem;  /* 17px */
  --t-small: 0.9375rem; /* 15px */
  --t-h3: 1.1875rem;    /* 19px */
  --t-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-lede: clamp(1.1875rem, 1rem + .6vw, 1.375rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Wordmark: "New" wide and heavy, "Line Soft" condensed. Echoes the original logo. */
.mark { color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 500; font-stretch: 75%; letter-spacing: .01em; white-space: nowrap; }
.mark__new { font-weight: 800; font-stretch: 125%; color: var(--blue); }
.mark--small { font-size: 1rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.nav { display: flex; gap: clamp(.75rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; font-size: var(--t-small); }
.nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; }
.nav a:hover { color: var(--blue); }
.nav__cta { font-weight: 600; color: var(--blue) !important; }

/* Hero: type only. The name sets wide; the line draws once under it. */
.hero { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 6.5rem); }
.hero__name {
  font-size: clamp(2.75rem, 1rem + 8.4vw, 7.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  line-height: .95;
  color: var(--ink);
}
.hero__line {
  height: 6px;
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  background: var(--blue);
  transform-origin: left center;
  animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .15s both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__tag { font-size: var(--t-lede); font-stretch: 90%; font-weight: 600; color: var(--blue); margin-bottom: .75rem; }
.hero__lede { font-size: var(--t-lede); line-height: 1.5; color: var(--slate); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 2rem; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; padding: .85rem 1.4rem; border-radius: 4px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--ink); }
.btn--plain { color: var(--ink); border-color: var(--rule); }
.btn--plain:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Bands: each section opens with a short stroke of the line above its heading. */
.band { padding: var(--band) 0; }
.band--tint { background: var(--mist); }
.band--ink { background: var(--ink); color: #fff; }
.band h2 { font-size: var(--t-h2); font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; margin-bottom: 2rem; }
.band h2::before { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--blue); margin-bottom: 1.1rem; }
.band--ink h2::before { background: var(--blue-light); }

.split { display: grid; gap: 1rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .split { grid-template-columns: 17rem minmax(0, 1fr); } }

.prose { max-width: 40em; color: var(--slate); }
.prose .big { font-size: var(--t-lede); line-height: 1.5; color: var(--ink); }

/* Services: an expandable list, one line per service. */
.services { border-top: 1px solid var(--rule); }
.svc { border-bottom: 1px solid var(--rule); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 1rem; padding: 1.25rem 0; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.75rem; font-weight: 300; color: var(--blue); line-height: 1; transition: transform .2s ease; }
.svc[open] summary::after { transform: rotate(45deg); }
.svc__title { font-size: var(--t-h3); font-weight: 650; }
.svc__short { color: var(--slate); font-size: var(--t-small); }
.svc summary:hover .svc__title { color: var(--blue); }
.svc__body { padding: 0 0 1.5rem; max-width: 42em; color: var(--slate); }
.svc__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.svc__body li { margin: .2em 0; }
.tech { font-size: var(--t-small); color: var(--ink); }
.tech::before { content: "Technology: "; font-weight: 600; }

/* How a project starts: a real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; border-top: 4px solid var(--blue); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 800; font-stretch: 125%; color: var(--blue); line-height: 1; margin-bottom: .75rem; }
.steps h3 { font-size: var(--t-h3); margin-bottom: .5rem; }
.steps p { color: var(--slate); margin: 0; max-width: 30em; }

/* Work grid */
.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.work__item a, .work__item > div { display: block; color: inherit; text-decoration: none; }
.work__item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top center; border: 1px solid var(--rule); background: #fff; }
.work__title { display: block; font-weight: 650; font-size: var(--t-h3); margin-top: .9rem; }
.work__desc { display: block; color: var(--slate); font-size: var(--t-small); }
.work__item a:hover .work__title { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .team { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--mist); margin-bottom: 1rem; }
.person h3 { font-size: var(--t-h3); }
.person__role { color: var(--blue); font-weight: 600; margin: .2rem 0 .4rem; }
.person__skills { font-size: var(--t-small); color: var(--slate); }
.person details { font-size: var(--t-small); color: var(--slate); }
.person summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.person details ul { padding-left: 1.1em; margin: .6rem 0; }
.person .quote { font-style: italic; color: var(--ink); }

/* Contact */
.contact__lede { color: #D6DFEA; font-size: var(--t-lede); max-width: 22em; }
.form { max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--t-small); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: 4px; padding: .7rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 1rem 0 0; min-height: 1.6em; font-weight: 600; }
.form__status.is-ok { color: #BFE3CF; }
.form__status.is-err { color: #FFC9C4; }
.form__note { font-size: var(--t-small); color: #AEBBCB; margin: .5rem 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 1.75rem 0; font-size: var(--t-small); color: var(--slate); }
.foot__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }

/* Small screens: keep the header to one line. */
@media (max-width: 40rem) {
  .top__inner { flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .6rem; padding-bottom: .5rem; }
  .nav { gap: 1rem; flex-wrap: wrap; }
  html { scroll-padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line { animation: none; }
  .svc summary::after { transition: none; }
}

/* Partner line in the header */
.top__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; }
.partner-tag { font-size: .8125rem; color: var(--slate); text-decoration: none; white-space: nowrap; }
.partner-tag:hover { color: var(--blue); text-decoration: underline; }

/* Core technology stack */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.stack__item { border-top: 1px solid var(--rule); padding-top: 1rem; }
.stack__item h3 { font-size: var(--t-h3); margin-bottom: .4rem; }
.stack__tags { font-weight: 600; color: var(--blue); font-size: var(--t-small); margin-bottom: .35rem; }
.stack__item p:last-child { color: var(--slate); font-size: var(--t-small); margin: 0; }
.stack__more { margin: 2.5rem 0 0; max-width: 46em; color: var(--slate); }

/* Leadership: four people */
@media (min-width: 64rem) { .team.team--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person__bio { font-size: var(--t-small); color: var(--slate); }
.on-ink { color: #fff; }
