/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (pointer: fine) {
  html, body, * { cursor: none !important; }
}

.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 5px;
    height: 5px;
    background: var(--text);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
  }

  .cursor-ring {
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(16, 16, 16, 0.45);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
  }

  .cursor-dot.cursor-hovered {
    width: 7px;
    height: 7px;
    background: var(--accent);
  }

  .cursor-ring.cursor-hovered {
    width: 56px;
    height: 56px;
    border-color: rgba(155, 77, 69, 0.4);
  }
}

:root {
  --bg: #f0efe9;
  --soft: #e7e5dc;
  --white: #faf9f5;
  --text: #24251f;
  --dark: #24251f;
  --muted: #514a46;
  --line: rgba(36, 37, 31, 0.18);
  --accent: #9b4d45;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(rgba(0, 0, 0, 0.35) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: 9999;
  mix-blend-mode: multiply;
}

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

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

/* Animation d'entrée */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: #050505;
  transition: opacity .65s ease;
}

#intro-film,
#intro-black,
#intro-logo-screen {
  position: absolute;
  inset: 0;
}

#intro-film {
  overflow: hidden;
}

#intro-film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  will-change: transform, filter;
}

#intro-black {
  display: none;
  background: #050505;
}

#intro-logo-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .75s ease;
}

#intro-logo {
  display: block;
  width: min(520px, 76vw);
  filter: invert(1);
}

.container {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(240, 239, 233, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(240, 239, 233, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.navbar-inner {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: 270px 1fr 210px;
  align-items: center;
  gap: 20px;
}

.navbar-logo-link {
  display: block;
  width: 270px;
  max-width: 100%;
}

.navbar-logo {
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--text);
  transition: color 0.25s ease;
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--accent);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--accent);
}

/* Crochets animés au hover */
.nav-links a::before,
.nav-links a::after {
  position: absolute;
  top: 50%;
  color: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a::before {
  content: '[';
  right: 100%;
  margin-right: 2px;
  transform: translateY(-50%) translateX(5px);
}

.nav-links a::after {
  content: ']';
  left: 100%;
  margin-left: 2px;
  transform: translateY(-50%) translateX(-5px);
}

.nav-links a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.mobile-nav-cta,
.nav-toggle {
  display: none;
}

.nav-cta {
  justify-self: end;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: 0.3s;
}

.navbar.scrolled .nav-cta {
  border-color: currentColor;
  color: var(--text);
  background: transparent;
}

.nav-cta:hover {
  background: transparent;
  color: var(--accent);
}

/* Hero — plan architectural */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hero-plan {
  --art-top: 13%;
  --art-left: 31%;
  --art-width: 42%;
  --art-height: 62%;
  position: absolute;
  top: 132px;
  right: 48px;
  bottom: 142px;
  left: 48px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(36,37,31,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,37,31,0.1) 1px, transparent 1px);
  background-size: 100% 25%, 20% 100%;
  border-right: 1px solid rgba(36,37,31,0.1);
  border-bottom: 1px solid rgba(36,37,31,0.1);
  animation: plan-grid-in 2.4s cubic-bezier(.16,1,.3,1) both,
             plan-grid-drift 38s 2.4s ease-in-out infinite alternate;
}

.hero-plan-art {
  position: absolute;
  top: var(--art-top);
  left: var(--art-left);
  width: var(--art-width);
  height: var(--art-height);
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.22) saturate(0.58) contrast(0.92);
  opacity: 0.84;
  mix-blend-mode: multiply;
  animation: artwork-in 2.8s .45s cubic-bezier(.16,1,.3,1) both,
             artwork-breathe 20s 3.25s ease-in-out infinite alternate;
}

.hero-plan::before {
  content: '';
  position: absolute;
  top: var(--art-top);
  left: var(--art-left);
  width: var(--art-width);
  height: var(--art-height);
  border: 1px solid rgba(36,37,31,0.26);
  z-index: 1;
  transform-origin: left center;
  animation: frame-in 2.4s .3s cubic-bezier(.16,1,.3,1) both;
}

.hero-plan::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 10%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(36,37,31,0.3);
  border-radius: 50%;
  background:
    linear-gradient(transparent calc(50% - 0.5px), rgba(36,37,31,0.22) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(36,37,31,0.22) 50%, transparent calc(50% + 0.5px));
  animation: marker-in 1.8s 1.2s cubic-bezier(.16,1,.3,1) both,
             marker-turn 45s 3s linear infinite;
}

@keyframes plan-grid-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes plan-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 8px, 8px 0; }
}

@keyframes artwork-in {
  from { filter: grayscale(1) saturate(0) contrast(0.8); }
  to { filter: grayscale(0.22) saturate(0.58) contrast(0.92); }
}

@keyframes artwork-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.018); }
}

@keyframes frame-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes marker-in {
  from { opacity: 0; transform: scale(0.55); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes marker-turn {
  to { rotate: 360deg; }
}

/* Contenu par-dessus */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 78px;
  color: var(--text);
}

/* Topbar */
.hero-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 48px;
  padding: 20px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.htb-sep {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Corps — titre aligné en bas */
.hero-body {
  flex: 1;
  position: relative;
  padding: 40px 48px;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: clamp(48px, 9vw, 150px);
  width: min(66vw, 1050px);
  transform: translateY(-50%);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 5.8vw, 7.2rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--text);
}

.hero-title[data-reveal],
.hero-title[data-reveal].revealed {
  transform: translateY(-50%);
}

.reveal-ready .hero-title .hl-row {
  clip-path: inset(0 100% 0 0);
}

.reveal-ready .hero-title.revealed .hl-row {
  animation: title-line-in 3.2s .3s cubic-bezier(.16,1,.3,1) forwards;
}

.reveal-ready .hero-title.revealed .hl-row + .hl-row {
  animation-delay: .85s;
}

@keyframes title-line-in {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-18px); }
  to { clip-path: inset(0); transform: translateX(0); }
}

.hl-row { display: block; }

.hero-plan-note {
  position: absolute;
  right: clamp(48px, 7vw, 120px);
  bottom: 12%;
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-plan-note[data-reveal],
.hero-bottombar[data-reveal] {
  transition-duration: 2.4s;
}

/* Bottombar */
.hero-bottombar {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr auto;
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  width: 100%;
  padding: 26px 48px 38px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.hero-description {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 460px;
}

.hero-meta-sm {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero-cta-primary {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.hero-cta-primary:hover { color: var(--accent); }

.hero-cta-secondary {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  padding: 0;
  border: none;
  transition: 0.3s;
  white-space: nowrap;
}

.hero-cta-secondary:hover {
  background: transparent;
  color: var(--accent);
}

.statement {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
  padding: 22px 0;
  background: transparent;
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.statement-track {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.statement-index {
  opacity: 0.55;
}

/* Trame commune — dossier architectural */
.intro-strip,
.services-grid,
.projects-section .container,
.about-section,
.contact-grid {
  position: relative;
  isolation: isolate;
}

.intro-strip::before,
.services-grid::before,
.projects-section .container::before,
.about-section::before,
.contact-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(36,37,31,0.07) 1px, transparent 1px),
    linear-gradient(rgba(36,37,31,0.07) 1px, transparent 1px);
  background-size: 25% 100%, 100% 50%;
}

.intro-strip > *,
.services-grid > *,
.projects-section .container > *,
.about-section > *,
.contact-grid > * {
  position: relative;
  z-index: 1;
}

.section-code {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.59rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-strip {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(50px, 6vw, 95px) 0;
  min-height: 760px;
}

.intro-photo {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  outline: 1px solid rgba(36,37,31,0.14);
  outline-offset: 8px;
}

.intro-photo img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.58) contrast(0.92);
  opacity: 0.9;
}

.intro-photo::after {
  display: none;
}

.intention-panel {
  background: transparent;
  color: var(--text);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: auto;
  color: var(--muted);
}

.intention-panel h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 4.2vw, 5.2rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.045em;
}

.intention-panel .line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 36px 0 28px;
}

.intention-panel p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 390px;
  color: var(--muted);
}

.intention-panel a {
  margin-top: 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.intention-panel a:hover {
  color: var(--accent);
}

.services-grid {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(50px, 8vw, 140px);
  padding: clamp(40px, 4.5vw, 75px) 0;
}

.service-photo {
  min-height: 0;
  aspect-ratio: 3 / 2;
  align-self: center;
  overflow: hidden;
  background: var(--soft);
  outline: 1px solid rgba(36,37,31,0.14);
  outline-offset: 8px;
}

.service-photo img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.58) contrast(0.92);
  opacity: 0.9;
}

.text-card {
  background: transparent;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.text-card.dark {
  background: transparent;
  color: var(--text);
}

.text-card .section-code {
  margin-bottom: clamp(70px, 9vw, 130px);
}

.text-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 4.8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 300;
}

.text-card p {
  margin-top: 28px;
  max-width: 310px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.text-card a {
  margin-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-card a:hover {
  color: var(--accent);
}

.plus-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.projects-section {
  padding: clamp(50px, 6vw, 95px) 0;
  background: transparent;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  margin-bottom: 100px;
}

.section-head h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.88;
  font-weight: 300;
  letter-spacing: -0.06em;
}

.section-head .section-code {
  margin-bottom: 30px;
}

.section-head p {
  max-width: 390px;
  padding-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(110px, 12vw, 190px);
}

.project-grid > a {
  display: block;
}

.project-card {
  position: relative;
  width: 92%;
  background: transparent;
  color: var(--text);
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: 72px minmax(250px, 0.72fr) minmax(430px, 1.28fr);
  grid-template-areas: "number content image";
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
  transition: color 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  z-index: 4;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(.16,1,.3,1);
}

.project-card.revealed::before {
  transform: scaleX(.16);
}

.project-card.revealed:hover::before {
  transform: scaleX(1);
}

.project-card.reverse {
  margin-left: auto;
}

.project-card.reverse {
  grid-template-columns: minmax(430px, 1.28fr) minmax(250px, 0.72fr) 72px;
  grid-template-areas: "image content number";
}

.project-card:hover {
  color: var(--accent);
}

.project-card > img {
  grid-area: image;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.58) contrast(0.95) !important;
  transition: transform 2.8s cubic-bezier(.16,1,.3,1),
              filter 2.4s cubic-bezier(.16,1,.3,1),
              opacity 2s ease;
  outline: 1px solid rgba(36,37,31,0.14);
  outline-offset: 7px;
}

.reveal-ready .project-card > img {
  opacity: 1;
  transform: scale(1.025);
  filter: grayscale(1) saturate(0) contrast(.82) !important;
}

.reveal-ready .project-card.revealed > img {
  opacity: 1;
  transform: scale(1);
  filter: saturate(0.58) contrast(0.95) !important;
}

.project-card:hover > img {
  filter: saturate(0.9) contrast(0.98) !important;
  transform: scale(1.012);
}

.project-card::after {
  display: none;
}

.project-number,
.project-content {
  position: relative;
  z-index: 3;
}

.project-number {
  grid-area: number;
  padding-top: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 1.6;
  color: var(--muted);
}

.project-card.reverse .project-number {
  text-align: right;
}

.project-content {
  grid-area: content;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 6px;
}

.project-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.8rem, 4.1vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 300;
}

.project-card p {
  max-width: 250px;
  margin-top: 60px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.about-section {
  width: min(1520px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 8vw, 140px);
  padding: clamp(50px, 6vw, 95px) 0;
  background: transparent;
}

.about-image {
  min-height: 700px;
  position: relative;
  overflow: hidden;
  outline: 1px solid rgba(36,37,31,0.14);
  outline-offset: 8px;
}

.about-image img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.58) contrast(0.92);
  opacity: 0.9;
}

.about-content {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.about-content .section-code {
  margin-bottom: 24px;
}

.about-content h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 300;
}

.about-content p {
  margin-top: 36px;
  max-width: 560px;
  line-height: 1.5;
  font-size: 0.94rem;
  color: var(--muted);
}

.skills {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
}

.skill {
  width: 50%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: transparent;
}

.contact-section {
  padding: clamp(50px, 6.5vw, 100px) 0;
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 160px);
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-grid .section-code {
  margin-bottom: 28px;
}

.contact-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 6.4vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 300;
  margin-top: 48px;
}

.contact-text {
  max-width: 430px;
  margin-top: 34px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-form {
  background: transparent;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  margin-top: 10px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 15px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s;
}

.form-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.contact-note {
  margin-top: 22px;
  font-size: 0.68rem;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.footer {
  background: var(--bg);
  color: var(--text);
  padding: 36px 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 30px;
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-signature {
  display: block;
  justify-self: end;
  align-self: start;
}

.footer-desktop-logo {
  width: 170px;
}

.footer-mobile-logo {
  display: none;
}

.footer-big {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 300;
}

.footer-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 0.7rem;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Flash messages ── */
.flash {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 14px 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  border: 1px solid currentColor;
  animation: flash-in 0.4s ease forwards, flash-out 0.4s ease 4s forwards;
  white-space: nowrap;
}

.flash-notice {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.flash-alert {
  background: #d61f14;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes flash-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes flash-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Navbar scroll ── */
.navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, min-height 0.4s ease;
}

.navbar.scrolled .navbar-inner {
  min-height: 66px;
}

/* ── Scroll reveal ── */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 2.2s cubic-bezier(.16,1,.3,1),
              transform 2.2s cubic-bezier(.16,1,.3,1);
}

.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .project-card[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal="image"] {
  opacity: 1;
  transform: none;
  position: relative;
}

.reveal-ready [data-reveal="image"].revealed {
  transform: none;
}

.reveal-ready [data-reveal="image"] img {
  opacity: .9;
  transform: scale(1.03);
  filter: grayscale(1) saturate(0) contrast(.82) !important;
  transition: transform 3s cubic-bezier(.16,1,.3,1),
              filter 2.5s cubic-bezier(.16,1,.3,1),
              opacity 2.2s ease;
}

.reveal-ready [data-reveal="image"].revealed img {
  opacity: .9;
  transform: scale(1);
  filter: grayscale(.18) saturate(.58) contrast(.92) !important;
}

.reveal-ready [data-reveal="image"]::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(155,77,69,.48);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(240,239,233,.48) 50%, transparent calc(50% + .5px));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 2.4s cubic-bezier(.16,1,.3,1),
              opacity .6s ease;
}

.reveal-ready [data-reveal="image"].revealed::after {
  transform: scaleX(1);
  opacity: 1;
  animation: image-frame-settle 1.1s 2.3s ease forwards;
}

@keyframes image-frame-settle {
  from { border-color: rgba(155,77,69,.48); }
  to { border-color: rgba(36,37,31,.14); }
}


@media (max-width: 1150px) {
  .statement,
  .intro-strip,
  .services-grid,
  .about-section {
    width: calc(100% - 64px);
  }

  .intro-strip,
  .services-grid,
  .footer-grid,
  .about-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    grid-template-columns: 270px 1fr;
  }

  .footer-signature {
    justify-self: start;
  }

  .nav-cta {
    display: none;
  }

  .hero-plan {
    right: 32px;
    left: 32px;
  }

  .hero-title {
    left: 32px;
    width: 68vw;
  }

  .hero-plan-note {
    right: 32px;
    width: 150px;
  }

  .intro-strip,
  .about-section {
    gap: 50px;
  }

  .project-grid {
    gap: 80px;
  }

  .project-card {
    width: 100%;
    grid-template-columns: 56px minmax(220px, 0.72fr) minmax(360px, 1.28fr);
    gap: 28px;
  }

  .project-card.reverse {
    grid-template-columns: minmax(360px, 1.28fr) minmax(220px, 0.72fr) 56px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .intention-panel { min-height: 520px; }
  .about-image { min-height: 620px; }
}

@media (max-width: 760px) {
  :root {
    --mobile-space-s: 16px;
    --mobile-space-m: 24px;
    --mobile-space-l: 48px;
    --mobile-space-xl: 72px;
    --mobile-section-space: 36px;
  }

  .container,
  .navbar-inner {
    width: min(100% - 32px, 1440px);
  }

  .statement,
  .intro-strip,
  .services-grid,
  .about-section {
    width: calc(100% - 32px);
  }

  .intro-strip::before,
  .services-grid::before,
  .projects-section .container::before,
  .about-section::before,
  .contact-grid::before {
    background-size: 50% 100%, 100% 33.333%;
  }

  .intro-photo,
  .service-photo,
  .project-card > img,
  .about-image {
    outline-offset: 4px;
  }

  .navbar-inner {
    display: flex;
    min-height: 70px;
  }

  .navbar-logo-link {
    width: min(210px, calc(100% - 72px));
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 16px 28px;
    background: rgba(240, 239, 233, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .navbar.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
  }

  .nav-links a::before,
  .nav-links a::after {
    display: none;
  }

  .nav-links .mobile-nav-cta {
    display: block;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid var(--text);
    text-align: center;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 23px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease;
  }

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

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

  .hero {
    min-height: 820px;
    padding: 0;
  }

  .hero-plan {
    --art-top: 22%;
    --art-left: 5%;
    --art-width: 90%;
    --art-height: 48%;
    top: 150px;
    right: 16px;
    bottom: 230px;
    left: 16px;
    width: auto;
    height: auto;
    background-size: 100% 25%, 33.333% 100%;
  }

  .hero-plan::after {
    top: 12%;
    right: 8%;
    width: 38px;
    height: 38px;
  }

  .hero-content {
    height: auto;
    min-height: 820px;
    padding-top: 70px;
  }

  .hero-title {
    top: auto;
    bottom: 205px;
    left: calc(5% + 14px);
    width: calc(90% - 28px);
    transform: translateY(65%);
    font-size: clamp(2.35rem, 11vw, 4.2rem);
    line-height: 0.92;
    text-align: center;
    text-shadow: 0 1px 18px rgba(240, 239, 233, 0.85);
  }

  .hero-title[data-reveal],
  .hero-title[data-reveal].revealed {
    transform: translateY(65%);
  }

  .hero-title .hl-row {
    white-space: nowrap;
  }

  .hero-topbar {
    gap: 8px;
    margin: 0 16px;
    padding: 14px 0;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
  .hero-topbar span { white-space: nowrap; }
  .htb-sep     { min-width: 16px; }
  .htb-tag     { display: none; }

  .hero-body {
    min-height: 590px;
    padding: 0 16px;
  }

  .hero-plan-note {
    top: auto;
    right: 16px;
    bottom: 20px;
    width: 150px;
  }

  .hero-bottombar {
    grid-template-columns: 1fr;
    width: 100%;
    gap: var(--mobile-space-m);
    padding: var(--mobile-space-m) 16px 32px;
    background: var(--bg);
  }

  .hero-meta-sm { display: none; }

  .hero-actions { flex-direction: row; flex-wrap: wrap; }

  .statement-track {
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    font-size: 0.58rem;
  }

  .statement { padding: 18px 0; }
  .statement-index { grid-column: 1 / -1; }

  .intention-panel,
  .text-card,
  .about-content,
  .contact-form {
    padding: 0;
  }

  .intro-strip,
  .services-grid,
  .about-section {
    min-height: 0;
    gap: var(--mobile-space-l);
    padding: var(--mobile-section-space) 0;
  }

  .intro-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .intention-panel h2,
  .text-card h3 {
    font-size: clamp(2.75rem, 14vw, 3.6rem);
  }

  .service-photo { min-height: 0; }
  .text-card .section-code { margin-bottom: var(--mobile-space-m); }

  .projects-section { padding: var(--mobile-section-space) 0; }
  .section-head {
    gap: var(--mobile-space-m);
    margin-bottom: var(--mobile-space-l);
  }

  .section-head h2,
  .about-content h2,
  .contact-title {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .project-grid { gap: var(--mobile-space-xl); }

  .project-card,
  .project-card.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "image"
      "content";
    gap: var(--mobile-space-s);
  }

  .project-card.reverse .project-number { text-align: left; }
  .project-card > img { aspect-ratio: 4 / 3; }
  .project-content { min-height: 0; }
  .project-card h3 { font-size: clamp(2.5rem, 13vw, 3.2rem); }
  .project-card p { margin-top: var(--mobile-space-m); }

  .about-image {
    min-height: 430px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-title {
    letter-spacing: -0.055em;
    margin-top: var(--mobile-space-m);
  }

  .contact-section { padding: var(--mobile-section-space) 0; }
  .contact-grid {
    gap: var(--mobile-space-l);
    padding-top: var(--mobile-space-m);
  }
  .form-submit { width: 100%; }
  .footer { padding: var(--mobile-section-space) 0; }
  .footer-grid {
    gap: 32px;
    padding-top: var(--mobile-space-m);
    text-align: center;
  }

  .footer-signature {
    width: 100%;
    justify-self: stretch;
    margin-top: var(--mobile-space-s);
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .footer-desktop-logo {
    display: none;
  }

  .footer-mobile-logo {
    display: block;
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .intention-panel { min-height: 0; }
  .eyebrow,
  .section-head .section-code,
  .about-content .section-code,
  .contact-grid .section-code {
    margin-bottom: var(--mobile-space-m);
  }

  .intention-panel .line {
    margin: var(--mobile-space-m) 0;
  }

  .intention-panel a,
  .text-card p,
  .text-card a,
  .about-content p,
  .contact-text,
  .contact-note {
    margin-top: var(--mobile-space-m);
  }

  .section-head p {
    padding-top: 0;
  }

  .skills {
    margin-top: 32px;
  }

  .contact-form > .form-group {
    margin-bottom: 0;
  }

  .form-submit {
    margin-top: var(--mobile-space-m);
  }

  .flash {
    width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
  }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal],
  [data-reveal="image"],
  [data-reveal="image"] img,
  .project-card > img,
  .hero-title .hl-row {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

  .hero-title[data-reveal] {
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-title[data-reveal] {
    transform: translateY(65%) !important;
  }
}
