/* Phytal LS AG — site styles */

@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-400-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #002a7c;
  --navy-deep: #0a1633;
  --navy-ink: #06102a;
  --red: #c71124;
  --ink: #141824;
  --muted: #5b6275;
  --line: #e2e5ec;
  --paper: #ffffff;
  --paper-alt: #f5f6f9;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 0.5em; color: var(--navy-ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.statement { font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.35 var(--serif); color: var(--navy-ink); letter-spacing: -0.01em; max-width: 30em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--navy); }
.nav .btn { padding: 11px 20px; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff !important; text-decoration: none; font: 600 0.95rem/1 var(--sans); padding: 16px 26px; border-radius: var(--radius); border: 1px solid var(--navy); transition: background .2s, border-color .2s; cursor: pointer; }
.btn:hover { background: var(--navy-ink); border-color: var(--navy-ink); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.5); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn.line { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn.line:hover { background: var(--navy); color: #fff !important; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 21s infinite; transform: scale(1.06); }
.hero-media img:nth-child(1) { animation-delay: 0s; }
.hero-media img:nth-child(2) { animation-delay: 7s; }
.hero-media img:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.08); }
  5% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.0); }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,16,42,0.92) 0%, rgba(6,16,42,0.72) 45%, rgba(0,42,124,0.35) 100%), linear-gradient(0deg, rgba(6,16,42,0.6) 0%, rgba(6,16,42,0) 40%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(64px, 10vh, 120px); }
.hero h1 { color: #fff; max-width: 13em; }
.hero .lede { color: rgba(255,255,255,0.82); }
.hero .eyebrow { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.16); }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy-ink); color: #fff; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,16,42,0.95) 0%, rgba(6,16,42,0.6) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(56px, 8vw, 100px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 16em; }
.page-hero .lede { color: rgba(255,255,255,0.8); }
.page-hero .eyebrow { color: #fff; }
.page-hero.plain { background: var(--paper-alt); color: var(--ink); }
.page-hero.plain::after { display: none; }
.page-hero.plain h1 { color: var(--navy-ink); }
.page-hero.plain .eyebrow { color: var(--navy); }
.page-hero.plain .lede { color: var(--muted); }
.page-hero.plain .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
body.no-cta .cta { display: none; }

/* Sections */
section { padding: clamp(72px, 10vw, 140px) 0; }
section.tight { padding: clamp(48px, 7vw, 90px) 0; }
.alt { background: var(--paper-alt); }
.dark { background: var(--navy-deep); color: rgba(255,255,255,0.85); }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #fff; }
.dark .lede { color: rgba(255,255,255,0.72); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; min-height: 340px; transition: background .25s; }
.card:hover { background: #fbfbfd; }
.card .num { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.14em; color: var(--red); padding-bottom: 64px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split figure::before { content: ""; position: absolute; left: -14px; top: -14px; width: 72px; height: 72px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.checklist li { padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 2px; background: var(--navy); }
.dark .checklist { border-color: rgba(255,255,255,0.14); }
.dark .checklist li { border-color: rgba(255,255,255,0.14); }
.dark .checklist li::before { background: var(--red); }

/* Film */
.film { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.film:hover .poster { transform: scale(1.02); }
.film .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(0deg, rgba(6,16,42,0.55), rgba(6,16,42,0.15)); color: #fff; border: 0; width: 100%; cursor: pointer; font: 600 1rem/1 var(--sans); letter-spacing: 0.02em; }
.film .play i { width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.8); display: grid; place-items: center; transition: background .2s, transform .2s; }
.film .play i::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.film:hover .play i { background: var(--red); border-color: var(--red); transform: scale(1.05); }
.film.playing .play, .film.playing .poster { display: none; }

/* Stats strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 36px 28px 36px 0; border-right: 1px solid rgba(255,255,255,0.14); margin-right: 28px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact b { display: block; font: 600 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--sans); color: #fff; letter-spacing: -0.02em; margin-bottom: 6px; }
.fact span { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.alt .fact, .facts.light .fact { border-color: var(--line); }
.facts.light .fact b { color: var(--navy-ink); }
.facts.light .fact span { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.gallery img:first-child { grid-row: span 2; }

/* CTA */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; }
.cta::after { content: ""; position: absolute; right: 40px; bottom: -200px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; }
.cta .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; max-width: 18em; }
.cta .btn { background: #fff; color: var(--navy) !important; border-color: #fff; }
.cta .btn:hover { background: var(--red); border-color: var(--red); color: #fff !important; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); }
.contact-block { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block h3 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.contact-block p, .contact-block address { font-style: normal; font-size: 1.1rem; margin: 0; color: var(--navy-ink); }
.contact-block a { text-decoration: none; }
form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 0.82rem/1 var(--sans); letter-spacing: 0.04em; color: var(--navy-ink); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #cfd4de; border-radius: var(--radius); padding: 14px 16px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,42,124,0.12); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-left: 3px solid var(--navy); background: var(--paper-alt); display: none; }
.form-status.show { display: block; }
.form-status.error { border-color: var(--red); }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose p, .prose li { color: #2b3040; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose dl { display: grid; grid-template-columns: 220px 1fr; gap: 12px 24px; margin: 0 0 1.5em; }
.prose dt { font-weight: 600; color: var(--navy-ink); }
.prose dd { margin: 0; }
.lang-switch { font-size: 0.9rem; margin-bottom: 32px; }
.updated { font-size: 0.88rem; color: var(--muted); margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 56px; }
.footer-top img { height: 40px; width: auto; margin-bottom: 22px; }
.footer-top h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .code { font: 600 clamp(5rem, 14vw, 10rem)/1 var(--sans); color: var(--line); letter-spacing: -0.05em; }

/* Responsive */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter); transform: translateX(100%); transition: transform .3s ease; }
  .nav a { font-size: 1.4rem; padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 24px; width: auto; font-size: 1rem; border-bottom: 0; padding: 16px 26px; }
  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: block; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .num { padding-bottom: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .nav { inset: 72px 0 0 0; }
  .brand img { height: 34px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); padding: 24px 0; }
  .facts.light .fact { border-color: var(--line); }
  form.contact-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-top: 56px; }
  .prose dl { grid-template-columns: 1fr; gap: 4px; }
  .prose dd { margin-bottom: 12px; }
  .film .play span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 0; }
  .hero-media img:first-child { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Placeholder marker for values still to confirm (remove before go-live) */
.todo { background: #fff2a8; padding: 0 4px; border-radius: 2px; }
