:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --panel: #161a22;
  --panel-2: #1a1f29;
  --paper: #f2f0eb;
  --paper-2: #e9e6df;
  --ink: #11131a;
  --muted: #747a88;
  --muted-light: #9ba2b2;
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: rgba(17, 19, 26, 0.14);
  --blue: #6f8cff;
  --blue-2: #89a0ff;
  --blue-soft: #dfe5ff;
  --white: #ffffff;
  --max: 1280px;
  --radius: 22px;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  color: white;
  background: var(--blue);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: var(--blue);
  pointer-events: none;
}

/* HEADER */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 13, 18, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--bg);
  background: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
}

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

.main-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

/* LAYOUT */

.section {
  padding: clamp(88px, 10vw, 150px) 0;
}

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

.section-light {
  color: var(--ink);
  background: var(--paper);
}

.section-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-label-dark {
  color: var(--blue-2);
}

/* HERO */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  min-height: 100svh;
  overflow: hidden;
  padding: 74px 0 58px;
  background:
    radial-gradient(circle at 70% 28%, rgba(111, 140, 255, .17), transparent 30%),
    linear-gradient(135deg, #090b0f 0%, #0d1016 48%, #111726 100%);
}

.hero::before {
  position: absolute;
  top: 74px;
  right: 0;
  width: 32%;
  height: calc(100% - 74px);
  content: "";
  border-left: 1px solid var(--line-dark);
  background: rgba(111, 140, 255, .035);
}

.hero-grid-line {
  position: absolute;
  z-index: 0;
  background: var(--line-dark);
}

.hero-grid-line-1 {
  top: 74px;
  bottom: 58px;
  left: 7.5%;
  width: 1px;
}

.hero-grid-line-2 {
  top: 63%;
  right: 0;
  left: 0;
  height: 1px;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 9vw, 130px) 6vw 100px 7.5vw;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 42px;
  color: #c4cada;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(111, 140, 255, .11);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.4vw, 138px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.08em;
}

.hero h1 span {
  display: block;
  margin-left: 14%;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255, 255, 255, .8);
}

.hero-role {
  margin: 42px 0 0;
  color: var(--blue-2);
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.hero-description {
  max-width: 660px;
  margin: 18px 0 0;
  color: #a9b0bf;
  font-size: 16px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 17px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

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

.btn-primary {
  color: var(--bg);
  background: var(--blue);
}

.btn-primary:hover {
  background: #8fa4ff;
}

.btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, .19);
  background: rgba(255, 255, 255, .025);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}

.hero-links a,
.inline-link,
.secondary-links a {
  color: #d2d7e1;
  font-family: var(--mono);
  font-size: 10px;
  text-underline-offset: 5px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 7vw 105px 3vw;
}

.portrait-panel {
  position: relative;
  z-index: 3;
  width: min(100%, 510px);
  aspect-ratio: .76;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--panel);
  box-shadow: 28px 32px 0 rgba(111, 140, 255, .12);
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 28%;
  filter: saturate(.82) contrast(1.03);
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 64%, rgba(11, 13, 18, .25)),
    linear-gradient(90deg, rgba(16, 20, 30, .13), transparent 35%);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  z-index: 5;
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-meta-top {
  top: 88px;
  right: 28px;
  left: 3vw;
  justify-content: space-between;
  color: #787f8f;
}

.hero-meta-bottom {
  right: 5vw;
  bottom: 76px;
  left: 3vw;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta-bottom strong {
  padding: 7px 9px;
  color: #c8cfde;
  border: 1px solid var(--line-dark);
  font-size: 8px;
  font-weight: 400;
}

.hero-corner {
  position: absolute;
  z-index: 1;
  top: 20%;
  right: 5%;
  width: 120px;
  height: 120px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  opacity: .45;
}

.stack-strip {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  overflow-x: auto;
  padding: 0 24px;
  border-top: 1px solid var(--line-dark);
  background: rgba(11, 13, 18, .78);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.stack-strip i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

/* PROFILE */

.profile-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 9vw, 130px);
}

.section-heading h2,
.skills-heading h2,
.journey-heading h2,
.contact-copy h2,
.projects-intro h2 {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.055em;
}

.section-heading h2 span,
.skills-heading h2 span,
.journey-heading h2 span,
.contact-copy h2 span,
.projects-intro h2 span {
  color: var(--blue);
}

.profile-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.profile-copy p:not(.lead) {
  color: #555b66;
  font-size: 15px;
  line-height: 1.8;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.profile-facts div {
  padding: 18px 14px 18px 0;
}

.profile-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line-light);
}

.profile-facts span {
  display: block;
  margin-bottom: 7px;
  color: #858b96;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.profile-facts strong {
  font-size: 13px;
}

/* PROJECTS */

.projects-section {
  background: var(--bg);
}

.projects-intro {
  display: grid;
  grid-template-columns: 1fr .45fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}

.projects-intro .section-label {
  grid-column: 1 / -1;
}

.projects-intro h2 {
  font-size: clamp(48px, 6.8vw, 96px);
}

.projects-intro > p:last-child {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--muted-light);
  line-height: 1.7;
}

.project-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(440px, 1.16fr);
  min-height: 650px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--bg-soft);
}

.project-feature-weather {
  grid-template-columns: minmax(0, .84fr) minmax(440px, 1.16fr);
}

.project-index {
  position: absolute;
  z-index: 5;
  top: 22px;
  right: 26px;
  color: rgba(255, 255, 255, .12);
  font-family: var(--mono);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 82px);
}

.project-heading p {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.project-heading h3 {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -.06em;
}

.project-summary {
  max-width: 530px;
  margin: 28px 0 0;
  color: #aeb5c3;
  font-size: 15px;
  line-height: 1.75;
}

.project-points {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  color: #d5d9e1;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.project-points li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--blue);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.project-tags span {
  padding: 7px 8px;
  color: #b9c0cf;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.project-actions {
  align-items: center;
}

.project-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-left: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 50% 48%, rgba(111, 140, 255, .19), transparent 30%),
    #0d1016;
}

.model-visual svg {
  position: absolute;
  inset: 10% 6%;
  width: 88%;
  height: 80%;
}

.model-visual path,
.model-visual circle {
  fill: none;
  stroke: rgba(111, 140, 255, .56);
  stroke-width: 1.1;
}

.model-visual circle:first-of-type {
  stroke: rgba(255, 255, 255, .45);
}

.model-node {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 118px;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(12, 15, 21, .92);
  font-family: var(--mono);
}

.model-node b {
  color: white;
  font-size: 9px;
}

.model-node span {
  color: var(--blue-2);
  font-size: 6px;
}

.model-film {
  top: 45%;
  left: 42%;
}

.model-acteur {
  top: 16%;
  right: 8%;
}

.model-role {
  right: 8%;
  bottom: 13%;
}

.model-genre {
  bottom: 13%;
  left: 8%;
}

.visual-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #676e7c;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
}

.api-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(48px, 7vw, 90px);
}

.api-line {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .02);
  font-family: var(--mono);
}

.api-line span {
  color: var(--blue-2);
  font-size: 8px;
}

.api-line code {
  color: #d7dbe4;
  font-family: var(--mono);
  font-size: 10px;
}

.api-line i {
  color: #707787;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.api-line-active {
  border-color: rgba(111, 140, 255, .68);
  background: rgba(111, 140, 255, .09);
}

.api-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 26px;
  color: #818797;
  font-family: var(--mono);
  font-size: 7px;
}

.api-flow b {
  color: var(--blue);
}

.secondary-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}

.secondary-project {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--bg-soft);
}

.secondary-preview {
  position: relative;
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.projectboost-preview {
  background:
    linear-gradient(135deg, rgba(111, 140, 255, .14), transparent 50%),
    #11151d;
}

.projectboost-preview > div {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 7px;
}

.projectboost-preview span {
  padding: 6px 8px;
  color: var(--blue-2);
  border: 1px solid rgba(111, 140, 255, .35);
  font-family: var(--mono);
  font-size: 6px;
}

.projectboost-preview strong {
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -.06em;
}

.atelier-preview {
  background: #25150f;
}

.atelier-arch {
  position: absolute;
  top: -50px;
  right: -18px;
  width: 70%;
  height: 130%;
  border: 1px solid rgba(255, 235, 218, .22);
  border-radius: 50% 50% 0 0;
}

.atelier-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: #f2ddd0;
}

.atelier-copy span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .15em;
}

.atelier-copy strong {
  font-size: clamp(44px, 5.5vw, 72px);
  letter-spacing: -.06em;
}

.secondary-copy {
  padding: 28px;
}

.secondary-copy h3 {
  margin: 0;
  font-size: 28px;
}

.secondary-copy > p:not(.section-label) {
  color: #9aa1b0;
  font-size: 13px;
  line-height: 1.7;
}

.secondary-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* SKILLS */

.skills-heading {
  margin-bottom: 54px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.skill-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.skill-number {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
}

.skill-card p {
  margin: 92px 0 16px;
  color: #828894;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.skill-card h3 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.04em;
}

.skill-card small {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #777e89;
  font-size: 11px;
  line-height: 1.5;
}

.skill-card-accent {
  color: white;
  background: var(--blue);
}

.skill-card-accent .skill-number,
.skill-card-accent p,
.skill-card-accent small {
  color: rgba(10, 13, 18, .72);
}

/* JOURNEY */

.journey-section {
  color: var(--ink);
  background: var(--paper-2);
}

.journey-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(70px, 9vw, 130px);
}

.journey-heading > p:last-child {
  max-width: 420px;
  margin-top: 28px;
  color: #656b76;
  line-height: 1.75;
}

.timeline {
  border-top: 1px solid var(--line-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-light);
}

.timeline-date {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
}

.timeline-item p {
  margin: 0 0 7px;
  color: #858b96;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.timeline-item div > span {
  color: #646b77;
  font-size: 12px;
  line-height: 1.55;
}

/* CONTACT */

.contact-section {
  padding: clamp(90px, 11vw, 160px) 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(111, 140, 255, .14), transparent 24%),
    var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(60px, 8vw, 110px);
}

.contact-copy > p:last-child {
  margin-top: 24px;
  color: var(--muted-light);
  line-height: 1.7;
}

.contact-actions {
  border-top: 1px solid var(--line-dark);
}

.contact-actions a {
  display: grid;
  grid-template-columns: 120px 1fr 30px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  transition: padding .2s ease, color .2s ease;
}

.contact-actions a:hover {
  padding-left: 10px;
  color: var(--blue-2);
}

.contact-actions span {
  color: #697080;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.contact-actions strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-actions b {
  color: var(--blue);
  font-weight: 400;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  color: #6d7482;
  border-top: 1px solid var(--line-dark);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

/* CASE STUDIES */

.case-page {
  background: var(--bg);
}

.case-hero {
  position: relative;
  min-height: 78svh;
  padding: 150px 0 100px;
  border-bottom: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 82% 30%, rgba(111, 140, 255, .16), transparent 25%),
    var(--bg);
}

.case-shell {
  width: min(calc(100% - 48px), 1120px);
  margin-inline: auto;
}

.case-kicker {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: clamp(58px, 9vw, 124px);
  line-height: .84;
  letter-spacing: -.075em;
}

.case-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .75);
}

.case-intro {
  max-width: 720px;
  margin-top: 32px;
  color: #a6adbb;
  font-size: 17px;
  line-height: 1.75;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.case-stack span {
  padding: 7px 9px;
  border: 1px solid var(--line-dark);
  color: #bec4d0;
  font-family: var(--mono);
  font-size: 7px;
}

.case-section {
  padding: 90px 0;
}

.case-section-light {
  color: var(--ink);
  background: var(--paper);
}

.case-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.case-side {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.case-body h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.case-body p,
.case-body li {
  color: #5c626d;
  line-height: 1.8;
}

.case-page .case-section:not(.case-section-light) .case-body p,
.case-page .case-section:not(.case-section-light) .case-body li {
  color: #a4abb9;
}

.case-body ul {
  padding-left: 19px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.case-page .case-section:not(.case-section-light) .case-metrics {
  border-color: var(--line-dark);
}

.case-metrics div {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.case-page .case-section:not(.case-section-light) .case-metrics div {
  border-color: var(--line-dark);
}

.case-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
}

.case-metrics span {
  display: block;
  margin-top: 8px;
  color: #777e89;
  font-size: 11px;
}

.case-back {
  display: inline-block;
  margin-top: 32px;
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 9px;
  text-underline-offset: 5px;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .65s cubic-bezier(.22, 1, .36, 1),
    transform .65s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    min-height: 720px;
  }

  .hero-visual {
    min-height: 720px;
    border-top: 1px solid var(--line-dark);
  }

  .portrait-panel {
    width: min(70%, 520px);
  }

  .profile-layout,
  .journey-layout,
  .contact-layout,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    grid-template-columns: 1fr;
  }

  .project-feature,
  .project-feature-weather {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 560px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: white;
    border: 1px solid var(--line-dark);
    background: transparent;
    padding: 8px 10px;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px 26px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(11, 13, 18, .98);
  }

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

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .section-shell,
  .case-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-copy {
    min-height: 660px;
    padding: 120px 20px 90px;
  }

  .hero h1 {
    font-size: clamp(58px, 21vw, 96px);
  }

  .hero h1 span {
    margin-left: 0;
  }

  .hero-visual {
    min-height: 600px;
    padding: 80px 20px 100px;
  }

  .portrait-panel {
    width: min(90%, 420px);
  }

  .hero-meta-bottom {
    right: 20px;
    left: 20px;
  }

  .hero-meta-top {
    right: 18px;
    left: 18px;
  }

  .stack-strip {
    justify-content: flex-start;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .project-content {
    padding: 44px 22px;
  }

  .project-visual {
    min-height: 440px;
  }

  .model-node {
    min-width: 90px;
  }

  .model-film {
    left: 37%;
  }

  .secondary-projects,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 320px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-actions a {
    grid-template-columns: 72px 1fr 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 18px;
  }

  .case-hero {
    padding-top: 125px;
  }

  .case-hero h1 {
    font-size: clamp(52px, 17vw, 84px);
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================
   V2 — evidence & rhythm
========================= */

.hero h1 {
  font-size: clamp(60px, 7.5vw, 124px);
}

.hero-role {
  margin-top: 34px;
}

.real-preview {
  padding: 0;
  background: #0d1016;
}

.real-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.9) contrast(1.02);
  transition: transform .45s ease, filter .45s ease;
}

.secondary-project:hover .real-preview img {
  transform: scale(1.018);
  filter: saturate(1);
}

.journey-section {
  padding-top: clamp(76px, 8vw, 110px);
  padding-bottom: clamp(76px, 8vw, 110px);
}

.compact-case {
  padding-top: 72px;
  padding-bottom: 72px;
}

.evidence-panel {
  margin-top: 34px;
  border: 1px solid var(--line-dark);
}

.evidence-dark {
  color: white;
  background:
    radial-gradient(circle at 65% 45%, rgba(111, 140, 255, .13), transparent 32%),
    #0d1016;
}

.evidence-light {
  color: var(--ink);
  border-color: var(--line-light);
  background: rgba(255,255,255,.34);
}

.evidence-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: #81899a;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
}

.domain-map {
  display: block;
  width: 100%;
  min-height: 390px;
  padding: 18px;
}

.domain-lines line {
  stroke: rgba(111, 140, 255, .52);
  stroke-width: 1.4;
}

.domain-arrow {
  fill: var(--blue);
}

.domain-box rect {
  fill: rgba(15, 18, 25, .94);
  stroke: rgba(255,255,255,.18);
}

.domain-box text {
  fill: white;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.domain-box text.small {
  fill: var(--blue-2);
  font-size: 9px;
  font-weight: 400;
}

.domain-core rect {
  stroke: rgba(111, 140, 255, .85);
  fill: rgba(111, 140, 255, .08);
}

.relation-label {
  fill: #717988;
  font-family: var(--mono);
  font-size: 9px;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
}

.pipeline > b {
  align-self: center;
  color: var(--blue);
  font-weight: 400;
}

.pipeline-step {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,.42);
}

.pipeline-step span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
}

.pipeline-step strong {
  margin-top: 10px;
  font-size: 15px;
}

.pipeline-step small {
  margin-top: 6px;
  color: #727984;
  line-height: 1.4;
}

.case-list {
  margin-top: 24px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0 30px;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.case-section-light .result-grid {
  border-color: var(--line-light);
}

.result-grid div {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.case-section-light .result-grid div {
  border-color: var(--line-light);
}

.result-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.result-grid strong {
  font-size: 15px;
}

.api-architecture {
  padding-bottom: 18px;
}

.architecture-row {
  display: grid;
  grid-template-columns: repeat(11, auto);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 28px 18px 18px;
}

.architecture-row > b {
  color: var(--blue);
  font-weight: 400;
}

.architecture-box {
  display: flex;
  min-width: 105px;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.02);
}

.architecture-box span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 7px;
}

.architecture-box strong {
  margin-top: 9px;
  font-size: 14px;
}

.architecture-box small {
  margin-top: 5px;
  color: #777f8e;
}

.architecture-box-accent {
  border-color: rgba(111,140,255,.7);
  background: rgba(111,140,255,.09);
}

.architecture-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 10px 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.architecture-support div {
  padding: 16px 10px 6px 0;
}

.architecture-support span {
  display: block;
  color: #727b8c;
  font-family: var(--mono);
  font-size: 7px;
}

.architecture-support strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.openapi-panel {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,.45);
}

.openapi-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  color: white;
  background: var(--ink);
}

.openapi-title strong {
  font-size: 18px;
}

.openapi-title span {
  padding: 5px 8px;
  color: var(--blue-2);
  border: 1px solid rgba(137,160,255,.45);
  font-family: var(--mono);
  font-size: 7px;
}

.endpoint-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line-light);
}

.endpoint-row:first-of-type {
  border-top: 0;
}

.endpoint-row .method {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.endpoint-row code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.endpoint-row small {
  color: #69707b;
  text-align: right;
}

.endpoint-highlight {
  background: var(--blue-soft);
}

.endpoint-row .doc-method {
  color: #535b67;
}

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

  .pipeline > b {
    justify-self: center;
    transform: rotate(90deg);
  }

  .architecture-row {
    grid-template-columns: 1fr;
  }

  .architecture-row > b {
    justify-self: center;
    transform: rotate(90deg);
  }

  .architecture-box {
    min-width: 0;
  }

  .domain-map {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .result-grid,
  .architecture-support {
    grid-template-columns: 1fr;
  }

  .endpoint-row {
    grid-template-columns: 50px 1fr;
  }

  .endpoint-row small {
    grid-column: 2;
    text-align: left;
  }
}


/* =========================
   VERIFIED PASS — recruitment safety
========================= */

/* Reserve a clear bottom area for the secondary skill line. */
.skill-card h3 {
  padding-bottom: 54px;
}

.api-preview-label {
  margin-bottom: 4px;
  color: #6f7786;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.journey-other {
  grid-column: 2;
  margin: 24px 0 0;
  color: #646b77;
  font-size: 11px;
  line-height: 1.65;
}

.journey-other span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.verified-model {
  display: grid;
  grid-template-columns: 1fr 1.1fr .9fr;
  gap: 18px;
  padding: 24px;
}

.model-inheritance,
.verified-film,
.verified-role {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verified-node {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.025);
}

.verified-node-core {
  border-color: rgba(111,140,255,.75);
  background: rgba(111,140,255,.09);
}

.verified-node strong {
  display: block;
  font-size: 12px;
}

.verified-node span,
.verified-relation,
.relation-list div {
  color: #8d96a8;
  font-family: var(--mono);
  font-size: 7px;
}

.verified-node span {
  display: block;
  margin-top: 5px;
}

.inheritance-children {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.verified-relation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
}

.verified-relation b,
.relation-list b {
  color: var(--blue-2);
  font-weight: 400;
}

.relation-list {
  display: grid;
  gap: 7px;
}

.relation-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.08);
}

.evidence-note {
  margin: 0;
  padding: 0 24px 20px;
  color: #697284 !important;
  font-family: var(--mono);
  font-size: 7px !important;
  letter-spacing: .03em;
}

.verified-weather-architecture {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr auto 1fr;
}

.verified-weather-architecture .architecture-box {
  min-width: 0;
}

.architecture-support {
  grid-template-columns: repeat(4, 1fr);
}

.method-post {
  color: #4c8a68 !important;
}

.method-put {
  color: #b0813c !important;
}

.method-delete {
  color: #b55b63 !important;
}

@media (max-width: 1040px) {
  .journey-other {
    grid-column: 1;
  }

  .verified-model {
    grid-template-columns: 1fr;
  }

  .verified-weather-architecture {
    grid-template-columns: 1fr;
  }

  .verified-weather-architecture > b {
    justify-self: center;
    transform: rotate(90deg);
  }

  .architecture-support {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .architecture-support,
  .inheritance-children {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V3 — readability & accuracy
========================= */

/* Hero: the portrait supports the introduction instead of dominating it. */
.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
}

.hero-visual {
  padding-right: 5vw;
  padding-left: 2vw;
}

.portrait-panel {
  width: min(82%, 430px);
  aspect-ratio: .79;
}

.hero-meta-bottom {
  right: 3vw;
  left: 2vw;
  max-width: 560px;
}

.hero-meta-bottom strong {
  padding: 6px 8px;
  font-size: 7px;
}

.stack-strip {
  row-gap: 8px;
}

.api-model-note {
  margin-top: 10px;
  color: #6f7786;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
}

/* Exhaustive skills stay readable despite longer labels. */
.skill-card h3 {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.22;
}

.skill-card small {
  font-size: 10px;
}

/* Evidence link under the simplified JPA mapping. */
.evidence-link {
  display: inline-block;
  margin-top: 14px;
}

/* Weather: keep long French words inside narrow architecture boxes. */
.architecture-box small,
.architecture-support strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

.verified-weather-architecture {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr auto 1fr;
}

.architecture-box {
  min-width: 0;
  padding-inline: 10px;
}

.architecture-box small {
  font-size: 10px;
  line-height: 1.35;
}

.architecture-support-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.architecture-support-five strong {
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .architecture-support-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .portrait-panel {
    width: min(62%, 430px);
  }

  .architecture-support-five {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .portrait-panel {
    width: min(82%, 380px);
  }

  .architecture-support-five {
    grid-template-columns: 1fr;
  }
}


/* Preserve the original responsive layout after V3 desktop overrides. */
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .verified-weather-architecture {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-visual {
    padding: 80px 20px 100px;
  }

  .hero-meta-bottom {
    right: 20px;
    left: 20px;
  }
}


/* =========================
   V4 — simplified hero & smaller portrait
========================= */

/* The detailed skills section is the single source of truth; decorative skill strips were removed from the hero. */
.hero {
  padding-bottom: 74px;
}

.portrait-panel {
  width: min(68%, 350px);
  aspect-ratio: .79;
}

@media (max-width: 1040px) {
  .portrait-panel {
    width: min(52%, 340px);
  }
}

@media (max-width: 760px) {
  .portrait-panel {
    width: min(76%, 320px);
  }
}
