:root {
  --black: #070707;
  --black-soft: #0d0d0d;
  --white: #f4f1ea;
  --muted: #aaa69f;
  --line: rgba(244, 241, 234, 0.16);
  --blue: #2f73ff;
  --green: #25d366;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--black);
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 3vw;
  border-bottom: 1px solid var(--line);
}

.wordmark,
footer a {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
nav a { font-size: 0.92rem; text-decoration: none; }
nav > a:not(.whatsapp-link) { color: #d6d3ce; }

.header-contact {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 14px;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  align-items: stretch;
  margin: 0 3vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 9vw, 150px) 2vw clamp(70px, 8vw, 130px) 1.5vw;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-family: var(--serif);
  font-size: clamp(5.1rem, 9.5vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.79;
}

.hero-copy p {
  max-width: 520px;
  margin: clamp(36px, 4vw, 64px) 0 0;
  color: #c8c4bd;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.45;
}

.hero-portrait {
  position: relative;
  align-self: stretch;
  margin: 0;
  min-height: 620px;
}

.hero-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--black) 0%, transparent 18%);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.88) contrast(1.04);
}

.work {
  padding: clamp(72px, 9vw, 130px) 3vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.work-head {
  margin-bottom: clamp(34px, 4vw, 54px);
  border-block: 1px solid var(--line);
  padding: 12px 0;
}

.work-tools {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.project-search {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 0 18px;
  background: #101010;
  transition: border-color 180ms ease, background 180ms ease;
}

.project-search:focus-within { border-color: #6e92e6; background: #131313; }
.project-search svg {
  width: 21px;
  fill: none;
  stroke: #a9c2ff;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.project-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--white);
  background: transparent;
  font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1 var(--sans);
}

.project-search input::placeholder { color: #77736d; }
.project-search kbd {
  min-width: 28px;
  border: 1px solid var(--line);
  padding: 5px 7px;
  color: #817d76;
  font: 600 0.72rem/1 var(--sans);
  text-align: center;
}

.sort-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 5px;
  background: #101010;
}

.sort-switch button {
  min-height: 48px;
  border: 0;
  padding: 0 20px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 600 0.82rem/1 var(--sans);
  letter-spacing: 0.02em;
  transition: color 180ms ease, background 180ms ease, transform 120ms ease;
}

.sort-switch button:hover { color: var(--white); }
.sort-switch button:active { transform: scale(0.97); }
.sort-switch button.is-active { color: var(--black); background: var(--white); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px) clamp(14px, 1.8vw, 28px);
}

.chapter {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}

.chapter[hidden] { display: none; }
.chapter:target .chapter-media,
.chapter:target .chess-media {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.chapter-bus,
.chapter-kenez { grid-column: span 3; }

.chapter-ags,
.chapter-acting,
.chapter-chess { grid-column: span 2; }

.chapter-media,
.chess-media {
  order: -1;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141414;
}

.chapter-media img,
.chess-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), filter 250ms ease;
}

.chapter-media:hover img,
.chapter-media:focus-visible img,
.chess-media:hover .chess-action,
.chess-media:focus-visible .chess-action { transform: scale(1.025); filter: brightness(1.05); }

.chapter-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.chapter-caption p {
  order: -1;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-caption > a {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: #dce5ff;
  font-size: 0.78rem;
  text-decoration-color: var(--blue);
  text-underline-offset: 5px;
}

.chapter-bus .chapter-media img { object-fit: contain; background: #f0eee8; }
.chapter-kenez .chapter-media img { object-position: center; }
.chapter-ags .chapter-media img { object-fit: contain; padding: 7%; background: #090807; }
.chapter-acting .chapter-media img { object-position: center 25%; }

.chess-action { width: 100% !important; }
.chess-proof {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 35% !important;
  height: auto !important;
  border: 1px solid var(--line);
  background: #eee;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.project-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  color: var(--muted);
}

.project-empty[hidden] { display: none; }

.about {
  display: block;
  padding: clamp(100px, 12vw, 190px) 7vw;
  color: var(--black);
  background: var(--white);
}

.about-label {
  margin: 0 0 clamp(24px, 3vw, 42px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-content { min-width: 0; max-width: 1260px; }

.about h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8.6vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.about-lede {
  max-width: 920px;
  margin: clamp(44px, 5vw, 80px) 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.about-body {
  max-width: 760px;
  margin: 28px 0 0;
  color: #393733;
  font-size: clamp(1.02rem, 1.35vw, 1.3rem);
  line-height: 1.6;
}

.quote-lockup {
  max-width: 1050px;
  margin: clamp(60px, 8vw, 110px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 19vw, 250px);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.jack-quote { margin: 0; }

.jack-quote p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.35rem, 4.25vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-wrap: balance;
}

.jack-quote span { color: var(--blue); font-weight: 600; }
.jack-quote strong {
  color: #214fbd;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.trade-switcher {
  position: relative;
  width: 100%;
  margin: 0;
  scroll-margin-top: 30px;
}

.trade-stage { position: relative; height: clamp(170px, 20vw, 260px); }

.trade-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--black);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: scale(0.55) rotate(-14deg);
  transition: opacity 320ms ease, transform 520ms cubic-bezier(.2,.9,.2,1.2);
}

.trade-card.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: none; }

.trade-card span {
  font-size: clamp(6.5rem, 13vw, 13rem);
  line-height: 1;
  filter: drop-shadow(0 18px 22px rgba(7, 7, 7, 0.18));
  transition: transform 220ms ease;
}

.trade-card::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  border: 1px solid var(--black);
  padding: 8px 11px;
  color: var(--white);
  background: var(--black);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.trade-card:hover span { transform: translateY(-5px) scale(1.04); }
.trade-card:hover::after,
.trade-card:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.trade-card:active span { transform: scale(0.94); }

.next-steps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(60px, 9vw, 150px);
  padding: clamp(110px, 13vw, 190px) 7vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
}

.next-steps-label {
  margin: 0 0 20px;
  color: #c8c4bd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.next-steps h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.next-steps-copy > p:not(.next-steps-label) {
  max-width: 610px;
  margin: 30px 0 0;
  color: #c8c4bd;
  font-size: 1.05rem;
  line-height: 1.6;
}

.direct-contact { display: grid; gap: 10px; margin-top: 34px; }
.direct-contact a {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--white);
  text-decoration: none;
}
.direct-contact svg { width: 25px; flex: 0 0 auto; fill: var(--green); }
.direct-contact .contact-mark { width: 25px; color: #a9c2ff; font-size: 1.45rem; text-align: center; }
.direct-contact a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.direct-contact small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #c8c4bd;
  font-size: 0.82rem;
}

.social-links > span {
  color: #817d76;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links a { color: var(--white); text-underline-offset: 4px; }

.project-matcher { align-self: start; border-top: 1px solid var(--line); padding-top: 22px; }
.matcher-head { display: flex; align-items: center; gap: 20px; margin-bottom: 42px; color: #c8c4bd; font-size: 0.78rem; }
.matcher-progress { height: 3px; flex: 1; overflow: hidden; background: rgba(244, 241, 234, 0.16); }
.matcher-progress i { display: block; width: 33.333%; height: 100%; background: var(--blue); transition: width 250ms ease; }
.project-matcher fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.project-matcher legend { max-width: 680px; margin-bottom: 30px; font-family: var(--serif); font-size: clamp(2.1rem, 3.2vw, 3.7rem); letter-spacing: -0.045em; line-height: 1; }
.matcher-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.matcher-options label { cursor: pointer; }
.matcher-options input { position: absolute; opacity: 0; pointer-events: none; }
.matcher-options span {
  display: flex;
  min-height: 78px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 16px;
  color: #d8d5cf;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.matcher-options input:checked + span { border-color: var(--blue); background: rgba(47, 115, 255, 0.14); color: white; }
.matcher-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 4px; }
.matcher-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.matcher-actions button,
.matcher-result-actions a,
.matcher-restart {
  min-height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.matcher-actions button:last-child,
.matcher-result-actions a:first-child { border-color: var(--blue); background: var(--blue); }
.matcher-result h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -0.05em; }
.matcher-result > p:not(.next-steps-label) { color: #c8c4bd; line-height: 1.6; }
.matcher-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.matcher-result-actions a { display: inline-flex; align-items: center; }
.matcher-restart { margin-top: 14px; border: 0; padding-inline: 0; color: #c8c4bd; text-decoration: underline; text-underline-offset: 4px; }

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

@media (max-width: 900px) {
  .site-header { min-height: 64px; margin-inline: 18px; }
  nav { gap: 16px; }
  nav > a:not(.header-contact) { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .hero-copy { padding: 54px 0 34px; }
  h1 {
    max-width: 100%;
    font-size: clamp(3.75rem, 18vw, 5.6rem);
    line-height: 0.84;
  }
  .hero-copy p { margin-top: 24px; font-size: 1rem; }

  .hero-portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .hero-portrait::after { background: linear-gradient(180deg, var(--black) 0%, transparent 18%); }
  .hero-portrait img { object-position: 50% 18%; }

  .work { padding: 72px 18px; }
  .work-tools { grid-template-columns: 1fr; gap: 10px; }
  .project-search { min-height: 56px; padding-inline: 14px; }
  .sort-switch { justify-self: start; }
  .sort-switch button { min-height: 42px; padding-inline: 18px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .chapter-bus,
  .chapter-kenez,
  .chapter-ags,
  .chapter-acting,
  .chapter-chess { grid-column: auto; }
  .chapter { gap: 12px; }
  .chapter-caption h2 { font-size: clamp(1.1rem, 4.6vw, 1.6rem); }
  .chapter-caption > a { min-height: 44px; align-items: center; margin-top: 7px; }

  .about {
    padding: 92px 24px;
  }

  .about-label { margin: 0 0 24px; }
  .about h2 { font-size: clamp(4rem, 18vw, 6.8rem); }
  .about-lede { margin-top: 38px; font-size: clamp(2.25rem, 10vw, 4rem); }
  .about-body { margin-top: 22px; }
  .quote-lockup {
    margin-top: 58px;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
  }
  .jack-quote p { font-size: clamp(2rem, 8.8vw, 3.15rem); line-height: 0.97; }
  .trade-stage { height: 124px; }
  .trade-card span { font-size: 5.4rem; }

  .next-steps {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 92px 18px;
  }

  .matcher-options { grid-template-columns: 1fr; }
  .matcher-head { margin-bottom: 32px; }
  .matcher-result-actions { display: grid; }
  .matcher-result-actions a { justify-content: center; }

  footer { margin-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }

  .trade-switcher.is-static .trade-stage {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .trade-switcher.is-static .trade-card {
    position: relative;
    width: 54px;
    height: 54px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .trade-switcher.is-static .trade-card span { font-size: 2.6rem; }
  .quote-lockup:has(.trade-switcher.is-static) { grid-template-columns: 1fr; }
  .trade-switcher.is-static { width: 100%; }
}
