/* PAN DATA — stylesheet, direction "Editorial Forest" with deep petrol (Nov 2026)
   Layout: an editorial page on ivory paper. One centred 1180px column on a 12-column logic;
   structure comes from space, hairlines and type, not from boxes. Petrol carries the brand,
   brass appears only as fine lines. */

:root {
  /* Colour */
  --paper: #F6F3EC;        /* page background, warm ivory */
  --paper-deep: #EEE9DE;   /* bands and image panels */
  --surface: #FCFAF5;      /* raised surfaces (header, contact panel) */
  --ink: #16201F;          /* body text, near-black with a green bias */
  --muted: #5B625E;        /* secondary text (contrast 6:1 on paper) */
  --petrol: #163E4F;       /* brand: logo, headings, buttons */
  --petrol-hover: #24566A; /* hover state */
  --brass: #B08D57;        /* accent, decorative lines only */
  --rule: #DED6C6;         /* hairlines */

  /* Type */
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Space (8px base) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
  --max: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1.5px solid var(--petrol); outline-offset: 4px; }
::selection { background: #D7E2E3; }

/* Type scale: 64 / 44 / 30 / 22 / 17 / 13 */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--petrol); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-family: var(--sans); }
p { max-width: 66ch; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--petrol);
}
.label::before { content: ''; width: 28px; height: 1px; background: var(--brass); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 84px; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink);
  background-image: linear-gradient(var(--petrol), var(--petrol));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding: 4px 0; transition: background-size 0.35s var(--ease), color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--petrol); background-size: 100% 1px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--petrol); font-size: 19px; width: 44px; height: 44px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius);
  background: var(--petrol); color: #FCFAF5 !important; border: 1px solid var(--petrol);
  background-image: none !important;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background-color: var(--petrol-hover); border-color: var(--petrol-hover); }
.nav-links a.btn { padding: 11px 20px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--petrol) !important; border-color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: #FCFAF5 !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6);
  align-items: end; padding-top: var(--s7); padding-bottom: var(--s6);
}
.hero h1 { margin: var(--s3) 0 var(--s3); }

.hero figure { min-width: 0; }

.caption { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; max-width: none; }

/* Sections */
.section { padding: var(--s7) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: end; margin-bottom: var(--s6); }
.section-head h2 { margin-top: var(--s3); }
.section-head p { color: var(--muted); font-size: 17px; }

/* Services: three open columns divided by hairlines */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--petrol); }
.service { padding: var(--s4) var(--s4) var(--s2) 0; display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.service + .service { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.service h3 { min-height: 2.5em; }
.service dl { display: grid; gap: 18px; }
.service dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol); }
.service dd { font-size: 16px; line-height: 1.6; margin-top: 4px; color: var(--ink); }
.more-link {
  display: inline-block; margin-top: var(--s5); font-weight: 500; color: var(--petrol);
  padding-bottom: 3px; border-bottom: 1px solid var(--brass); transition: border-color 0.3s var(--ease);
}
.more-link:hover { border-bottom-color: var(--petrol); }

/* Clients: a quiet register */
.clients { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.clients li { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.clients .name { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--petrol); }
.clients .what { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.clients a { color: var(--petrol) !important; text-decoration: none !important; border-bottom: 1px solid var(--brass); }

/* Sub-page header */
.page-head .wrap { padding-top: var(--s7); padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: var(--s3) 0 var(--s3); }
.page-head p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--muted); }
.page-head + .section { padding-top: var(--s6); }

/* Case studies: open editorial rows */
.cases { display: grid; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--rule); align-items: start; }
.case:first-child { border-top: 0; padding-top: 0; }
.case[style] .case-body { max-width: 760px; }
.case-media { display: grid; gap: var(--s2); min-width: 0; }
.case-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--paper-deep); padding: 14px; border: 1px solid var(--rule); }

.case-body { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: var(--s2); }
.chip { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol); }
.chip + .chip { color: var(--muted); font-weight: 500; }
.case h2 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: var(--s4); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--petrol); border-bottom: 1px solid var(--rule); margin-bottom: var(--s4); }
.figure { padding: 18px 16px 18px 0; }
.figure .num { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--petrol); font-variant-numeric: lining-nums tabular-nums; }
.figure .unit { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.case h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol); margin: var(--s3) 0 10px; }
.case ul { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.case li { padding-left: 22px; position: relative; }
.case li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--brass); }

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--petrol); overflow-wrap: anywhere; }

/* Linked platforms and contact cards */
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.link-card {
  background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--petrol);
  padding: var(--s4); display: grid; gap: 14px; align-content: start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.link-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(22, 62, 79, 0.35); }
.link-card h3 { font-size: 28px; }
.link-card p { color: var(--muted); font-size: 16px; }

.link-card .email { font-family: var(--serif) !important; font-weight: 400 !important; font-size: 28px !important; color: var(--petrol) !important; overflow-wrap: anywhere; }

/* Legal text */
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: var(--s5) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--petrol); margin: var(--s3) 0 6px; }
.prose p { margin-bottom: 12px; }
.prose a { color: var(--petrol); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: var(--s6); padding-bottom: var(--s4); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--s5); padding-bottom: var(--s5); }
.footer-grid img { height: 32px; width: auto; margin-bottom: var(--s2); }
.footer-grid p, .footer-grid li { font-size: 14.5px; color: var(--muted); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: var(--petrol); }
.footer-grid .label { margin-bottom: var(--s2); }
.footer-bottom { padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); max-width: none; }

/* Motion: one page-load reveal, then gentle fades (content stays visible without JS) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .wrap > *, .page-head .wrap > * { animation: rise 0.9s var(--ease) both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.15s; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .section-head, .case { grid-template-columns: 1fr; gap: var(--s4); }
  .hero .wrap { padding-top: var(--s6); }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: var(--s4) 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--rule); }
  .service h3 { min-height: 0; }
  
  
  
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --s6: 48px; --s7: 72px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s1) max(24px, env(safe-area-inset-left, 0px)) var(--s3);
  }
  .nav-links.active { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); background-image: none; }
  .nav-links a.btn { margin-top: var(--s2); }
  
  
  
  .clients { grid-template-columns: 1fr; }
  .link-card { padding: var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Home hero without image (2 Nov 2026): one column, wide headline */
.hero .wrap { grid-template-columns: minmax(0, 1fr); }
.hero h1 { max-width: 16ch; font-size: clamp(42px, 6vw, 76px); }

/* Home without key figures (2 Nov 2026): hairline between hero and services */
.hero + .section { border-top: 1px solid var(--rule); }

/* Case studies alternate (2 Nov 2026): 1st, 3rd… text left / image right; 2nd, 4th… image left / text right */
.case:nth-child(odd) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.case:nth-child(odd) .case-media { order: 2; }
.case:nth-child(odd) .case-body { order: 1; }
@media (max-width: 1000px) {
  .case:nth-child(odd) { grid-template-columns: 1fr; }
  .case:nth-child(odd) .case-media, .case:nth-child(odd) .case-body { order: 0; }
}

/* Selected projects on the home page: three static teasers (no carousel) */
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.teaser { display: grid; gap: 12px; align-content: start; min-width: 0; color: var(--ink); }
.teaser img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); transition: opacity 0.3s var(--ease); }
.teaser:hover img { opacity: 0.88; }
.teaser .chip { margin-top: 6px; }
.teaser h3 { font-size: 22px; }
.teaser p { font-size: 15.5px; color: var(--muted); }

@media (max-width: 1000px) { .teasers { grid-template-columns: 1fr; } }

/* Nov 2026 v2: how we work, unit line, case call to action */

.teaser .caption { margin-top: -6px; font-size: 12px; }

.teaser .src { font-size: 12.5px; }

/* v2 (Nov 2026): skip link, breadcrumb, page meta, questions, contact address, case headings */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--petrol); color: #FCFAF5; padding: 10px 16px; font-size: 14px; font-weight: 600; border-radius: var(--radius); transition: top 0.2s; }
.skip-link:focus { top: 12px; }
.site-header nav { display: contents; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: var(--s3); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--rule); }
.breadcrumb a { color: var(--petrol); border-bottom: 1px solid var(--brass); }

.page-head p a { color: var(--petrol); border-bottom: 1px solid var(--brass); }

.link-card address { font-style: normal; color: var(--ink); font-size: 17px; line-height: 1.6; }
.link-card .email { font-size: 24px !important; }

.footer-bottom a { color: var(--petrol); }

/* v2 contrast fixes: step numbers in a darker brass (4.9:1 on ivory); underlined links in small text */

.footer-bottom a { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Header: five links */
.nav-links { gap: 32px; }
@media (max-width: 1000px) and (min-width: 721px) { .nav-links { gap: 20px; } .nav-links a { font-size: 14px; } }

/* Service cards on home / overview */

.service .lead { font-size: 16px; line-height: 1.6; }

.service .num { font-family: var(--serif); font-size: 15px; color: #7E6033; letter-spacing: 0.08em; }

/* Service page blocks */

.page-head .btn-row { margin-top: var(--s4); }

/* Case studies: structured definition list */
.case-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: var(--s3); }
.case-grid > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--s3); padding: 14px 0; border-bottom: 1px solid var(--rule); }
.case-grid dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol); padding-top: 3px; }
.case-grid dd { font-size: 16px; }
.case-grid dd ul { margin: 0; }

.case { scroll-margin-top: 100px; }

/* Responsive for v3 blocks */

@media (max-width: 720px) {
  
  
  .case-grid > div { grid-template-columns: 1fr; gap: 4px; }
  
  
  
  
  
}

.service h3 a:hover { color: var(--petrol-hover); }

/* v4 (8 Nov 2026): one services page with three capability sections */

.service .lead strong { font-weight: 600; color: var(--petrol); }


/* v5 (22 Nov 2026): language switcher, project footnote, German hyphenation */
.lang-switch { display: flex; gap: 12px; }
.nav-links .lang-switch a { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.nav-links .lang-switch a[aria-current="true"] { color: var(--petrol); }
.note-ref { font-size: 0.7em; line-height: 0; color: var(--petrol); }
.case-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: var(--s2); }
:lang(de) h3, :lang(de) .what, :lang(de) .unit, :lang(de) .case-grid dt { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 720px) {
  .lang-switch { gap: 22px; padding: var(--s1) 0; border-bottom: 1px solid var(--rule); }
  .nav-links .lang-switch a { display: inline-block; padding: 8px 0; border-bottom: none; }
}
