/* Colours live here once, so we can change the whole look in one place. */
:root {
  --deep: #06131b;        /* near-black water */
  --water: #0c2433;
  --water-light: #14394f;
  --paper: #f3f0e9;       /* warm off-white */
  --muted: #8fa7b5;
  --wine: #b02a45;        /* wine red: button fills only (white text on it passes contrast) */
  --wine-deep: #8c1f37;
  --rose: #ee8497;        /* lighter red: used for small text and links on dark blue */
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* Header */
.site-header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem); gap: 1rem;
}
.site-header .name { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; letter-spacing: .01em; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.lang { font-size: .8rem; color: var(--muted); letter-spacing: .12em; }
.lang b { color: var(--paper); font-weight: 600; }

.btn {
  display: inline-block; background: var(--wine); color: #fff;
  padding: .75rem 1.4rem; font-weight: 600; text-decoration: none; font-size: .95rem;
  border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--wine-deep); transform: translateY(-1px); }

/* Home */
.home {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(70rem 40rem at 85% -10%, rgba(40, 120, 160, .35), transparent 60%),
    radial-gradient(50rem 30rem at -10% 60%, rgba(20, 70, 100, .45), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--water) 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: 0; }
/* The portrait is tinted blue and fades into the background on its left and bottom edges */
.hero-portrait { position: absolute; right: 0; bottom: 0; width: min(62%, 60rem); height: 100%; object-fit: cover; object-position: 44% 30%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
/* Dark overlay so white text stays readable on top of the photo */
.hero-shade { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(6,19,27,.88) 0%, rgba(6,19,27,.55) 55%, rgba(6,19,27,.2) 100%),
    linear-gradient(180deg, rgba(6,19,27,.5) 0%, rgba(6,19,27,0) 30%, rgba(6,19,27,.85) 100%); }

main.home-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.intro { padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3rem) 3rem; }
.intro-text { max-width: 50rem; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin: 0 0 1.25rem; }
.intro h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 1.5rem;
}
.intro h1 em { color: var(--rose); font-style: italic; }
.intro p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34rem; margin: 0; }

.doors { margin-top: auto; display: grid; grid-template-columns: 3fr 2fr; gap: 1px; background: rgba(255,255,255,.1); border-top: 1px solid rgba(255,255,255,.1); }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.25rem; min-height: 20rem; text-decoration: none;
  background: rgba(6, 19, 27, .55); backdrop-filter: blur(6px);
  transition: background .3s;
}
.door .num { position: absolute; top: 1.5rem; right: clamp(1.25rem, 4vw, 3rem); font-family: var(--serif); font-size: 1rem; color: var(--muted); }
.door .label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.door h2 { font-family: var(--serif); font-weight: 400; margin: .4rem 0 .6rem; line-height: 1; letter-spacing: -.01em; }
.door p { margin: 0 0 1.25rem; color: var(--muted); max-width: 26rem; }
.door .go { font-weight: 600; color: var(--paper); display: inline-flex; gap: .6rem; align-items: center; }
.door .go span { display: inline-block; transition: transform .25s; }
.door:hover .go span { transform: translateX(.5rem); }
.door-speaker { background: rgba(20, 57, 79, .6); }
.door-speaker h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.door-speaker .go { color: var(--rose); }
.door-about h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.door:hover { background: rgba(176, 42, 69, .22); }

/* Simple inner pages (placeholders for now) */
.page { max-width: 46rem; padding: 3rem clamp(1.25rem, 4vw, 3rem); }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.02em; }
.note { border: 1px dashed var(--muted); color: var(--muted); padding: 1rem 1.25rem; }

/* Gentle fade-and-rise on load */
.rise { opacity: 0; transform: translateY(14px); animation: rise .8s ease forwards; }
.intro .rise:nth-child(2) { animation-delay: .12s; }
.intro .rise:nth-child(3) { animation-delay: .24s; }
.intro-text .rise:nth-child(2) { animation-delay: .12s; }
.intro-text .rise:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 15rem; }
  .hero-portrait { width: 100%; height: 62%; top: 4rem; bottom: auto; object-position: 40% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
  .intro-text { max-width: none; }
  .header-right { gap: .9rem; }
  .lang { font-size: .75rem; letter-spacing: .08em; }
  .site-header .btn { padding: .6rem 1rem; font-size: .88rem; }
}

/* Home: slim footer under the two doors */
.home-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1rem clamp(1.25rem, 4vw, 3rem); font-size: .85rem; color: var(--muted); background: rgba(6,19,27,.75); border-top: 1px solid rgba(255,255,255,.1); }
.home-foot a { color: var(--paper); text-underline-offset: .3em; }

/* Language switcher (EN / FR / DE) */
.lang a { color: var(--muted); text-decoration: none; padding: .35rem .15rem; }
.lang a:hover { color: var(--paper); }
.lang a.on { color: var(--paper); font-weight: 600; }

/* Phone header: one tidy row. The button may wrap to two short lines, which also suits longer German and French labels. */
@media (max-width: 520px) {
  .site-header { padding: .7rem 1rem; gap: .6rem; }
  .site-header .name { font-size: 1rem; white-space: nowrap; }
  .header-right { gap: .6rem; }
  .lang { white-space: nowrap; font-size: .72rem; letter-spacing: .04em; }
  .lang a { display: inline-block; padding: .65rem .3rem; }   /* bigger tap area for thumbs */
  .site-header .btn { padding: .45rem .8rem; font-size: .78rem; line-height: 1.15; max-width: 7.6rem; text-align: center; border-radius: 1.1rem; }
}

/* Never let a hairline overflow make a phone wobble sideways. "clip" keeps the sticky header working. */
html, body { overflow-x: clip; }
