@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --night: #1b1226;
  --dusk: #6e3b5c;
  --cherry: #a3123a;
  --cherry-dark: #6e0b27;
  --bloom: #f6c1cf;
  --atlas: #2a2f4a;
  --paper: #f6f3f7;
  --text: #1b1226;
  --muted: #4a3d55;
  --muted-light: #e9dde6;
  --muted-night: #c9b6c6;
  --line: #dcd3e0;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--cherry); }
a:hover { color: var(--cherry-dark); }
a:focus-visible {
  outline: 3px solid var(--bloom);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--night);
  font-weight: 600;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

h1,
h2,
.brand,
.references p,
.step-number {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 860px;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--night), var(--dusk));
}

#sefrou-sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(27,18,38,.72) 0%, rgba(27,18,38,.35) 45%, rgba(27,18,38,0) 70%);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.5rem;
}

.brand {
  color: var(--paper);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand:hover,
.nav-links a:hover { color: var(--bloom); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-left: auto;
  font-size: .9375rem;
}

.nav-links a {
  color: var(--muted-light);
  text-decoration: none;
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 6rem;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.875rem, 7.4vw, 6.5rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-intro {
  max-width: 600px;
  margin: 1.75rem 0 0;
  color: var(--muted-light);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.625rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary { background: var(--bloom); color: var(--night); }
.button-primary:hover { background: #ffd5df; color: var(--night); }
.button-secondary {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(246,243,247,.45);
}
.button-secondary:hover { color: var(--bloom); box-shadow: inset 0 0 0 1px var(--bloom); }

.hero-founded {
  margin: 2.5rem 0 0;
  color: var(--muted-night);
  font-size: .875rem;
}

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem 6rem;
  padding-top: 7.5rem;
  padding-bottom: 6rem;
}

.trades > article {
  flex: 1 1 440px;
  min-width: 0;
}

.trades h2,
.method h2,
.roadmap h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 520px;
  margin: 1.125rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.cloud-services dl {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row dt {
  flex: 0 0 220px;
  font-weight: 600;
}
.service-row dd {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
}

.local-diagram { margin: 2.5rem 0 0; }
.diagram-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.computer-frame {
  flex: 1 1 260px;
  min-width: 0;
  padding: 1.25rem;
  border: 2px solid var(--cherry);
  border-radius: 14px;
  background: #fbf2f5;
}
.computer-frame > p {
  margin: 0 0 .875rem;
  color: var(--cherry);
  font-weight: 600;
}
.computer-items { display: flex; flex-wrap: wrap; gap: .625rem; }
.computer-items span {
  padding: .625rem .875rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.computer-items span:last-child {
  background: var(--night);
  color: var(--paper);
  box-shadow: none;
}
.foreign-server {
  flex: 0 0 auto;
  padding: .625rem .875rem;
  border: 1px dashed #9a8ba5;
  border-radius: 8px;
  color: #6f607b;
  text-decoration: line-through;
}
.local-diagram figcaption {
  margin-top: .875rem;
  color: #6f607b;
  font-size: .9375rem;
}
.product-link { margin: 1.75rem 0 0; font-weight: 600; }

.references {
  padding: 5.5rem 0;
  background: var(--night);
  color: var(--paper);
}
.references h2 {
  margin: 0 0 1.25rem;
  color: var(--muted-night);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.references p {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(1.875rem, 4.4vw, 3.625rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.method { padding-top: 7rem; padding-bottom: 4rem; }
.method ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.step-number {
  margin: 0;
  color: var(--cherry);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}
.method h3,
.roadmap h3 { margin: .875rem 0 .375rem; font-size: 1.25rem; }
.method li > p:last-child,
.roadmap li > p { margin: 0; color: var(--muted); line-height: 1.6; }

.roadmap { padding-top: 4rem; padding-bottom: 7rem; }
.roadmap ol {
  display: flex;
  flex-wrap: wrap;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.roadmap-step {
  flex: 1 1 280px;
  min-width: 0;
  padding: 1.5rem 1.75rem 1.5rem 0;
  border-top: 4px solid var(--line);
}
.roadmap-step-1 { border-top-color: var(--cherry); }
.roadmap-step-3 { border-top-style: dashed; }
.roadmap h3 { margin-top: 0; }

.contact {
  padding: 6.5rem 0;
  background: var(--cherry);
  color: #fff;
}
.contact h2 {
  max-width: 900px;
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.contact-email {
  margin: 2.5rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-email a {
  color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.contact-email a:hover { color: var(--bloom); }
.contact-location { margin: .75rem 0 0; color: var(--bloom); }

.footer {
  padding: 1.75rem 0;
  color: #6f607b;
  font-size: .875rem;
}
.footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

@media (max-width: 840px) {
  .method ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-veil { background: linear-gradient(90deg, rgba(27,18,38,.78), rgba(27,18,38,.38) 72%, rgba(27,18,38,.12)); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  .nav { align-items: flex-start; gap: 1rem; padding-block: 1.125rem; }
  .brand { font-size: 1.25rem; }
  .nav-links { gap: .75rem 1rem; justify-content: flex-end; font-size: .8125rem; }
  .nav-links a:nth-child(-n+3) { display: none; }
  .hero { min-height: 760px; max-height: 880px; }
  .hero-content { padding-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(2.25rem, 10.4vw, 4.3rem); line-height: .97; text-wrap: wrap; }
  .hero-intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.5; }
  .hero-actions { display: grid; margin-top: 1.5rem; }
  .button { width: 100%; min-height: 3.25rem; padding: .875rem 1rem; }
  .hero-founded { margin-top: 1.25rem; }
  .trades { padding-top: 5rem; padding-bottom: 4.5rem; gap: 4.5rem; }
  .section-intro { font-size: 1rem; }
  .service-row dt,
  .service-row dd { flex-basis: 100%; }
  .references { padding-block: 4.5rem; }
  .method { padding-top: 5rem; padding-bottom: 3rem; }
  .method ol { grid-template-columns: 1fr; gap: 2.5rem; }
  .roadmap { padding-top: 3rem; padding-bottom: 5rem; }
  .roadmap ol { display: block; }
  .contact { padding-block: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
