:root {
  --ink: #101318;
  --ink-soft: #303945;
  --blue: #2761d8;
  --blue-deep: #2761d8;
  --cyan: #2761d8;
  --cyan-hover: #3f76ee;
  --cyan-soft: #edf3ff;
  --cyan-shadow: rgba(39, 97, 216, 0.34);
  --amber: #2761d8;
  --paper: #ffffff;
  --paper-soft: #f5f7fb;
  --line: #dbe2ec;
  --shadow: 0 24px 70px rgba(16, 19, 24, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(12, 16, 22, 0.68);
  color: var(--paper);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, margin 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  margin-top: 8px;
  background: rgba(12, 16, 22, 0.9);
}

.brand {
  display: grid;
  place-items: center;
  width: 232px;
  min-width: 196px;
  height: 68px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.brand img {
  width: auto;
  max-width: 100%;
  height: 62px;
  max-height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--blue);
  color: var(--paper);
}

.site-nav .nav-cta:hover {
  background: var(--cyan-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82svh;
  padding: 150px 24px 72px;
  overflow: hidden;
  color: var(--paper);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.94) 0%, rgba(5, 8, 13, 0.78) 40%, rgba(5, 8, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(39, 97, 216, 0.18) 0%, rgba(5, 8, 13, 0.2) 60%, rgba(5, 8, 13, 0.82) 100%);
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-content > * {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.method-band .eyebrow,
.contact-section .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 4.7rem;
  font-weight: 900;
}

h2 {
  color: var(--ink);
  font-size: 2.55rem;
  font-weight: 900;
}

h3 {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 850;
}

.hero-lead {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 16px 28px var(--cyan-shadow);
}

.button-primary:hover {
  background: var(--cyan-hover);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 48px, var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.intro-text p {
  margin: 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services-section {
  padding-top: 52px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(16, 19, 24, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 97, 216, 0.5);
  box-shadow: 0 18px 42px rgba(16, 19, 24, 0.1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: var(--blue);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.workshop-showcase {
  padding-top: 40px;
}

.showcase-heading {
  max-width: 760px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.workshop-card {
  position: relative;
  isolation: isolate;
  min-height: 290px;
  margin: 0;
  border-radius: var(--radius);
  background: #0b1119;
  box-shadow: 0 18px 46px rgba(16, 19, 24, 0.14);
  overflow: hidden;
}

.workshop-card-featured {
  grid-row: span 2;
  min-height: 598px;
}

.workshop-card::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, 0.92));
  pointer-events: none;
}

.workshop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.workshop-card:hover img {
  transform: scale(1.025);
}

.workshop-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  color: var(--paper);
}

.workshop-card figcaption > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.workshop-card figcaption strong {
  display: block;
  color: var(--paper);
  font-size: 1.14rem;
  line-height: 1.2;
}

.workshop-card figcaption p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.method-band {
  padding: 88px 24px;
  background:
    linear-gradient(90deg, rgba(39, 97, 216, 0.2), rgba(39, 97, 216, 0.08)),
    #0b1119;
  color: var(--paper);
}

.method-band > * {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-heading.light h2,
.method-band h3 {
  color: var(--paper);
}

.section-heading.light p:last-child,
.method-band p {
  color: rgba(255, 255, 255, 0.74);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: #19130a;
  font-weight: 900;
}

.steps p {
  margin: 14px 0 0;
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 70px;
  align-items: center;
}

.value-copy p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list div {
  padding: 22px 24px;
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-soft);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  font-size: 1.05rem;
}

.value-list span {
  margin-top: 5px;
  color: var(--ink-soft);
}

.partners {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.partners-text {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.partners-text p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 56px;
  align-items: center;
  padding: 92px 24px;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.78)),
    url("assets/atelier-diagnostic-hero.webp") center / cover;
  color: var(--paper);
}

.contact-section > * {
  width: 100%;
  max-width: var(--max);
}

.contact-copy {
  justify-self: end;
  max-width: 650px;
}

.contact-copy h2 {
  color: var(--paper);
}

.contact-copy p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-panel {
  display: grid;
  gap: 12px;
  justify-self: start;
  width: min(100%, 460px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.contact-panel a,
.contact-panel div {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel strong {
  display: block;
  color: var(--paper);
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.contact-panel .full {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
}

.contact-panel a.full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 16px 28px var(--cyan-shadow);
}

.contact-panel a.full:hover {
  background: var(--cyan-hover);
}

.legal-page {
  background: var(--paper-soft);
}

.legal-main {
  padding-top: 124px;
}

.legal-hero,
.legal-layout {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.legal-hero {
  padding: 56px 0 32px;
}

.legal-hero h1 {
  color: var(--ink);
  font-size: 3.4rem;
}

.legal-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.legal-layout {
  display: grid;
  gap: 18px;
  padding-bottom: 92px;
}

.legal-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 19, 24, 0.06);
}

.legal-card h2 {
  margin-bottom: 20px;
  font-size: 1.7rem;
}

.legal-card p,
.legal-card li,
.legal-card dd {
  color: var(--ink-soft);
}

.legal-card p {
  margin: 0;
}

.legal-card p + p,
.legal-card .legal-list + p {
  margin-top: 16px;
}

.legal-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.legal-card dt {
  color: var(--ink);
  font-weight: 900;
}

.legal-card dd {
  margin: 4px 0 0;
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-note {
  margin-top: 20px !important;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0;
  background: var(--cyan-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--ink-soft);
}

.footer-brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.site-footer img {
  width: 180px;
  height: auto;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a {
  color: var(--blue);
}

.footer-links a:hover {
  color: var(--cyan-hover);
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .services-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .values,
  .partners,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-panel {
    justify-self: center;
  }

  .contact-copy {
    max-width: 760px;
  }

  .legal-hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 10px 12px;
  }

  .brand {
    width: 184px;
    min-width: 164px;
    height: 54px;
    padding: 0 9px;
  }

  .brand img {
    width: auto;
    max-width: 100%;
    height: 48px;
    max-height: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(12, 16, 22, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 84svh;
    padding: 132px 20px 58px;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 8, 13, 0.95) 0%, rgba(5, 8, 13, 0.82) 62%, rgba(5, 8, 13, 0.44) 100%),
      linear-gradient(180deg, rgba(39, 97, 216, 0.18) 0%, rgba(5, 8, 13, 0.2) 60%, rgba(5, 8, 13, 0.84) 100%);
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    width: min(100% - 28px, var(--max));
  }

  .proof-item {
    min-height: 104px;
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 72px 0;
  }

  .services-section {
    padding-top: 42px;
  }

  .workshop-showcase {
    padding-top: 28px;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .workshop-card,
  .workshop-card-featured {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .method-band,
  .contact-section {
    padding: 72px 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: min(100% - 32px, var(--max));
  }

  .footer-meta {
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-main {
    padding-top: 100px;
  }

  .legal-hero,
  .legal-layout {
    width: min(100% - 32px, var(--max));
  }

  .legal-hero {
    padding: 44px 0 26px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 86svh;
    padding-inline: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .proof-strip,
  .services-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .service-card,
  .steps article {
    min-height: auto;
  }

  .service-card {
    padding: 24px;
  }

  .workshop-card,
  .workshop-card-featured {
    aspect-ratio: 4 / 3;
  }

  .workshop-card figcaption {
    padding: 20px;
  }

  .workshop-card figcaption p {
    font-size: 0.86rem;
  }

  .values {
    gap: 36px;
  }

  .partners {
    gap: 28px;
  }

  .contact-panel {
    padding: 12px;
  }

  .legal-hero h1 {
    font-size: 2.2rem;
  }

  .legal-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-card img {
    transition: none;
  }

  .workshop-card:hover img {
    transform: none;
  }
}
