@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300 600;font-display:swap;src:url('/assets/fonts/cormorant-garamond.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300 600;font-display:swap;src:url('/assets/fonts/cormorant-garamond-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Jost';font-style:normal;font-weight:300 500;font-display:swap;src:url('/assets/fonts/jost.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================================
   Christian & Gambotti — Assistance à Maîtrise d'Ouvrage
   ========================================================================== */

:root {
  --ink: #14120f;
  --ink-2: #1b1814;
  --ink-3: #25211c;
  --ivory: #f8f5ef;
  --stone: #efe8dc;
  --sand: #dccfb9;
  --gold: #b39565;
  --gold-light: #cdb388;
  --gold-deep: #7f6340;
  --text: #2a2620;
  --muted: #6b6358;
  --muted-light: rgba(248, 245, 239, 0.66);
  --line: rgba(20, 18, 15, 0.14);
  --line-light: rgba(248, 245, 239, 0.16);

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --section: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --header-h: 84px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
strong { font-weight: 500; }
.phase-num, .roles-num, .commitment-num, .label-num, .project-meta { font-variant-numeric: lining-nums; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; font-size: .8rem;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.display em, .hero-title em { font-style: italic; color: var(--gold-deep); }
.dark .display { color: var(--ivory); }
.dark .display em { color: var(--gold-light); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 400;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep);
}
.dark .label { color: var(--gold-light); }
.label-num { font-variant-numeric: tabular-nums; }
.label-line { display: inline-block; width: 44px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 34px;
  font-family: var(--sans); font-weight: 400; font-size: .74rem;
  letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn-gold { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
.btn-gold:hover { background: transparent; color: var(--gold-light); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-link {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: .74rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
}
.btn-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .6s var(--ease);
}
.btn-link:hover::after { transform: scaleX(0); }
.btn-link-dark { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .5s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(248, 245, 239, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled, .site-header.is-solid { background: rgba(248, 245, 239, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
}
.site-header.is-scrolled .header-inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.brand-mark { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--sans); font-weight: 400; font-size: .74rem;
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}

.nav-list { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-list a {
  position: relative; font-size: .7rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; padding: 6px 0;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 22px; position: relative; z-index: 2; }
.lang-switch { display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .2em; font-weight: 400; padding: 8px 0; }
.lang-switch span { opacity: .5; transition: opacity .3s; }
.lang-switch span.is-active { opacity: 1; }
.lang-switch:hover span { opacity: 1; }
.lang-sep { width: 1px; height: 12px; background: currentColor; opacity: .4 !important; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-bar { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-bar:first-child { top: 18px; }
.menu-bar:last-child { top: 26px; }
.menu-open .menu-bar:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-bar:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 120px var(--gutter) 48px;
    background: var(--ink); color: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 6px; }
  .nav-list a { font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: 0; text-transform: none; font-weight: 300; line-height: 1.25; }
  .nav-list a::after { display: none; }
  .nav-foot { display: block; margin-top: 48px; font-size: .9rem; color: var(--muted-light); }
  .menu-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-name { font-size: .62rem; letter-spacing: .22em; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 10px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 340px) {
  .brand-name { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--ivory); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 18, 15, .9) 0%, rgba(20, 18, 15, .62) 38%, rgba(20, 18, 15, .18) 72%, rgba(20, 18, 15, .08) 100%),
    linear-gradient(0deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, 0) 40%),
    linear-gradient(180deg, rgba(20, 18, 15, .45) 0%, rgba(20, 18, 15, 0) 22%);
}
.hero-content { padding-top: 140px; padding-bottom: clamp(56px, 9vh, 110px); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
  font-size: .72rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light);
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 8rem);
  line-height: .98; letter-spacing: -0.015em; max-width: 12ch;
}
.hero-title em { color: var(--gold-light); }
.hero-lead { margin-top: 30px; max-width: 34ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: rgba(248, 245, 239, .82); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 44px; }
.hero-actions .btn-link { color: var(--ivory); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-light);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(248, 245, 239, .7);
}
.hero-foot > * { margin: 0; }
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-line { position: relative; width: 56px; height: 1px; background: rgba(248, 245, 239, .25); overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--gold-light); transform: translateX(-100%); animation: scrollCue 2.6s var(--ease-io) infinite; }
@keyframes scrollCue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.dark { background: var(--ink); color: var(--muted-light); }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 28px;
  margin-bottom: clamp(56px, 8vw, 110px);
}
.section-head .label { grid-column: 1 / -1; }
.section-head .display { grid-column: 1 / span 10; }
.section-intro { grid-column: 6 / -1; max-width: 56ch; margin-top: 12px; color: var(--muted); }
.dark .section-intro { color: var(--muted-light); }

/* ---------- approach ---------- */
.approach-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 56px; align-items: start; }
.approach-figure { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: hidden; }
.approach-figure img, .objectives-figure img, .clients-figure img, .project-figure img { width: 100%; height: 100%; object-fit: cover; }
.approach-text { grid-column: 7 / -1; display: grid; gap: 22px; padding-top: clamp(0px, 4vw, 48px); max-width: 60ch; }
.approach-text .goal {
  margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.4; color: var(--ink); font-style: italic;
}
.roles { margin-top: 26px; padding: clamp(28px, 4vw, 44px); background: var(--stone); }
.roles-title { font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.8; margin-bottom: 18px; }
.roles-list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.roles-list li:first-child { border-top: 0; padding-top: 4px; }
.roles-num { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.1rem; min-width: 1.6em; }

/* ---------- objectives ---------- */
.objectives-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 56px; align-items: center; }
.objectives-list { grid-column: 1 / span 7; }
.objective { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line-light); }
.objective:last-child { border-bottom: 1px solid var(--line-light); }
.objective-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold-light); }
.objective h3, .phase-title, .commitment-item h3, .gpa h3, .project-place, .form-title, .legal h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; line-height: 1.15;
}
.objective h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--ivory); margin-bottom: 12px; }
.objective p { max-width: 50ch; }
.objectives-figure { grid-column: 9 / -1; aspect-ratio: 3 / 4; overflow: hidden; }

/* ---------- mosaic band ---------- */
.mosaic-band { height: clamp(150px, 20vw, 300px); overflow: hidden; background: var(--ink); }
.mosaic-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- missions ---------- */
.missions { background: var(--ivory); }
.phases { border-top: 1px solid var(--line); }
.phase {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 16px;
  padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line);
}
.phase-num { grid-column: 1 / span 2; font-family: var(--serif); font-weight: 300; font-variant-numeric: lining-nums; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .9; color: var(--gold); }
.phase-title { grid-column: 3 / span 4; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); color: var(--ink); padding-top: 6px; }
.phase-body { grid-column: 7 / -1; padding-top: 10px; }
.phase-body ul { display: grid; gap: 10px; }
.phase-body li { position: relative; padding-left: 28px; }
.phase-body li::before { content: ''; position: absolute; left: 0; top: .9em; width: 14px; height: 1px; background: var(--gold); }

.gpa {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 18px;
  margin-top: clamp(56px, 8vw, 100px); padding: clamp(32px, 5vw, 64px);
  background: var(--stone); border-left: 1px solid var(--gold);
}
.gpa-tag { grid-column: 1 / span 4; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 400; padding-top: 10px; }
.gpa > div { grid-column: 5 / -1; }
.gpa h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--ink); margin-bottom: 16px; }

/* ---------- band ---------- */
.band { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--ivory); overflow: hidden; isolation: isolate; text-align: center; }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(20, 18, 15, .62) 0%, rgba(20, 18, 15, .78) 100%); }
.band-content { display: flex; flex-direction: column; align-items: center; padding-block: 120px; }
.band-mark { width: 64px; height: 64px; color: var(--gold-light); margin-bottom: 40px; }
.band .display { color: var(--ivory); }
.band .display em { color: var(--gold-light); }
.band p { margin-top: 30px; max-width: 54ch; color: rgba(248, 245, 239, .82); font-size: 1.08rem; }

/* ---------- projects ---------- */
.projects { background: var(--ivory); }
.projects-grid { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 32px; row-gap: clamp(56px, 7vw, 96px); }
.project { grid-column: span 2; }
.project-1 { grid-column: span 4; }
.project-figure { overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone); }
.project-1 .project-figure, .project-2 .project-figure { aspect-ratio: auto; height: clamp(360px, 38vw, 580px); }
.project-figure img { transition: transform 1.6s var(--ease); }
.project:hover .project-figure img { transform: scale(1.04); }
.project-caption { padding-top: 24px; }
.project-meta { display: flex; align-items: center; gap: 12px; font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.project-place { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); color: var(--ink); margin: 10px 0 8px; }
.project-text { color: var(--muted); max-width: 42ch; }

/* ---------- commitment ---------- */
.commitment { background: var(--stone); }
.commitment-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 96px); }
.commitment-item { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 40px 0; border-top: 1px solid var(--line); }
.commitment-item > * { grid-column: 2; }
.commitment-num { grid-column: 1; grid-row: 1 / span 2; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); padding-top: 6px; }
.commitment-item h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); color: var(--ink); margin-bottom: 10px; }
.commitment-item p { color: var(--muted); max-width: 46ch; }

.clients { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 48px; align-items: center; margin-top: clamp(80px, 11vw, 150px); }
.clients-figure { grid-column: 1 / span 4; aspect-ratio: 3 / 4; overflow: hidden; }
.clients-body { grid-column: 6 / -1; }
.clients-list { margin-top: 26px; }
.clients-list li {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); line-height: 1.2; color: var(--ink);
  padding: 18px 0; border-bottom: 1px solid var(--line);
}

/* ---------- contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; opacity: .14; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 30%, rgba(20, 18, 15, .9) 100%); }
.contact-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 72px; }
.contact-intro { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: start; }
.contact-intro > p { max-width: 46ch; }
.contact-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.4; color: var(--gold-light); }
.contact-details { display: grid; gap: 0; margin-top: 18px; }
.contact-details > div { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-details dt { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); font-weight: 400; padding-top: 4px; }
.contact-details dd { color: var(--ivory); overflow-wrap: anywhere; }
.contact-details a { transition: color .3s; }
.contact-details a:hover { color: var(--gold-light); }

.contact-form {
  grid-column: 7 / -1; align-self: start;
  padding: clamp(28px, 4vw, 56px); background: rgba(248, 245, 239, .035); border: 1px solid var(--line-light);
}
.form-title { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); color: var(--ivory); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); font-weight: 400; }
.field label .opt { letter-spacing: .05em; text-transform: none; opacity: .75; }
.req { color: var(--gold-light); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 1px solid rgba(248, 245, 239, .28);
  border-radius: 0; color: var(--ivory); font-size: 1rem; font-weight: 300; outline: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field ::placeholder { color: rgba(248, 245, 239, .35); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold-light); }
.field select {
  cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cdb388' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select option { background: var(--ink); color: var(--ivory); }
.was-validated .field input:invalid, .was-validated .field textarea:invalid { border-bottom-color: #d88c7a; }

.field-check { display: flex; gap: 14px; align-items: flex-start; }
.field-check input {
  flex: none; width: 18px; height: 18px; margin-top: 3px; padding: 0;
  border: 1px solid rgba(248, 245, 239, .45); cursor: pointer; display: grid; place-content: center;
}
.field-check input::before { content: ''; width: 10px; height: 10px; background: var(--gold-light); transform: scale(0); transition: transform .25s var(--ease); }
.field-check input:checked::before { transform: scale(1); }
.field-check input:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 3px; }
.was-validated .field-check input:invalid { border-color: #d88c7a; }
.field-check label { font-size: .86rem; letter-spacing: 0; text-transform: none; line-height: 1.6; color: var(--muted-light); }
.field-check a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; }
.form-required { font-size: .78rem; color: var(--muted-light); }
.form-status { margin-top: 22px; min-height: 1.5em; font-size: .95rem; color: var(--ivory); }
.form-status.is-success { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; }
.form-status.is-error { color: #e6a596; }
.contact-form.is-sent .form-grid, .contact-form.is-sent .form-foot { display: none; }
.contact-form.is-sent .form-status { margin-top: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #0e0c0a; color: rgba(248, 245, 239, .6); padding: clamp(80px, 10vw, 120px) 0 32px; text-align: center; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--gold-light); }
.footer-mark { width: 72px; height: 72px; }
.footer-name { font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ivory); font-weight: 400; }
.footer-tagline { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(248, 245, 239, .7); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 44px; }
.footer-contact a:hover, .footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom {
  width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: .74rem; letter-spacing: .06em;
}

/* ---------- legal ---------- */
.legal { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 var(--section); }
.legal-inner { max-width: calc(820px + 2 * var(--gutter)); }
.legal .display { margin: 22px 0 56px; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.legal-section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.8rem; color: var(--ink); margin-bottom: 16px; }
.legal-section p + p { margin-top: 14px; }
.legal-section a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-inner > p:last-child { margin-top: 48px; }
.todo { background: #f3e3b6; color: #5a4210; padding: 0 4px; }

/* ---------- 404 ---------- */
.page-404 { background: var(--ink); color: var(--muted-light); }
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding: 48px var(--gutter); }
.nf-mark { width: 64px; height: 64px; color: var(--gold-light); }
.nf-code { font-size: .74rem; letter-spacing: .4em; color: var(--gold-light); margin-top: 24px; }
.nf .display { color: var(--ivory); font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); }
.nf .display em { color: var(--gold-light); }
.nf-links { display: flex; gap: 36px; margin-top: 16px; color: var(--ivory); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }
/* Image reveal: a cover in the section colour slides away (the figure itself stays
   unclipped so IntersectionObserver and lazy-loading always see it). */
.reveal-mask { position: relative; --mask-bg: var(--ivory); }
.dark .reveal-mask { --mask-bg: var(--ink); }
.commitment .reveal-mask { --mask-bg: var(--stone); }
.js .reveal-mask::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--mask-bg); transform-origin: top; transition: transform 1.5s var(--ease-io);
}
.js .reveal-mask img { transform: scale(1.14); transition: transform 2.2s var(--ease); }
.js .reveal-mask.is-visible::after { transform: scaleY(0); }
.js .reveal-mask.is-visible img { transform: none; }
.js .project:hover .reveal-mask.is-visible img { transform: scale(1.04); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .section-head .display { grid-column: 1 / -1; }
  .section-intro { grid-column: 1 / -1; }
  .approach-figure { grid-column: 1 / span 5; }
  .approach-text { grid-column: 6 / -1; }
  .objectives-list { grid-column: 1 / -1; }
  .objectives-figure { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .phase-num { grid-column: 1 / span 2; }
  .phase-title { grid-column: 3 / -1; }
  .phase-body { grid-column: 3 / -1; }
  .gpa-tag, .gpa > div { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project-1 { grid-column: span 1; }
  .project-1 { grid-column: 1 / -1; }
  .project-1 .project-figure { height: auto; aspect-ratio: 3 / 2; }
  .project-2 .project-figure { height: auto; aspect-ratio: 3 / 4; }
  .contact-intro, .contact-form { grid-column: 1 / -1; }
  .clients-figure { grid-column: 1 / span 5; }
  .clients-body { grid-column: 7 / -1; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .section-head, .approach-body, .objectives-body, .phase, .gpa, .clients, .contact-inner { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(20, 18, 15, .92) 0%, rgba(20, 18, 15, .78) 45%, rgba(20, 18, 15, .35) 75%, rgba(20, 18, 15, .5) 100%);
  }
  .approach-figure, .approach-text { grid-column: 1 / -1; }
  .approach-figure { aspect-ratio: 4 / 3; }
  .objective { grid-template-columns: 56px 1fr; gap: 14px; padding: 30px 0; }
  .objective-num { font-size: 2rem; }
  .phase-num { grid-column: 1 / -1; font-size: 2.6rem; }
  .phase-title, .phase-body { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: 1fr; }
  .project, .project-1 { grid-column: 1 / -1; }
  .project-figure, .project-1 .project-figure { aspect-ratio: 4 / 5; }
  .project-1 .project-figure { aspect-ratio: 4 / 3; }
  .commitment-grid { grid-template-columns: 1fr; }
  .clients-figure, .clients-body { grid-column: 1 / -1; }
  .clients-figure { aspect-ratio: 16 / 10; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-foot p:first-child { font-size: .6rem; letter-spacing: .24em; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .band { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-mask img { opacity: 1; transform: none; }
  .js .reveal-mask::after { display: none; }
}

@media print {
  .site-header, .hero-media, .band-media, .contact-bg, .contact-form, .mosaic-band { display: none !important; }
  .hero, .dark, .band { background: #fff !important; color: #000 !important; min-height: 0; }
}
