@import url('../fonts/fonts.css');

/* ---------------------------------------------------------
   Pixel Mosaic — design system
   Minimaliste, intemporel, haut de gamme.
   Le design ne doit jamais concurrencer les photographies.
--------------------------------------------------------- */

:root {
  --ink: #17181a;
  --paper: #faf9f7;
  --stone: #f1efea;
  --stone-line: #ddd9d1;
  --gold: #a98b56;
  --muted: #76736e;

  --font-display: 'Cormorant', 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --max: 1480px;
  --header-h: 93px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 900ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  color: #fff;
  mix-blend-mode: normal;
  transition: background-color 600ms var(--ease), color 600ms var(--ease), padding 600ms var(--ease), border-color 600ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-light {
  background: rgba(250, 249, 247, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: var(--stone-line);
}

.site-header.is-scrolled {
  padding: 1.05rem var(--gutter);
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 48px;
  width: auto;
  transition: height 600ms var(--ease);
}

.site-header.is-scrolled .brand img { height: 42px; }

.brand .logo-on-light { display: none; }
.site-header.is-light .brand .logo-on-dark { display: none; }
.site-header.is-light .brand .logo-on-light { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.6vw, 2.6rem);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-bottom: 0.65rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle svg { display: block; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-in 1100ms var(--ease) forwards;
}

@keyframes hero-in {
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 48%, rgba(10,10,10,.42) 0%, rgba(10,10,10,0) 100%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.08) 26%, rgba(10,10,10,.1) 60%, rgba(10,10,10,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 var(--gutter);
}

.hero-content .eyebrow { color: rgba(255,255,255,.78); }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 300;
  margin-top: 1.1rem;
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  /* Warmer, brighter gold — the default --gold sinks into the dark hero photo.
     A faint shadow lifts it off the bright horizon band without any sheen. */
  color: #D4AF7A;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.6);
  overflow: hidden;
  position: relative;
}

.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: cue-fall 2.4s ease-in-out infinite;
}

@keyframes cue-fall {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------------------------------------------------------
   Sections / rhythm
--------------------------------------------------------- */

section { position: relative; }

.section {
  padding: clamp(3.5rem, 7.5vw, 7rem) 0;
}

/* The hero already fills the screen — no need to push the next block away */
.section-after-hero {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-intro .eyebrow { display: block; margin-bottom: 1.3rem; }

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

.section-intro p {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.lede .eyebrow { display: block; margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem); }

.lede h1, .lede h2 {
  font-size: clamp(2.4rem, 4.9vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 13ch;
}

.lede p {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  max-width: 600px;
}

/* Page opener: title left, standfirst right */
.lede-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1120px;
}

.lede-split p { margin-top: 0; }

/* ---------------------------------------------------------
   Reveal on scroll
--------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms ease, transform 320ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Images settle in with a restrained fade + micro-zoom */
.reveal img,
.page-hero img {
  animation: img-settle 380ms var(--ease) both;
}

@keyframes img-settle {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

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

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

  .reveal img,
  .page-hero img,
  .hero img {
    animation: none;
    transform: none;
  }

  .scroll-cue .line::after { animation: none; }

  * { transition-duration: 1ms !important; }
}

/* ---------------------------------------------------------
   Featured works grid (home)
--------------------------------------------------------- */

/* Four equal plates — same size, same crop, no hierarchy */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
  margin-top: clamp(1.6rem, 2.6vw, 2.2rem);
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms var(--ease);
}

.work-card:hover img { transform: scale(1.055); }

/* The label stays legible without hover — touch devices get no hover state */
.work-card .work-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,.68) 0%, rgba(10,10,10,.1) 42%, rgba(10,10,10,0) 65%);
  opacity: .85;
  transition: opacity 500ms var(--ease);
}

.work-card:hover .work-veil { opacity: 1; }

.work-card .work-label {
  position: absolute;
  left: clamp(1rem, 1.4vw, 1.4rem);
  right: clamp(1rem, 1.4vw, 1.4rem);
  bottom: clamp(1rem, 1.4vw, 1.4rem);
  color: #fff;
  transition: transform 500ms var(--ease);
}

.work-card:hover .work-label { transform: translateY(-4px); }

.work-label .eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(255,255,255,.8); }
.work-label h3 { font-size: clamp(1.05rem, 1.35vw, 1.25rem); font-weight: 300; margin-top: 0.3rem; }

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--stone-line);
}

.closing-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
}

/* ---------------------------------------------------------
   Buttons / links
--------------------------------------------------------- */

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink);
  transition: gap 300ms var(--ease), opacity 300ms var(--ease), border-color 300ms var(--ease);
}

.btn-line:hover { gap: 1.25rem; }

.btn-line.on-dark {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

.center { text-align: center; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------------------------------------------------------
   Manifesto strip (home)
--------------------------------------------------------- */

.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.manifesto .container {
  max-width: 1050px;
}

.manifesto p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.4;
  text-align: center;
}

.manifesto cite {
  display: block;
  margin-top: 2.8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250,249,247,.55);
  text-align: center;
}

/* ---------------------------------------------------------
   Stats / marks row
--------------------------------------------------------- */

.marks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--stone-line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.marks-row .mark {
  text-align: center;
}

.marks-row .mark .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  color: var(--gold);
}

.marks-row .mark .label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 6.5vw, 6.5rem) 0 clamp(2.25rem, 3.5vw, 3.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 35% 25% 30%;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
  border-bottom: 1px solid rgba(250,249,247,.14);
}

.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { height: 84px; width: auto; }

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 400px;
  color: rgba(250,249,247,.6);
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-col .eyebrow { color: rgba(250,249,247,.5); }

.footer-col ul {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1rem;
}

.footer-col a { color: rgba(250,249,247,.85); transition: color 300ms var(--ease); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.4rem;
  font-size: 0.87rem;
  letter-spacing: 0.04em;
  color: rgba(250,249,247,.38);
}

/* ---------------------------------------------------------
   Interior page header spacer
--------------------------------------------------------- */

.page-hero {
  position: relative;
  height: 46vh;
  min-height: 360px;
  overflow: hidden;
  background: var(--ink);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.28) 14%, rgba(10,10,10,0) 30%),
    linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,.58) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 0 var(--gutter) 3.6rem;
}

.page-hero-content .eyebrow { color: rgba(255,255,255,.8); }
.page-hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; margin-top: 0.8rem; }

.simple-header {
  padding-top: calc(var(--header-h) + clamp(2.25rem, 4.4vw, 4.4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------------------------------------------------------
   Category / project grids (réalisations)
--------------------------------------------------------- */

.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--stone-line);
}

.category-card {
  position: relative;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms var(--ease);
}

.category-card:hover img { transform: scale(1.06); }

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 100%);
}

.category-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.category-card-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-top: 0.9rem;
}

.category-card-content .count {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: gap 300ms var(--ease);
}

.category-card:hover .count { gap: 1.15rem; }

.section-tight {
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

/* Category standfirst: clearly secondary to the title, two lines on desktop */
.category-intro {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 74ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.project-card {
  display: block;
}

.project-card figure {
  margin: 0;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--stone);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

.project-card:hover img { transform: scale(1.045); }

/* Desktop hover: the image dims and names the action */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .28);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.thumb-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  z-index: 2;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  pointer-events: none;
}

.project-card:hover .project-thumb::after { opacity: 1; }

.project-card:hover .thumb-cue {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--stone-line);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
}

.project-card .loc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Always-visible affordance — the only cue touch devices get */
.project-card .card-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms var(--ease), gap 300ms var(--ease);
}

.project-card:hover .card-cue { color: var(--ink); gap: 1rem; }

/* ---------------------------------------------------------
   Project detail page
--------------------------------------------------------- */

/* Same weight as the category standfirst: secondary to the title, 1–2 lines */
.project-lede {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 82ch;
}

.next-project { color: inherit; }
.next-project:hover .btn-line { gap: 1.25rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  align-items: start;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--stone);
  grid-column: span 3;
}

.gallery figure.tall { grid-column: span 2; aspect-ratio: 3/4; }
.gallery figure.wide { grid-column: span 4; aspect-ratio: 3/2; }
.gallery figure.full { grid-column: span 6; aspect-ratio: 16/9; }
.gallery figure.sq { grid-column: span 3; aspect-ratio: 1/1; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 900ms var(--ease);
}

.gallery figure:hover img { transform: scale(1.03); }

.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--stone-line);
}

.next-project .eyebrow { display: block; margin-bottom: 0.6rem; }
.next-project h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; }

/* ---------------------------------------------------------
   About page
--------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about-grid .about-text { max-width: 650px; }

.materials-title {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 14ch;
}

.about-grid img {
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%;
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.founder img {
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 22%;
  width: 100%;
}

.founder-body .eyebrow { display: block; margin-bottom: 1.5rem; }

.founder-body h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}

.founder-body p { margin-top: 2.2rem; max-width: 660px; }
.founder-body p + p { margin-top: 1.5rem; }

.about-text p + p { margin-top: 1.4rem; }

.about-text p,
.founder-body p { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }

/* Savoir-faire — three qualities side by side, no rules, no gauges */
.craft-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.craft-item h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 300;
}

.craft-item p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 34ch;
}

/* ---------------------------------------------------------
   Contact page
--------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
}

.contact-intro {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 27ch;
  color: var(--ink);
}

.contact-intro + .contact-list { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }

/* White band: sentence on the left, coordinates 2×2 on the right.
   Compact on purpose — the eye should travel hero → details → footer. */
.contact-section {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0 clamp(3rem, 5.5vw, 4.75rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: clamp(1.9rem, 3.2vw, 2.6rem);
}

.contact-item .eyebrow { display: block; margin-bottom: 0.65rem; }

.contact-item .val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.3;
  transition: color 300ms var(--ease);
}

/* Phone and e-mail only: the serif "0" is indistinguishable from "o"
   (pixelmosaic06). Use the label sans-serif for these two; the postal
   address and coverage area stay in the display serif. */
.contact-item a.val {
  font-family: var(--font-body);
  font-size: 1.28rem;
  letter-spacing: 0.005em;
}

a.val:hover { color: var(--gold); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.35rem, 3.6vw, 3.1rem);
}

.contact-list .eyebrow { display: block; margin-bottom: 0.6rem; }
.contact-list .val { font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.7rem); font-weight: 300; }
.contact-list a.val:hover { color: var(--gold); }

.contact-card {
  background: var(--stone);
  padding: clamp(2rem, 4vw, 3.75rem);
  border: 1px solid rgba(221, 217, 209, .55);
}

.form-field {
  margin-bottom: clamp(1.35rem, 2.2vw, 1.8rem);
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(23, 24, 26, .16);
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color 300ms var(--ease);
}

.form-field input { min-height: 56px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 165px; }

.submit-btn {
  margin-top: 1.4rem;
  min-width: 190px;
  min-height: 58px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 1rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 280ms var(--ease), color 280ms var(--ease);
}

.submit-btn:hover { background: transparent; color: var(--ink); }

/* ---------------------------------------------------------
   Lightbox
--------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-nav.prev { left: 0.5rem; }
.lightbox-nav.next { right: 0.5rem; }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

/* Tablet */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(2rem, 4vw, 3rem); }
  .craft-row { gap: clamp(1.5rem, 3vw, 2.5rem); }
  .craft-item p { max-width: none; }
  .contact-layout { grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 2.75rem); }
  .contact-intro { max-width: 34ch; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .brand img { height: 40px; }
  .site-header,
  .site-header.is-scrolled { padding: 1.1rem var(--gutter); }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1rem;
    z-index: 1;
  }

  /* A backdrop-filter on the header would make the fixed overlay above resolve
     against the header box instead of the viewport, clipping the menu to a
     band. Drop the filter (and the light chrome) while the menu is open. */
  body.nav-open .site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    color: #fff;
  }

  body.nav-open .site-header .brand .logo-on-light { display: none; }
  body.nav-open .site-header .brand .logo-on-dark { display: block; }

  /* Logo and toggle stay reachable above the overlay */
  .brand,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .category-split { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .marks-row { grid-template-columns: 1fr; gap: 2.2rem; }
  .lede-split { grid-template-columns: 1fr; align-items: start; }
  .lede h1, .lede h2 { max-width: none; }

  /* Mobile: title, then text, then portrait */
  .founder { grid-template-columns: 1fr; gap: 2rem; }
  .founder img { max-width: 320px; order: 2; }
  .founder-body { order: 1; }

  .craft-row { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.4rem); }
  .contact-details { grid-template-columns: 1fr; row-gap: clamp(1.7rem, 5vw, 2.1rem); }
  .contact-intro { max-width: none; }

  .manifesto p { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand p { max-width: none; }

  .section { padding: clamp(3rem, 9vw, 4.5rem) 0; }
}

@media (max-width: 600px) {
  /* Two columns leave the labels no room to breathe */
  .works-grid { grid-template-columns: 1fr; }
  .work-label h3 { font-size: 1.2rem; }

  .gallery figure,
  .gallery figure.tall,
  .gallery figure.wide,
  .gallery figure.sq { grid-column: span 6; aspect-ratio: 3/2; }
}

/* ---------------------------------------------------------
   Language switcher
--------------------------------------------------------- */

.lang-switch {
  position: relative;
  margin-inline-start: 0.4rem;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.35rem 0.2rem;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 250ms var(--ease);
}

.lang-current:hover { opacity: 1; }

.flag {
  width: 21px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.lang-chevron {
  transition: transform 250ms var(--ease);
}

.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  inset-inline-end: 0;
  z-index: 20;
  min-width: 190px;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--stone-line);
  box-shadow: 0 14px 34px rgba(10, 10, 10, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 200ms var(--ease);
}

.lang-menu a:hover { background: var(--stone); }
.lang-menu a.is-current { color: var(--gold); }

@media (max-width: 900px) {
  /* Inside the open menu the switcher becomes a plain, always-visible row */
  .lang-switch {
    margin: 0.6rem 0 0;
  }

  .lang-current { display: none; }

  .lang-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    max-width: 88vw;
    background: none;
    border: none;
    box-shadow: none;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
  }

  .lang-menu a {
    color: rgba(255, 255, 255, .75);
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 0.9rem;
  }

  .lang-menu a:hover,
  .lang-menu a.is-current {
    background: none;
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
  }
}

/* ---------------------------------------------------------
   RTL (Arabic) — mirrors the few direction-dependent rules.
   Enabled by <html dir="rtl">, which build.py stamps per locale.
--------------------------------------------------------- */

[dir="rtl"] .main-nav a::after {
  transform-origin: left;
}

[dir="rtl"] .main-nav a:hover::after,
[dir="rtl"] .main-nav a.is-active::after {
  transform-origin: right;
}

[dir="rtl"] .page-hero-content,
[dir="rtl"] .work-label,
[dir="rtl"] .lede,
[dir="rtl"] .founder-body,
[dir="rtl"] .about-text,
[dir="rtl"] .contact-left,
[dir="rtl"] .craft-item,
[dir="rtl"] .category-intro,
[dir="rtl"] .project-lede {
  text-align: right;
}

[dir="rtl"] .values-row,
[dir="rtl"] .footer-bottom {
  direction: rtl;
}

[dir="rtl"] .lightbox-nav.prev { left: auto; right: 0.5rem; }
[dir="rtl"] .lightbox-nav.next { right: auto; left: 0.5rem; }
[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }

[dir="rtl"] .card-cue svg,
[dir="rtl"] .category-card-content .count svg {
  transform: scaleX(-1);
}

[dir="rtl"] .lightbox-close { right: auto; left: 2rem; }
