/*
Theme Name: Gwendal Portfolio
Theme URI: https://www.gwendal-bonneel.de/
Author: Gwendal Bonneel
Description: Minimal portfolio theme for Gwendal Bonneel.
Version: 0.1.0
Text Domain: gwendal-portfolio
*/

:root {
  --ink: #111;
  --muted: #696969;
  --paper: #f5f3f1;
  --line: #d9d7d2;
  --placeholder: transparent;
  --white: #fff;
  --max: 1480px;
  --pad: clamp(22px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 24px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.site-header { position: relative; z-index: 20; background: rgba(245,243,241,.94); border-bottom: 1px solid var(--line); }
.home .site-header { position: absolute; top: 0; right: 0; left: 0; background: transparent; }
.header-inner { min-height: 104px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { font-size: 18px; font-weight: 650; line-height: .95; letter-spacing: .12em; text-transform: uppercase; }
.main-nav ul { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); margin: 0; padding: 0; list-style: none; }
.main-nav a, .pdf-link { position: relative; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.main-nav a::after, .pdf-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--ink); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after, .pdf-link:hover::after { right: 0; }
.pdf-link { justify-self: end; }
.menu-toggle { display: none; justify-self: end; width: 36px; height: 36px; padding: 0; border: 0; background: none; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 1px; margin: 5px auto; background: var(--ink); transition: .25s; }

.hero { position: relative; min-height: calc(100vh - 104px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(245,243,241,.96) 0%, rgba(245,243,241,.72) 28%, rgba(245,243,241,0) 58%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; display: flex; width: 100%; min-height: calc(100vh - 104px); flex-direction: column; align-items: flex-start; justify-content: center; padding: calc(104px + clamp(48px, 6vw, 96px)) 0 clamp(48px, 6vw, 96px) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); pointer-events: none; }
.hero-copy > * { margin-left: 0; pointer-events: auto; }
.hero-role { width: auto; max-width: none; margin: 0 0 clamp(28px, 2.5vw, 42px); font-size: clamp(14px, 1.3vw, 21px); letter-spacing: .25em; white-space: nowrap; }
.hero h1 { max-width: 560px; margin: 0; font-size: clamp(58px, 5.28vw, 93px); font-weight: 400; line-height: 1.01; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 small { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 500; letter-spacing: .22em; }
.hero-copy p { color: #222; }
.hero-intro { width: min(100%, 560px); max-width: none; margin: clamp(52px, 5vw, 80px) 0 clamp(52px, 4.5vw, 76px); font-size: clamp(16px, 1.3vw, 22px); line-height: 1.55; }
.hero .button-link { width: clamp(274px, 24vw, 410px); min-width: 0; justify-content: space-between; padding: clamp(18px, 1.6vw, 27px) clamp(22px, 2vw, 34px); font-size: clamp(12px, 1vw, 16px); white-space: nowrap; }
.button-link { display: inline-flex; width: fit-content; align-items: center; gap: 42px; padding: 17px 22px; border: 1px solid var(--ink); font-size: 12px; text-transform: uppercase; transition: .25s; }
.button-link:hover { color: var(--white); background: var(--ink); }
.hero-visual { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: var(--paper); }
.hero-stage { position: absolute; top: 50%; left: 0; width: 100%; aspect-ratio: 3 / 2; transform: translateY(-50%); }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.laptop-screen { position: absolute; z-index: 2; top: 0; left: 0; width: 1920px; height: 1200px; overflow: hidden; border-radius: 3px; transform-origin: 0 0; background: #eee9e4; will-change: transform; }
.laptop-screen-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s ease-in-out; }
.laptop-screen-slide.is-active { opacity: 1; pointer-events: auto; }
.laptop-screen-slide img { width: 100%; height: 100%; object-fit: cover; }
.laptop-screen-glare { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.04) 38%, rgba(0,0,0,.08) 100%); box-shadow: inset 0 0 20px rgba(0,0,0,.16); mix-blend-mode: soft-light; }

.section { padding-block: clamp(80px, 10vw, 160px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2, .page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 72px); font-weight: 450; line-height: 1; letter-spacing: -.045em; }
.text-link { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 52px) 16px; }
.project-card { min-width: 0; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 1.25 / 1; margin-bottom: 15px; background: var(--placeholder); }
.project-image::after { content: "VISUAL\A TEMPORÄR"; white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.82); font-size: 12px; letter-spacing: .16em; text-align: center; }
.project-image:has(img)::after { display: none; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.project-card p { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.project-card .text-link { display: inline-flex; gap: 18px; }
.home #selected-projects { padding-top: clamp(48px, 6vw, 88px); }
.home .project-card .text-link { display: none; }
.project-card:hover .project-image { filter: brightness(.93); }

.page-hero { padding-block: clamp(80px, 12vw, 180px); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; margin: 30px 0 0; font-size: clamp(18px, 2vw, 28px); color: #333; }
.prose { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 8vw, 140px); }
.prose h2 { margin-top: 0; font-size: clamp(28px, 4vw, 56px); font-weight: 450; line-height: 1.05; }
.prose-copy { max-width: 760px; }
.prose-copy p:first-child { margin-top: 0; font-size: 21px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid var(--line); }
.fact { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.fact strong { display: block; margin-bottom: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.project-detail { padding-top: clamp(0px, 2vw, 35px); }
.project-meta { display: grid; grid-template-columns: 35% 65%; align-items: start; gap: 0; }
.project-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; padding: 0 clamp(28px, 3.5vw, 64px) 60px var(--pad); text-align: right; }
.project-info .eyebrow { margin: 0 0 20px; }
.project-copy-column { width: 100%; max-width: 100%; text-align: right; }
.project-info h1 { display: inline-block; margin: 0; font-size: clamp(56px, 7vw, 112px); font-weight: 650; line-height: .82; letter-spacing: -.065em; text-align: left; text-transform: uppercase; }
.project-services { margin: clamp(48px, 5vw, 82px) 0 0; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.4; text-align: left; white-space: nowrap; }
.project-summary { margin: 30px 0 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.34; text-align: justify; text-align-last: left; hyphens: auto; }
.project-slide-controls { display: flex; gap: 10px; margin-top: 34px; }
.project-slide-controls button { display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid var(--ink); color: var(--ink); background: transparent; font: inherit; font-size: 13px; cursor: pointer; transition: border-width .2s ease, opacity .2s ease; }
.project-slide-controls button:hover { opacity: .55; }
.project-slide-controls button.is-active { border-width: 2px; }
.project-inline-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 234px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }
.project-inline-nav span:last-child { text-align: right; }
.project-inline-nav a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.project-inline-nav small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project-inline-nav strong { font-size: 12px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.project-inline-nav span:first-child a:hover strong { transform: translateX(-4px); }
.project-inline-nav span:last-child a:hover strong { transform: translateX(4px); }
.project-main { min-width: 0; }
.project-visual { aspect-ratio: 3 / 2; min-height: 0; background: var(--placeholder); display: grid; place-items: center; overflow: hidden; color: var(--white); letter-spacing: .18em; font-size: 12px; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-slider { position: relative; display: block; }
.project-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease-in-out; }
.project-slide.is-active { opacity: 1; pointer-events: auto; }
.project-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-data { padding: clamp(34px, 4vw, 62px) 0 clamp(80px, 10vw, 150px); }
.project-body { max-width: 1180px; margin: clamp(70px, 9vw, 140px) auto; padding-inline: var(--pad); }
.project-copy > h2, .project-facts-grid h2 { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.project-copy > p { max-width: 760px; margin: 0; font-size: clamp(20px, 2vw, 30px); line-height: 1.45; }
.project-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 6vw, 90px); margin: 0; padding: 0 4px; border: 0; }
.project-facts-grid ul { margin: 0; padding: 0; list-style: none; }
.project-facts-grid li { margin: 0 0 7px; line-height: 1.45; }
.project-additional { margin-top: clamp(20px, 4vw, 60px); }
.project-secondary-image { width: 100%; margin: 0; }
.project-secondary-image img { display: block; width: 100%; height: auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 160px); }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-form label { display: block; margin-bottom: 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { cursor: pointer; }

.site-footer { color: #f4f4f4; background: #111; }
.footer-main { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(28px, 5vw, 80px); padding-block: 30px; }
.footer-identity { display: flex; align-items: center; gap: 24px; }
.footer-logo { width: 92px; flex: 0 0 auto; margin: 0; }
.footer-logo svg { width: 100%; height: auto; }
.footer-identity p { margin: 0; font-size: 12px; line-height: 1.45; color: #aaa; }
.footer-col h2 { margin: 0 0 20px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-contact ul, .footer-legal ul { display: flex; align-items: center; gap: clamp(24px, 4vw, 54px); margin: 0; padding: 0; list-style: none; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.phone-link__icon { width: 16px; height: 16px; fill: currentColor; }
.footer-contact li, .footer-legal li { margin: 0; font-size: 13px; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(28px, 5vw, 80px); padding-block: 13px; border-top: 1px solid #333; font-size: 11px; color: #888; }
.footer-legal { justify-self: start; }
.cookie-settings { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.cookie-banner[hidden], .cookie-banner__main[hidden], .cookie-banner__custom[hidden] { display: none; }
.cookie-banner { position: fixed; z-index: 1000; right: 22px; bottom: 22px; left: 22px; color: #181818; }
.cookie-banner__inner { width: min(100%, 900px); margin-left: auto; padding: 24px; border: 1px solid #d7d3cf; background: #f5f3f1; box-shadow: 0 14px 44px rgba(0,0,0,.16); }
.cookie-banner__main, .cookie-banner__custom { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 28px; }
.cookie-banner strong { font-size: 14px; font-weight: 600; }
.cookie-banner p { max-width: 600px; margin: 8px 0 0; color: #555; font-size: 13px; line-height: 1.5; }
.cookie-banner__actions { display: flex; justify-content: flex-end; gap: 8px; }
.cookie-banner button { min-height: 42px; padding: 0 16px; border: 1px solid #181818; color: #181818; background: transparent; cursor: pointer; }
.cookie-banner button.is-primary { color: #fff; background: #181818; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 180px; }
.cookie-option span { display: grid; gap: 3px; }
.cookie-option small { color: #666; }
.cookie-option input { width: 20px; height: 20px; accent-color: #181818; }
.legal-page { max-width: 900px; }
.legal-page h2 { margin: 52px 0 14px; font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; line-height: 1.25; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { margin: 0 0 16px; color: #3f3f3f; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page code { padding: 2px 5px; background: rgba(0,0,0,.05); }
.legal-cookie-button { border: 0; padding: 0; color: inherit; background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 82px; }
  .main-nav, .pdf-link { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open { display: block; position: absolute; top: 82px; left: 0; right: 0; padding: 26px var(--pad) 38px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open ul { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero { min-height: calc(100svh - 82px); }
  .hero::after { background: linear-gradient(180deg, rgba(245,243,241,.98) 0%, rgba(245,243,241,.78) 38%, rgba(245,243,241,.08) 72%); }
  .hero-copy { width: 100%; min-height: calc(100svh - 82px); justify-content: center; padding: calc(82px + 48px) var(--pad) 48px; }
  .hero-visual { min-height: 0; }
  .hero-stage { top: auto; bottom: 0; transform: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-meta, .prose { grid-template-columns: 1fr; }
  .project-info { align-items: flex-end; padding: 0 var(--pad) 50px; text-align: right; }
  .project-services, .project-summary { max-width: 680px; }
  .project-main { width: 100%; }
  .project-data { padding-inline: var(--pad); }
}

@media (max-width: 640px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; }
  .cookie-banner__inner { padding: 20px; }
  .cookie-banner__main, .cookie-banner__custom { grid-template-columns: 1fr; align-items: stretch; gap: 20px; }
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr; }
  .phone-link__text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .phone-link__icon { width: 22px; height: 22px; }
  .hero-copy { min-height: calc(100svh - 82px); padding: 130px var(--pad) 48px; }
  .hero-role { width: auto; font-size: 13px; }
  .project-facts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(39px, 11.2vw, 51px); }
  .hero-intro { width: 100%; margin: 34px 0; font-size: 16px; }
  .hero-intro br { display: none; }
  .hero .button-link { width: min(100%, 340px); font-size: 12px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-visual { min-height: 300px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .project-image { grid-row: span 3; margin: 0; }
  .project-card p { margin: 0; }
  .project-services { margin-top: 42px; white-space: normal; }
  .project-summary { margin-top: 24px; }
  .project-data { padding-top: 34px; }
  .project-inline-nav { margin-top: 70px; }
  .facts, .contact-grid, .footer-main { grid-template-columns: 1fr; }
  .footer-main { gap: 16px; padding-block: 24px; }
  .footer-logo { width: 76px; margin-bottom: 8px; }
  .footer-contact ul, .footer-legal ul { flex-wrap: wrap; gap: 10px 24px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 10px; }
  .footer-legal { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
