/* Good Suffix Labs, goodsuffix.com. Figtree is the Chessmates font, cut down to Latin; the -ext files carry the Polish
   letters and are fetched only when a page shows one. */
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-medium-ext.woff") format("woff"); font-weight: 500; font-display: swap; unicode-range: U+0100-017F, U+201A, U+201E, U+2039-203A; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-bold-ext.woff") format("woff"); font-weight: 700; font-display: swap; unicode-range: U+0100-017F, U+201A, U+201E, U+2039-203A; }

:root {
  --navy: #0F1630;
  --navy-2: #151E3F;
  --navy-3: #1A2550;
  --navy-deep: #0A1024;
  --yellow: #FFC60A;
  --yellow-ink: #9A7400;
  --coral: #FF6B5A;
  --paper: #F6F5F0;
  --paper-2: #ECEAE2;
  --white: #FFFFFF;
  --text: #141A2E;
  --muted: #5A6178;
  --line: rgba(15, 22, 48, .12);
  --on-navy: rgba(255, 255, 255, .78);
  --on-navy-muted: #8C95BC;
  --on-navy-line: rgba(140, 149, 188, .22);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }

/* Header and first screen */
.hero {
  color: var(--white);
  background:
    radial-gradient(900px 520px at 85% 30%, rgba(255, 198, 10, .07), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(80, 100, 200, .16), transparent 60%),
    var(--navy);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; --tile: var(--navy-3); flex: none; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-labs { font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-muted); margin-left: 9px; }
.nav { display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--on-navy); font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 112px;
}
.eyebrow { font: 500 .78rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; }
.lede { margin-top: 24px; font-size: 1.16rem; color: var(--on-navy); max-width: 34em; }
.lede a { color: var(--white); text-decoration-color: rgba(255, 198, 10, .7); text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #FFD23F; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }

/* The picture on the first screen */
.shot { margin: 0; }
.shot-frame { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--on-navy-line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.shot-frame img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.shot-frame:hover img { transform: scale(1.02); }
.shot figcaption { margin-top: 14px; font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--navy); color: var(--white); }
.label { display: flex; align-items: center; gap: 12px; font: 500 .76rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.label span { color: var(--yellow-ink); }
.label::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.section-ink .label { color: var(--on-navy-muted); }
.section-ink .label span { color: var(--yellow); }
.section h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.08; }
.section-lede { margin-top: 18px; font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.section-ink .section-lede { color: var(--on-navy); }

/* Work */
.feature { margin-top: 52px; }
.feature-media { display: block; border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px -40px rgba(15, 22, 48, .45); }
.feature-media img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feature-media:hover img { transform: scale(1.015); }
.feature-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.feature-text p { font-size: 1.1rem; max-width: 34em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .72rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.gallery span { display: block; margin-top: 12px; font-size: .92rem; color: var(--muted); }

/* What we do */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.card { padding: 30px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(15, 22, 48, .35); }
.card-icon { width: 48px; height: 48px; padding: 10px; border-radius: 13px; background: var(--navy); fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 24px; font-size: 1.18rem; }
.card p { margin-top: 10px; font-size: .97rem; color: var(--muted); }

/* Approach */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
.principles { counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; padding: 30px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font: 500 .8rem/2.2 var(--mono); color: var(--yellow-ink); }
.principles h3 { font-size: 1.4rem; letter-spacing: -.015em; }
.principles p { margin-top: 8px; color: var(--muted); max-width: 36em; }

/* Contact */
.contact-who { margin-top: 22px; font-size: .95rem; color: var(--on-navy-muted); }
.contact-mail { display: inline-block; margin-top: 36px; font-size: clamp(1.6rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--yellow); text-decoration: none; border-bottom: 2px solid rgba(255, 198, 10, .35); transition: border-color .2s; overflow-wrap: anywhere; }
.contact-mail:hover { border-color: var(--yellow); }

/* Footer */
.foot { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .9rem; padding-top: 28px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot-note { padding-top: 14px; padding-bottom: 28px; font-size: .78rem; opacity: .7; }

/* The 404 page */
.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost .hero-body { flex: 1; display: flex; gap: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 40px; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
  .feature-body, .approach { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .principles li { grid-template-columns: 40px 1fr; }
  .nav li:not(:last-child) { display: none; }
  .brand-labs { display: none; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
