:root {
  --oxblood: #6f1f2a;
  --oxblood-deep: #3b1218;
  --ink: #171111;
  --ink-2: #241817;
  --paper: #f3ede3;
  --paper-soft: #fff8ed;
  --sand: #c09a74;
  --bronze: #8f6045;
  --muted: #766960;
  --line: rgba(111, 31, 42, 0.2);
  --line-dark: rgba(255, 248, 237, 0.16);
  --container: min(1220px, calc(100vw - 48px));
  --header-height: 86px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

#cabinet,
#expertises,
#methode,
#rayonnement,
#contact {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 31, 42, 0.14), transparent 34vw),
    linear-gradient(90deg, rgba(111, 31, 42, 0.045) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(180deg, rgba(111, 31, 42, 0.04) 1px, transparent 1px) 0 0 / 82px 82px,
    var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(23, 17, 17, 0.32) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(23, 17, 17, 0.24) 0 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: multiply;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  inset: 14px auto auto 14px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  font-size: 0.82rem;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  inset: 18px max(18px, calc((100vw - 1320px) / 2)) auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 248, 237, 0.14);
  background: rgba(21, 15, 15, 0.42);
  color: rgba(255, 248, 237, 0.86);
  backdrop-filter: blur(24px) saturate(130%);
  transition: height 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(20, 14, 14, 0.82);
  border-color: rgba(255, 248, 237, 0.22);
}

.brand {
  width: clamp(210px, 24vw, 332px);
  min-width: 188px;
}

.brand img {
  width: 100%;
  filter: brightness(0) invert(1) sepia(0.2) saturate(0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 248, 237, 0.72);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 6px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--sand);
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: white;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  padding: 11px 15px;
  border: 1px solid rgba(255, 248, 237, 0.26);
  color: white;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 248, 237, 0.22);
  background: rgba(255, 248, 237, 0.06);
  cursor: pointer;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: white;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: -14px;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.case-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: max(34px, calc((100vw - 1280px) / 2)) repeat(12, minmax(0, 1fr)) max(34px, calc((100vw - 1280px) / 2));
  align-items: center;
  padding: calc(var(--header-height) + 34px) 0 42px;
  background: #100b0b;
  color: var(--paper-soft);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 42%, rgba(111, 31, 42, 0.5), transparent 28vw),
    linear-gradient(90deg, rgba(9, 7, 7, 0.88) 0%, rgba(13, 9, 9, 0.74) 34%, rgba(13, 9, 9, 0.24) 58%, rgba(13, 9, 9, 0.48) 100%),
    linear-gradient(180deg, rgba(10, 7, 7, 0.58) 0%, transparent 36%, rgba(10, 7, 7, 0.78) 100%);
  pointer-events: none;
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 9.6vh 4.2vw 5.8vh 4.2vw;
  z-index: 2;
  border: 1px solid rgba(255, 248, 237, 0.14);
  border-left-color: rgba(192, 154, 116, 0.42);
  pointer-events: none;
}

.hero-scan {
  position: absolute;
  inset: 19vh max(34px, calc((100vw - 1280px) / 2)) auto auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  color: rgba(255, 248, 237, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}

.hero-image::before,
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-image::before {
  background:
    linear-gradient(105deg, rgba(93, 25, 34, 0.34) 0 28%, transparent 28.2% 100%),
    linear-gradient(12deg, transparent 0 64%, rgba(255, 248, 237, 0.08) 64.2% 64.8%, transparent 65% 100%);
}

.hero-image::after {
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.08), transparent);
  mix-blend-mode: soft-light;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.08) brightness(0.92);
  transform: scale(1.035);
  animation: imageReveal 1600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.trace {
  position: absolute;
  background: rgba(255, 248, 237, 0.24);
  animation: drawTrace 1800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trace-a {
  left: 4.2vw;
  top: 23vh;
  width: 23vw;
  height: 1px;
}

.trace-b {
  left: 4.2vw;
  top: 23vh;
  width: 1px;
  height: 55vh;
  animation-delay: 160ms;
}

.trace-c {
  right: 12vw;
  bottom: 20vh;
  width: 24vw;
  height: 1px;
  animation-delay: 260ms;
}

.hero-copy {
  grid-column: 2 / 9;
  position: relative;
  z-index: 5;
  min-width: 0;
  max-width: 980px;
  padding-top: clamp(76px, 10vh, 130px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -2.1vw;
  top: clamp(78px, 11vh, 148px);
  width: clamp(5px, 0.7vw, 9px);
  height: clamp(116px, 20vh, 210px);
  background: linear-gradient(180deg, var(--sand), var(--oxblood));
  box-shadow: 0 0 42px rgba(111, 31, 42, 0.36);
}

.kicker,
.section-tag {
  display: block;
  margin: 0 0 18px;
  color: var(--oxblood);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-hero .kicker,
.network .section-tag,
.contact .section-tag {
  color: #e6c3ab;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: inherit;
}

h1 {
  display: grid;
  max-width: 900px;
  font-size: clamp(4.4rem, 8.7vw, 9rem);
  line-height: 0.86;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  padding-left: clamp(18px, 5vw, 72px);
}

h1 span:nth-child(3) {
  padding-left: clamp(72px, 12vw, 164px);
  color: rgba(230, 195, 171, 0.88);
  font-style: italic;
}

h1 span:nth-child(4) {
  padding-left: clamp(18px, 4vw, 64px);
}

h2 {
  font-size: clamp(2.8rem, 6.4vw, 7rem);
  line-height: 0.92;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  line-height: 1;
  font-weight: 800;
}

.hero-text {
  width: min(520px, 100%);
  margin: clamp(24px, 4vh, 38px) 0 0 clamp(0px, 10vw, 144px);
  color: rgba(255, 248, 237, 0.78);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.72;
}

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

.hero-actions {
  margin-left: clamp(0px, 10vw, 144px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-solid {
  border-color: var(--oxblood);
  background: linear-gradient(135deg, #7b202d, var(--oxblood-deep));
  color: white;
}

.button-ghost {
  background: rgba(255, 248, 237, 0.07);
  color: currentColor;
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  background: rgba(255, 248, 237, 0.14);
}

.case-hero .button {
  min-width: 202px;
  min-height: 54px;
  padding-inline: 20px;
  border-color: rgba(255, 248, 237, 0.28);
  letter-spacing: 0;
}

.case-hero .button::after {
  content: "";
  width: 24px;
  height: 1px;
  margin-left: 14px;
  background: currentColor;
  opacity: 0.72;
  transition: transform 180ms ease;
}

.case-hero .button:hover::after {
  transform: translateX(5px);
}

.hero-brief {
  position: absolute;
  right: max(34px, calc((100vw - 1280px) / 2));
  bottom: 7vh;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(430px, calc(100vw - 48px));
  padding: 20px 0 0 24px;
  border-top: 1px solid rgba(255, 248, 237, 0.26);
  border-left: 1px solid rgba(192, 154, 116, 0.7);
  background: transparent;
  color: rgba(255, 248, 237, 0.78);
  font-style: normal;
  font-size: 0.84rem;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.brief-label {
  color: #e6c3ab;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet {
  position: relative;
  min-height: 96vh;
  display: grid;
  grid-template-columns: max(24px, calc((100vw - 1220px) / 2)) minmax(0, 0.74fr) minmax(280px, 0.56fr) max(24px, calc((100vw - 1220px) / 2));
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(100px, 11vw, 168px) 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(111, 31, 42, 0.055) 54.1% 100%),
    var(--paper);
}

.cabinet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 31, 42, 0.22), transparent);
}

.cabinet-plate {
  position: absolute;
  inset: auto 0 8% auto;
  display: grid;
  gap: 10px;
  width: min(56vw, 720px);
  color: rgba(111, 31, 42, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 0.78;
  pointer-events: none;
}

.cabinet-copy {
  grid-column: 2 / 3;
  max-width: 820px;
  align-self: center;
}

.cabinet-copy p:last-child {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(23, 17, 17, 0.72);
  font-size: 1.08rem;
}

.cabinet-visual {
  grid-column: 3 / 4;
  position: relative;
  align-self: stretch;
  min-height: clamp(520px, 50vw, 720px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 31, 42, 0.16);
  background: var(--ink);
}

.cabinet-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 14, 14, 0.04), rgba(20, 14, 14, 0.52)),
    linear-gradient(115deg, rgba(111, 31, 42, 0.3) 0 26%, transparent 26.2%);
}

.cabinet-visual::after {
  content: "2004";
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: 2;
  color: rgba(255, 248, 237, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 800;
  line-height: 1;
}

.cabinet-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.cabinet-marks {
  grid-column: 2 / 4;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(34px, 5vw, 72px) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  transform: none;
}

.cabinet-marks div {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 248, 237, 0.72);
}

.cabinet-marks dt {
  color: var(--oxblood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  font-weight: 800;
  line-height: 0.9;
}

.cabinet-marks dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.expertises {
  position: relative;
  padding: clamp(104px, 10vw, 156px) max(24px, calc((100vw - 1220px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.025), transparent 20%),
    radial-gradient(circle at 18% 8%, rgba(111, 31, 42, 0.22), transparent 34vw),
    #171111;
  color: var(--paper-soft);
}

.expertises-sticky {
  position: sticky;
  top: 150px;
  min-height: calc(100svh - 174px);
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.expertises-heading {
  align-self: start;
  padding-top: clamp(28px, 8vh, 72px);
}

.expertises-heading h2 {
  font-size: clamp(2.7rem, 4.6vw, 5rem);
}

.expertises-heading p:last-child,
.method-pin p,
.network-copy p {
  margin: 26px 0 0;
  color: rgba(255, 248, 237, 0.7);
}

.case-file {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(300px, 0.72fr);
  min-height: min(700px, calc(100svh - 150px));
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.06), rgba(255, 248, 237, 0.015)),
    rgba(255, 248, 237, 0.03);
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.case-file-index {
  display: grid;
  align-content: stretch;
  border-right: 1px solid var(--line-dark);
}

.case-entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 248, 237, 0.64);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.case-entry span {
  color: rgba(230, 195, 171, 0.64);
  font-family: Georgia, "Times New Roman", serif;
}

.case-entry:hover,
.case-entry:focus-visible,
.case-entry.is-active {
  background: linear-gradient(90deg, rgba(111, 31, 42, 0.72), rgba(111, 31, 42, 0.2));
  color: white;
  transform: translateX(8px);
}

.case-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.case-panel::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 248, 237, 0.12);
}

.case-panel::after {
  content: "B&A";
  position: absolute;
  right: -34px;
  top: 80px;
  width: 220px;
  transform: rotate(90deg);
  color: rgba(255, 248, 237, 0.12);
  font-size: 0.75rem;
  font-weight: 900;
}

.panel-code {
  position: relative;
  z-index: 2;
  width: max-content;
  margin-bottom: clamp(48px, 9vh, 92px);
  padding: 9px 12px;
  border: 1px solid rgba(230, 195, 171, 0.28);
  color: #e6c3ab;
  font-size: 0.75rem;
  font-weight: 900;
}

.case-panel h3,
.case-panel p,
.case-panel dl {
  position: relative;
  z-index: 2;
}

.case-panel p {
  margin: 20px 0 0;
  color: rgba(255, 248, 237, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.case-panel dl {
  display: grid;
  gap: 1px;
  margin: 36px 0 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.case-panel dl div {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 18px;
  padding: 16px;
  background: rgba(20, 14, 14, 0.62);
}

.case-panel dt {
  color: #e6c3ab;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-panel dd {
  margin: 0;
  color: rgba(255, 248, 237, 0.76);
}

.method {
  position: relative;
  display: grid;
  grid-template-columns: max(24px, calc((100vw - 1220px) / 2)) minmax(300px, 0.5fr) minmax(0, 0.82fr) max(24px, calc((100vw - 1220px) / 2));
  gap: clamp(36px, 7vw, 98px);
  padding: clamp(108px, 12vw, 176px) 0;
  background:
    linear-gradient(115deg, transparent 0 52%, rgba(111, 31, 42, 0.08) 52.1% 100%),
    var(--paper);
}

.method-pin {
  grid-column: 2 / 3;
  position: sticky;
  top: 120px;
  align-self: start;
}

.method-pin p {
  color: rgba(23, 17, 17, 0.7);
}

.method-visual {
  position: relative;
  margin: clamp(30px, 5vw, 54px) 0 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(111, 31, 42, 0.16);
  background: var(--ink);
}

.method-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(14, 10, 10, 0.54)),
    linear-gradient(115deg, rgba(111, 31, 42, 0.36), transparent 38%);
}

.method-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.method-meter {
  height: 2px;
  margin-top: 30px;
  background: rgba(111, 31, 42, 0.14);
  overflow: hidden;
}

.method-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--oxblood);
}

.method-steps {
  grid-column: 3 / 4;
  display: grid;
  gap: clamp(30px, 6vh, 72px);
  margin: 0;
  padding: 8vh 0 10vh;
  list-style: none;
}

.procedure-step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 0.42fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: baseline;
  min-height: 178px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  opacity: 0.54;
  transition: opacity 240ms ease, transform 240ms ease;
}

.procedure-step::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 0;
  bottom: -72px;
  width: 1px;
  background: rgba(111, 31, 42, 0.18);
}

.procedure-step:last-child::before {
  bottom: 0;
}

.procedure-step span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--oxblood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 800;
}

.procedure-step p {
  margin: 0;
  color: var(--muted);
}

.procedure-step.is-active {
  opacity: 1;
  transform: translateX(-12px);
}

.procedure-step.is-active span {
  background: var(--oxblood);
  color: white;
}

.network {
  position: relative;
  min-height: 106vh;
  display: grid;
  grid-template-columns: max(24px, calc((100vw - 1220px) / 2)) minmax(0, 0.95fr) minmax(320px, 0.56fr) max(24px, calc((100vw - 1220px) / 2));
  gap: clamp(36px, 7vw, 98px);
  align-items: center;
  padding: clamp(88px, 10vw, 150px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 40%, rgba(111, 31, 42, 0.36), transparent 30vw),
    #151010;
  color: var(--paper-soft);
}

.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.03) 1px, transparent 1px) 0 0 / 112px 112px,
    linear-gradient(180deg, rgba(255, 248, 237, 0.026) 1px, transparent 1px) 0 0 / 112px 112px;
  mask-image: radial-gradient(circle at 48% 48%, black, transparent 72%);
}

.network-visual {
  grid-column: 2 / 3;
  position: relative;
  z-index: 2;
  min-height: clamp(460px, 52vw, 700px);
  margin: 0;
  border: 1px solid rgba(255, 248, 237, 0.14);
  overflow: hidden;
  background: var(--ink);
}

.network-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(12, 9, 9, 0.76)),
    linear-gradient(110deg, rgba(111, 31, 42, 0.24), transparent 42%);
}

.network-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
}

.network-visual figcaption {
  position: absolute;
  left: clamp(22px, 4vw, 42px);
  right: clamp(22px, 4vw, 42px);
  bottom: clamp(22px, 4vw, 42px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 248, 237, 0.76);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.network-copy {
  grid-column: 3 / 4;
  position: relative;
  z-index: 2;
}

.network-copy h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.8rem);
}

.text-link {
  display: inline-flex;
  margin-top: 30px;
  border-bottom: 1px solid currentColor;
  color: #e6c3ab;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: max(24px, calc((100vw - 1220px) / 2)) minmax(0, 1fr) minmax(300px, 0.48fr) max(24px, calc((100vw - 1220px) / 2));
  gap: clamp(30px, 6vw, 80px);
  align-items: end;
  padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 132px);
  background:
    linear-gradient(115deg, rgba(111, 31, 42, 0.25) 0 34%, transparent 34.2%),
    linear-gradient(135deg, #2a1518, #100d0d 62%);
  color: var(--paper-soft);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/procedure-still-life.jpg") center / cover;
  opacity: 0.13;
  filter: saturate(0.8);
}

.contact-statement {
  grid-column: 2 / 3;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.contact-card {
  grid-column: 3 / 4;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  border-left: 2px solid var(--sand);
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.08) 1px, transparent 1px) 0 0 / 56px 56px,
    rgba(255, 248, 237, 0.06);
  color: rgba(255, 248, 237, 0.76);
  font-style: normal;
  backdrop-filter: blur(18px);
}

.contact-card span {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 800;
}

.contact-card a {
  color: #e6c3ab;
  font-weight: 900;
}

.contact-actions {
  grid-column: 2 / 4;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 36px max(24px, calc((100vw - 1220px) / 2));
  background: #0f0c0c;
  color: rgba(255, 248, 237, 0.64);
  font-size: 0.78rem;
}

.site-footer img {
  width: min(320px, 72vw);
  filter: brightness(0) invert(1) sepia(0.2) saturate(0.7);
}

.site-footer p {
  margin: 16px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-hero .reveal:nth-child(2),
.cabinet-marks .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.case-hero .reveal:nth-child(3),
.cabinet-marks .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.case-hero .reveal:nth-child(4) {
  transition-delay: 270ms;
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes drawTrace {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes pulsePin {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 154, 116, 0.18);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(192, 154, 116, 0);
  }
}

@media (max-width: 1120px) {
  .site-header {
    inset-inline: 14px;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.68rem;
  }

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

  .case-file-index {
    border-right: 0;
  }

  .case-panel {
    min-height: 360px;
    border-top: 1px solid var(--line-dark);
  }

  .expertises-sticky {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
    --container: min(100% - 32px, 1220px);
  }

  .site-header {
    height: var(--header-height);
    padding-inline: 14px;
  }

  .brand {
    width: 236px;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    width: min(430px, 100vw);
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 116px 28px 28px;
    background: rgba(19, 13, 13, 0.98);
    box-shadow: -34px 0 90px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .menu-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.96rem;
  }

  .site-nav .nav-cta {
    margin-top: 22px;
    padding: 16px !important;
    text-align: center;
  }

  .case-hero {
    min-height: 820px;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    padding-top: 118px;
    padding-bottom: 190px;
  }

  .hero-image {
    inset: 0;
  }

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

  .hero-copy {
    grid-column: 2 / 3;
    padding-top: 30px;
  }

  .hero-copy::before {
    left: 0;
    top: 18px;
    width: 72px;
    height: 3px;
  }

  .hero-text,
  .hero-actions {
    margin-left: 0;
  }

  .hero-brief {
    left: 20px;
    right: 20px;
    bottom: 28px;
    width: auto;
    padding-left: 18px;
  }

  .hero-scan {
    display: none;
  }

  .cabinet,
  .method,
  .network,
  .contact {
    grid-template-columns: 20px 1fr 20px;
  }

  .cabinet-copy,
  .cabinet-visual,
  .cabinet-marks,
  .method-pin,
  .method-steps,
  .network-visual,
  .network-copy,
  .contact-statement,
  .contact-card,
  .contact-actions {
    grid-column: 2 / 3;
  }

  .cabinet {
    min-height: auto;
    gap: 34px;
  }

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

  .cabinet-marks {
    grid-template-columns: 1fr;
    transform: none;
  }

  .method-pin {
    position: static;
  }

  .procedure-step {
    grid-template-columns: 78px 1fr;
  }

  .procedure-step span {
    width: 78px;
    height: 78px;
  }

  .procedure-step h3 {
    align-self: center;
  }

  .procedure-step p {
    grid-column: 2;
  }

  .procedure-step::before {
    left: 39px;
  }

  .network {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    inset: 10px 10px auto;
  }

  .brand {
    width: 204px;
    min-width: 0;
  }

  .case-hero {
    min-height: 760px;
    padding-top: 112px;
    padding-bottom: 178px;
  }

  h1 {
    font-size: clamp(2.18rem, 10.6vw, 2.58rem);
    line-height: 0.94;
  }

  h1 span:nth-child(2),
  h1 span:nth-child(3),
  h1 span:nth-child(4) {
    padding-left: 0;
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
    line-height: 0.96;
  }

  .button {
    width: 100%;
  }

  .case-hero .button {
    min-width: 0;
  }

  .cabinet,
  .expertises,
  .method,
  .network,
  .contact {
    padding-block: 78px;
  }

  .cabinet-visual {
    min-height: 360px;
  }

  .method-visual {
    aspect-ratio: 16 / 11;
  }

  .case-entry {
    grid-template-columns: 38px 1fr;
    min-height: 62px;
    padding-inline: 14px;
  }

  .case-entry:hover,
  .case-entry:focus-visible,
  .case-entry.is-active {
    transform: none;
  }

  .case-panel {
    padding: 26px 18px;
  }

  .case-panel::before {
    inset: 16px;
  }

  .case-panel dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .procedure-step {
    min-height: auto;
    padding: 22px 0;
  }

  .network-visual {
    min-height: 370px;
  }

  .network-visual figcaption {
    display: grid;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .site-footer {
    display: grid;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .brand {
    width: 184px;
  }

  .hero-brief {
    font-size: 0.78rem;
  }
}

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

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

  .method-meter span {
    transform: scaleX(1);
  }
}
