/* Beausite Classic — licensed webfonts (Fatype), full character set, woff2 first. */
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Light.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Light.woff') format('woff');           font-weight:300; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Regular.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Regular.woff') format('woff');       font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Medium.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Medium.woff') format('woff');         font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Semibold.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Semibold.woff') format('woff');     font-weight:600; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Bold.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Bold.woff') format('woff');             font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Black.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Black.woff') format('woff');           font-weight:800; font-style:normal; font-display:swap; }
@font-face{ font-family:'Beausite Classic'; src:url('../fonts/BeausiteClassicWeb-Ultrablack.woff2') format('woff2'),url('../fonts/BeausiteClassicWeb-Ultrablack.woff') format('woff'); font-weight:900; font-style:normal; font-display:swap; }

/* ---------- FIMG design system: Premium Swiss institutional, "Gestaltete Ruhe" ---------- */


:root{
  /* FIMG palette: two locked primaries from the client's colour sheet, plus derived accents/ink/backgrounds. No navy anywhere. */

  /* ---- PRIMARY 1 — PETROL TEAL (locked, leads the brand) ---- */
  --petrol:        #0B6679;   /* rgb 11 102 121 */
  --petrol-deep:   #074A58;   /* sub-tone: deep field, footer */
  --petrol-light:  #14839A;   /* sub-tone: hover, secondary */
  --petrol-surface:#10768B;   /* surface tone for inner-page banners — chosen so white text clears 4.5:1 contrast; --petrol-light fails that test. */

  /* ---- PRIMARY 2 — BRIGHT TURQUOISE (locked, used sparingly) ---- */
  --turquoise:      #12D1AF;  /* rgb 18 209 175 */
  --turquoise-deep: #0FA98D;  /* sub-tone: AA-safe marks on light */
  --turquoise-soft: #7FE3CE;  /* sub-tone: marks on petrol */
  --petrol-bright:  #12D1AF;  /* legacy alias */

  /* ---- ACCENT 1 — SLATE TEAL (muted, institutional) ---- */
  --slate-teal:       #2E5F6B;
  --slate-teal-light: #47818F;
  --slate-teal-deep:  #1E4650;

  /* ---- ACCENT 2 — SAGE GREEN (calm, care) ---- */
  --sage:       #5FA98C;
  --sage-light: #8FC7AE;
  --sage-deep:  #3F7D66;
  --mint:       #5FA98C;      /* legacy alias */

  /* ---- ACCENT 3 — SAND (warm neutral counterweight) ---- */
  --sand:       #C8A87C;
  --sand-light: #E0CBAA;
  --sand-deep:  #9A7E52;

  /* ---- INK — derived from the petrol, never blue ---- */
  --ink:         #08303A;
  --ink-soft:    #3B5D66;
  --ink-mute:    #7A959C;

  /* dark-surface aliases so older rules resolve to brand colour */
  --navy:        #08303A;
  --navy-deep:   #074A58;
  --navy-soft:   #14839A;

  /* ---- BACKGROUNDS — warm off-white leads, soft tints support ---- */
  --bg:          #F4F1EC;   /* warm off-white, dominant */
  --bg-deep:     #EDE8E0;   /* warm, one step down */
  --bg-tint:     #EAF0F0;   /* soft petrol tint */
  --bg-warm:     #F2EDE4;   /* sand tint */
  --card:        #FFFFFF;

  /* ---- LINES ---- */
  --line:        #DBE6E7;
  --line-soft:   #EBF2F2;

  /* label / marker family */
  --slate-blue:    #7FA0A8;
  --slate-text:    #2E5F6B;
  --slate-blue-d:  #47818F;
  --slate-blue-up: #B6DFD5;   /* on petrol surfaces */
  --slate-tint:    #E6EFEE;
  --slate-tint-2:  #F1F6F5;

  --accent:      var(--petrol);
  --accent-tint: rgba(11,102,121,0.09);
  --turq-tint:   rgba(18,209,175,0.14);
  --slate-fill:  rgba(46,95,107,0.10);
  /* form validation */
  --error:       #BB3B32;
  --error-tint:  rgba(187,59,50,0.10);

  /* motion + metrics (non-colour tokens) */
  --ease-out: cubic-bezier(.16,.84,.32,1);
  --rise: .9s var(--ease-out);
  /* matches .nav-inner's real rendered height (base flex nav, not the handoff's html[data-nav] grid variant) — client-requested 92px. */
  --navh: 92px;

  --maxw: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
  /* left/right edge of the shared content column, for full-bleed sections
     (hero, nav) that must line up with .wrap's inner content box */
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));

  /* shaped surfaces — driven by the Formensprache tweak */
  --r-card: 10px;
  --r-photo: 10px;
  --r-btn: 100px;
  /* headline family — driven by the Typografie tweak */
  /* ONE SWITCH — swap these two lines when licensed Beausite files land */
  --font-brand: 'Beausite Classic';
  --font-fallback: system-ui, -apple-system, 'Segoe UI';
  --font-display: var(--font-brand);

  --font-stack: var(--font-brand), var(--font-fallback), system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--font-stack);
}

/* legacy aliases so older rules keep resolving */
:root{ --teal:var(--petrol); --teal-deep:var(--petrol-deep); --teal-cool:var(--slate-blue); }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:18px;
  line-height:1.72;
  font-weight:400;
  letter-spacing:.002em;
  overflow-x:hidden;
}
/* accent word in the hero H1 — colour+weight only, no font-size (a hardcoded 66px here used to break mobile scaling). */
h1 strong{
  color: var(--petrol);
  font-weight: 500;
}
@media (max-width:600px){ body{ font-size:16px; } }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }

/* faint static grain for depth — disabled per client request
body::after{
  content:""; position:fixed; inset:0; z-index:9999; pointer-events:none;
  opacity:.035; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
} */

/* ---------- Typography helpers ---------- */
.h-display, .h-section, .h-card, .proj-body h3, .sub-logo, .band-cap{
  font-family:var(--font-display), var(--font-fallback), system-ui, sans-serif;
}
.eyebrow{
  font-size:11px; font-weight:500; letter-spacing:.2em; text-transform:uppercase;
  color:var(--slate-text); display:inline-flex; align-items:center; gap:.7em;
}
.eyebrow::before{ content:""; width:24px; height:1px; background:var(--turquoise-deep); display:inline-block; }
.eyebrow.on-dark{ color:var(--slate-blue-up); }
.eyebrow.on-dark::before{ background:var(--turquoise); }

/* Display: light by default, one heavy accent word allowed */
.h-display{
  font-size:clamp(38px, 6.6vw, 86px); line-height:1.04; font-weight:500;
  letter-spacing:-.02em; margin:0; text-wrap:balance;
}
/* Section headings: Regular/Medium, calmer */
.h-section{
  font-size:clamp(28px, 3.6vw, 46px); line-height:1.12; font-weight:400;
  letter-spacing:-.015em; margin:0; text-wrap:balance; color:var(--navy);
}
.h-card{ font-family:var(--font-display),var(--font-fallback),system-ui,sans-serif; font-size:clamp(22px,2.3vw,30px); font-weight:500; letter-spacing:-.022em; line-height:1.12; margin:0; color:var(--navy); }
.lead{ font-size:clamp(18px,1.6vw,23px); line-height:1.62; font-weight:400; color:var(--ink-soft); }
.kicker{ font-size:11px; letter-spacing:.2em; text-transform:uppercase; font-weight:500; color:var(--slate-text); }
.muted{ color:var(--ink-soft); }

/* Accessible keyboard focus — visible ring, lighter on dark surfaces */
:focus-visible{ outline:2px solid var(--petrol); outline-offset:3px; border-radius:3px; }
.nav :focus-visible, .hero :focus-visible, .tochter :focus-visible,
.footer :focus-visible, .kw :focus-visible, .mobile-nav :focus-visible{ outline-color:var(--slate-blue-up); }

.accent-word{ color:var(--petrol); font-weight:500; }
.hero .accent-word.ultra{ color:var(--petrol); }

/* ---------- Layout ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }
section{ position:relative; }
.section-pad{ padding-block:clamp(48px,5.4vw,86px); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em; border:none; border-radius:var(--r-btn);
  padding:16px 30px; font-size:16px; font-weight:600; letter-spacing:.005em; white-space:nowrap;
  transition:transform .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s, border-radius .4s var(--ease-out);
}
.btn svg{ width:18px; height:18px; transition:transform .4s var(--ease-out); }
.btn-primary{ background:var(--petrol); color:#fff; box-shadow:0 10px 30px -14px rgba(11,102,121,.55); }
.btn-primary:hover{ background:var(--petrol-deep); transform:translateY(-2px); box-shadow:0 18px 40px -16px rgba(11,102,121,.6); }
.btn-primary:hover svg{ transform:translateX(4px); }
.btn-ghost{ background:transparent; color:var(--navy); border:1px solid var(--line); }
.btn-ghost.on-dark{ color:#fff; border-color:rgba(255,255,255,.28); }
.btn-ghost:hover{ border-color:var(--petrol); color:var(--petrol); transform:translateY(-2px); }
.btn-ghost.on-dark:hover{ color:#fff; border-color:var(--slate-blue-up); background:rgba(255,255,255,.06); }

.arrow-link{
  display:inline-flex; align-items:center; gap:.55em; font-weight:600; font-size:15px; color:var(--navy);
  letter-spacing:.01em;
}
.arrow-link svg{ width:16px; height:16px; transition:transform .4s var(--ease-out); color:var(--petrol); }
.arrow-link:hover{ color:var(--petrol); }
.arrow-link:hover svg{ transform:translateX(5px); }

/* reveal-on-scroll: resting state is visible; hidden state only applies once JS confirms it's painting, so content can't get stuck invisible. */
.reveal{ opacity:1; transform:none; transition:opacity var(--rise), transform var(--rise); }
html.no-anim .reveal{ transition:none !important; }
/* the hide-gate only applies once transitions are live — if .no-anim is never
   lifted (throttled/frozen iframe), every .reveal simply stays visible */
html.anim-ready:not(.no-anim) .reveal:not(.in){ opacity:0; transform:translateY(var(--rise-y,34px)); }
.reveal[data-d="1"]{ transition-delay:.10s; }
.reveal[data-d="2"]{ transition-delay:.20s; }
.reveal[data-d="3"]{ transition-delay:.30s; }
@media (prefers-reduced-motion:reduce){
  html.anim-ready .reveal:not(.in){ opacity:1; transform:none; }
  .reveal{ transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Abstract motif panels removed — Projekte now uses treated photography ---------- */

/* ---------- Cool petrol photo grade — the FIMG photographic signature ---------- */
.cool-frame{ position:relative; overflow:hidden; }
/* see .hero-photo in sections.css — the <figure> wrapper needs height:100% for the img's own height:100% to resolve against. */
.cool-frame .wp-block-image{ height:100%; }
.cool-frame img{ width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(.32) saturate(.6) brightness(.86) contrast(1.02); }
.cool-frame::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(11,102,121,.14), rgba(11,102,121,.30));
  mix-blend-mode:multiply; }
.cool-frame .photo-tag{
  position:absolute; z-index:3; left:14px; right:auto; bottom:13px;
  width:max-content; max-width:calc(100% - 28px);
  font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:10px; letter-spacing:.03em;
  color:rgba(255,255,255,.86); background:rgba(7,74,88,.58); border:1px solid rgba(255,255,255,.2);
  padding:4px 9px; border-radius:5px; backdrop-filter:blur(3px);
}
/* Tweak: photo grade — see Bildwelt (data-photo) below */

/* ---------- Expressive tweaks — each reshapes the whole feel ---------- */

/* ---- Bildwelt (photographic mood) ---- */
/* default "cool" = the base .cool-frame / .hero-photo grade above */
html[data-photo="duotone"] .cool-frame, html[data-photo="duotone"] .hero-photo{ background:#074A58; }
html[data-photo="duotone"] .cool-frame img, html[data-photo="duotone"] .hero-photo img{
  filter:grayscale(1) contrast(1.06) brightness(1.12); mix-blend-mode:screen; }
html[data-photo="duotone"] .cool-frame::after{ opacity:0; }
html[data-photo="duotone"] .hero-overlay{ background:
  linear-gradient(90deg, rgba(7,74,88,.86) 0%, rgba(7,74,88,.66) 44%, rgba(11,102,121,.32) 100%),
  linear-gradient(0deg, rgba(7,74,88,.72), rgba(7,74,88,0) 46%); }

html[data-photo="bw"] .cool-frame img, html[data-photo="bw"] .hero-photo img{
  filter:grayscale(1) contrast(1.07) brightness(.92); }
html[data-photo="bw"] .cool-frame::after{ background:rgba(11,102,121,.10); mix-blend-mode:normal; opacity:1; }

html[data-photo="color"] .cool-frame img, html[data-photo="color"] .hero-photo img{
  filter:saturate(1) brightness(.96) contrast(1.0); }
html[data-photo="color"] .cool-frame::after{ opacity:.22; }

/* ---- Typografie (headline personality) — all cuts are Beausite Classic ---- */
html[data-type="editorial"] .h-display{ font-weight:400; letter-spacing:-.01em; }
html[data-type="editorial"] .h-section{ font-weight:300; letter-spacing:-.008em; }
html[data-type="editorial"] .h-card{ font-weight:400; }

html[data-type="kompakt"] .h-display{ font-weight:700; letter-spacing:-.032em; line-height:1.0; }
html[data-type="kompakt"] .h-section{ font-weight:600; letter-spacing:-.02em; }
html[data-type="kompakt"] .h-card{ font-weight:600; }
html[data-type="kompakt"] .proj-body h3{ font-weight:600; }


/* ---- Formensprache (shape language) ---- */
html[data-shape="sharp"]{ --r-card:0px; --r-photo:0px; --r-btn:2px; }
html[data-shape="soft"]{ --r-card:22px; --r-photo:18px; --r-btn:100px; }
html[data-shape="soft"] .proj-visual{ box-shadow:0 40px 70px -50px rgba(14,30,51,.5); }

/* quiet nav button — outline on the dark bar, teal on the light one */
.btn-navcta{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.34);
  transition:background .35s var(--ease-out), border-color .35s, color .35s; }
.btn-navcta svg{ color:currentColor; }
.btn-navcta:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.6); box-shadow:none; transform:none; }
.nav.scrolled .btn-navcta{ color:var(--petrol-deep); border-color:rgba(11,102,121,.4); }
.nav.scrolled .btn-navcta:hover{ background:var(--accent-tint); border-color:var(--petrol); }

/* CookieYes - Accept All button */
.cky-notice-btn-wrapper .cky-btn {
    border-radius: var(--r-btn);
}
.cky-btn-accept {
    background-color: #0b6679 !important;
    border-color: #0b6679 !important;
    color: #ffffff !important;
}

/* CookieYes - Reject All button */
.cky-btn-reject {
    background-color: #ffffff !important;
    border: 1px solid #0b6679 !important;
    color: #0b6679 !important;
}

/* Hover effects */
.cky-btn-accept:hover {
    background-color: #074a58 !important;
    border-color: #074a58 !important;
}

.cky-btn-reject:hover {
    background-color: #074a58 !important;
    color: #ffffff !important;
}
div[data-cky-tag="powered-by"],
div[data-cky-tag="detail-powered-by"] {
    display: none !important;
}