/* =========================================
   Cedric Leroy — V2 visual direction
   warm / minimal / geometric / post-digital
========================================= */

:root {
  --bg: #f2eee7;
  --surface: #fbf8f3;
  --surface-soft: #e9e2d9;
  --text: #171513;
  --muted: #6c645d;
  --border: rgba(23, 21, 19, 0.14);

  --dark: #0b0b0d;
  --dark-soft: #131316;
  --dark-2: #1a1718;
  --light-on-dark: #f7f2ea;

  --cream: #f5d27e;
  --peach: #ffb15e;
  --orange: #ff7a38;
  --hot-orange: #ff4b21;
  --red: #ee1230;
  --wine: #8e1139;

  --accent: var(--hot-orange);
  --accent-dark: #b93618;

  --container: 1180px;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(27, 18, 11, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

.hero a:focus-visible,
.hero button:focus-visible,
.section--approach a:focus-visible,
.section--approach button:focus-visible,
.section--contact a:focus-visible,
.section--contact button:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: var(--cream);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 860px;
  margin-bottom: 30px;
  font-size: clamp(3.45rem, 7vw, 6.9rem);
  font-weight: 720;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.65rem);
  font-weight: 680;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.eyebrow {
  margin-bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
}

.section--project .eyebrow,
.section--light .eyebrow {
  color: var(--accent-dark);
}

.eyebrow--light {
  color: #ffc6ad;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--dark);
  color: white;
  transform: translateY(-150%);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 13, 0.93);
  border-color: rgba(255,255,255,0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  color: white;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: var(--orange);
  color: #140d0b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.brand-name {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a:not(.button) {
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
}

.main-nav > a:not(.button):hover {
  color: white;
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: white;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button--small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.88rem;
}

.button--accent {
  background: var(--orange);
  color: #160e0a;
}

.button--accent:hover {
  background: var(--peach);
}

.button--ghost {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.04);
  color: white;
}

.button--ghost:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.07);
}

.button--dark {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: white !important;
}

.button--dark:hover {
  background: rgba(255,255,255,0.14);
}

.button--light {
  background: var(--light-on-dark);
  color: var(--dark);
}

.text-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 780;
  color: var(--text);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 132px;
  background: var(--dark);
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 72px;
}

.hero h1 {
  color: white;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.72);
  font-size: clamp(1.14rem, 2vw, 1.48rem);
}

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

.hero-meta {
  margin: 22px 0 0;
  color: rgba(255,255,255,0.48);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.capsule-art {
  position: relative;
  width: min(100%, 540px);
  height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.capsule {
  width: 118px;
  height: 330px;
  margin-left: -28px;
  border-radius: 999px;

}

.capsule:first-child {
  margin-left: 0;
}

.capsule--1 { background: #f2cf79; }
.capsule--2 { background: #f5ad5a; }
.capsule--3 { background: #f98a48; }
.capsule--4 { background: #fb6433; }
.capsule--5 { background: #f83d27; }
.capsule--6 { background: #ed1830; }
.capsule--7 { background: #92143b; }

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.hero-orbit--one {
  width: 470px;
  height: 470px;
}

.hero-orbit--two {
  width: 600px;
  height: 600px;
  border-color: rgba(255, 88, 48, 0.07);
}

.floating-note {
  position: absolute;
  right: 2px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.floating-note--dark {
  background: rgba(19,19,22,0.76);
  color: rgba(255,255,255,0.78);
  box-shadow: 0 14px 35px rgba(0,0,0,0.20);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
}

/* Shared sections */

.section-heading {
  margin-bottom: 52px;
}

.section-heading--wide {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
  align-items: end;
}

.section-heading--wide > p {
  max-width: 430px;
  margin-bottom: 8px;
}

/* Project */

.section--project {
  background: var(--surface);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 22px 60px rgba(31, 22, 15, 0.07);
}

.project-preview {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 34px;
  background: #171513;
}

.project-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0b0d;
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-shot--desktop {
  position: absolute;
  inset: 34px 34px 76px 34px;
  border-radius: 18px;
}

.project-shot--desktop img {
  object-position: top center;
}

.project-shot--mobile {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 28%;
  aspect-ratio: 390 / 570;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.project-shot--mobile img {
  object-position: top center;
}

.project-kicker {
  margin-bottom: 8px !important;
  color: #ffd5bf !important;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
}

.project-content h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.project-details {
  display: grid;
  gap: 18px;
  margin: 36px 0;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.project-details span {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-details strong {
  font-size: 0.92rem;
}

.tags,
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags {
  margin-bottom: 30px;
}

.tags span,
.stack span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.73rem;
  background: rgba(255,255,255,0.46);
}

/* decorative bridge */

.capsule-divider {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  height: 46px;
  overflow: hidden;
  background: var(--surface);
}

.capsule-divider span {
  width: 68px;
  border-radius: 999px 999px 0 0;
  margin-left: -10px;
}
.capsule-divider span:first-child { margin-left: 0; }
.capsule-divider span:nth-child(1) { background: var(--cream); }
.capsule-divider span:nth-child(2) { background: var(--peach); }
.capsule-divider span:nth-child(3) { background: var(--orange); }
.capsule-divider span:nth-child(4) { background: var(--red); }
.capsule-divider span:nth-child(5) { background: var(--wine); }

/* Services */

#services {
  background:
    radial-gradient(circle at 12% 8%, rgba(245,210,126,.18), transparent 19%),
    var(--bg);
}

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

.service-card {
  position: relative;
  min-height: 310px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(251, 248, 243, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 33, 0.20);
  background: rgba(251, 248, 243, 0.86);
}




.service-card h3 {
  margin: 38px 0 14px;
  font-size: 2rem;
}

.service-number,
.service-detail {
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
}

.service-number {
  color: var(--accent-dark);
}

.service-detail {
  display: block;
  margin-top: 34px;
  color: var(--muted);
}

/* Approach */

.section--approach {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 78, 35, .14), transparent 28%),
    linear-gradient(180deg, #0c0c0e, #101013);
  color: var(--light-on-dark);
}

.section--approach::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -270px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255,255,255,0.015),
    0 0 0 96px rgba(255,255,255,0.01);
}

.section--approach h2,
.section--approach h3 {
  color: var(--light-on-dark);
}

.approach-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.approach-lead {
  margin-bottom: 46px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: rgba(247,244,239,0.78);
}

.approach-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-points article {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.approach-points h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.approach-points p {
  color: rgba(247,244,239,0.60);
  font-size: 0.94rem;
}

/* About */

#a-propos {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%),
    var(--bg);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.about-lead {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.about-copy > p {
  max-width: 690px;
}

.stack {
  margin: 34px 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link:first-child svg {
  fill: currentColor;
  stroke: none;
}

.icon-link:hover {
  color: var(--accent);
  border-color: rgba(255, 75, 33, 0.34);
  background: rgba(255,255,255,0.42);
  transform: translateY(-1px);
}

.icon-link--light {
  color: white;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
}

.icon-link--light:hover {
  color: white;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
}

.icon-link--light svg {
  fill: none !important;
  stroke: currentColor !important;
}

.contact-location {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255,255,255,0.72);
}

/* Contact */

.section--contact {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 25%, rgba(255, 207, 119, .24), transparent 28%),
    linear-gradient(110deg, #f08b43 0%, #ff5f2d 44%, #ed1631 72%, #93123a 100%);
  color: white;
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.10), transparent 45%);
}

.section--contact h2 {
  color: white;
}

.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-content > p {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.86);
  font-size: 1.18rem;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.contact-meta a {
  color: white;
}

/* Footer */

.site-footer {
  padding: 28px 0;
  background: var(--dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255,255,255,0.50);
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .capsule-art {
    max-width: 650px;
  }
}

@media (max-width: 980px) {
  .project-card,
  .approach-grid,
  .about-grid,
  .contact-grid,
  .section-heading--wide {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .project-preview {
    min-height: 560px;
  }

  .project-shot--desktop {
    inset: 28px 28px 72px 28px;
  }

  .project-shot--mobile {
    width: 29%;
  }

  .section-heading--wide,
  .approach-grid,
  .about-grid,
  .contact-grid {
    gap: 42px;
  }

  .approach-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(18,18,21,0.98);
    box-shadow: 0 24px 60px rgba(0,0,0,0.30);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a:not(.button) {
    padding: 13px 10px;
  }

  .main-nav .button {
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 700px) {
  .capsule-art {
    height: 300px;
  }

  .capsule {
    width: 82px;
    height: 250px;
    margin-left: -20px;
  }

  .hero-orbit--one {
    width: 340px;
    height: 340px;
  }

  .hero-orbit--two {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.3rem);
  }

  .hero {
    padding: 64px 0 90px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-visual {
    min-height: 330px;
  }

  .capsule-art {
    width: 100%;
    height: 240px;
  }

  .capsule {
    width: 62px;
    height: 205px;
    margin-left: -15px;
  }

  .hero-orbit--one,
  .hero-orbit--two {
    display: none;
  }

  .floating-note {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 14px auto 0;
  }

  .project-preview {
    min-height: 420px;
    padding: 20px;
  }

  .project-shot--desktop {
    inset: 20px 20px 58px 20px;
    border-radius: 14px;
  }

  .project-shot--mobile {
    right: 14px;
    bottom: 14px;
    width: 34%;
    border-radius: 14px;
  }

  .project-content {
    padding: 36px 26px;
  }

  .project-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .about-links,
  .footer-inner {
    flex-direction: column;
  }

  .footer-inner {
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
