/* BRAVOMINT shared design system — used by index.html, projeler.html and proje.html.
   Fonts, light/dark tokens, the 1440px frame, header + menu, buttons, footer and the
   three-step brief dialog. Page-specific styles live in ana.css and portfolio.css.
   Colours always come from the tokens below; components never hard-code a theme. */

@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/funnel-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/funnel-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ----------
   The four ground colours are registered so they interpolate. The single 700ms
   transition sits on :root; theme changes and the homepage atelier ground both ride
   on it, and nothing else (body, sections) adds a second background transition. */
@property --canvas { syntax: "<color>"; inherits: true; initial-value: #efeeeb; }
@property --ink    { syntax: "<color>"; inherits: true; initial-value: #0a0a0a; }
@property --muted  { syntax: "<color>"; inherits: true; initial-value: #6b6862; }
@property --line   { syntax: "<color>"; inherits: true; initial-value: #ccc9c4; }

:root {
  color-scheme: light;
  --canvas: #efeeeb;
  --ink: #0a0a0a;
  --muted: #6b6862;
  --line: #ccc9c4;
  --chip: #b8b5b0;
  --soft: #e3e1dc;          /* neutral ground behind images and placeholders */
  --paper: #f7f6f2;         /* light ground kept in both themes for transparent artwork */
  --accent: #d12424;
  /* Section surfaces. Light theme: warm light greys that separate gently; dark theme: the
     deeper night surfaces. Components use these, never fixed colours. */
  --band: #e5e3dd;          /* "What I do" + process */
  --band-ink: #0a0a0a;
  --band-muted: #625f59;
  --band-body: #3f3c37;
  --band-line: #c6c2bb;
  --foot: #dcd9d2;          /* footer */
  --foot-ink: #0a0a0a;
  --foot-muted: #5d5a54;
  --foot-line: rgba(10, 10, 10, 0.14);
  --card: rgba(247, 246, 242, 0.95); /* contact card over its soft gradient */
  --card-ink: #0a0a0a;
  --card-muted: #625f59;
  --card-line: rgba(10, 10, 10, 0.24);
  --viewer: #f1f0ec;        /* image viewer */
  --viewer-ink: #0a0a0a;
  --viewer-muted: #5d5a54;
  --viewer-line: rgba(10, 10, 10, 0.26);
  --scrim: rgba(10, 10, 10, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --margin: 24px;
  --frame: 1440px;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  transition: --canvas 700ms ease-in-out, --ink 700ms ease-in-out, --muted 700ms ease-in-out, --line 700ms ease-in-out;
}
/* Dark: warm near-black ground, off-white text, a lighter red that stays readable. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #151311;
  --ink: #eeebe5;
  --muted: #a6a197;
  --line: #3b3732;
  --chip: #514c45;
  --soft: #221f1c;
  --accent: #f0574a;
  --band: #0b0a09;
  --band-ink: #eeebe5;
  --band-muted: #a6a197;
  --band-body: #c7c2b9;
  --band-line: #4b4740;
  --foot: #0b0a09;
  --foot-ink: #eeebe5;
  --foot-muted: #b3ada3;
  --foot-line: rgba(238, 235, 229, 0.12);
  --card: rgba(11, 10, 9, 0.94);
  --card-ink: #eeebe5;
  --card-muted: #a6a197;
  --card-line: rgba(238, 235, 229, 0.28);
  --viewer: #0b0a09;
  --viewer-ink: #eeebe5;
  --viewer-muted: #bfbab2;
  --viewer-line: rgba(238, 235, 229, 0.3);
  --scrim: rgba(0, 0, 0, 0.7);
}
/* Homepage atelier (Myweblab-style ground change). A class, not inline colours, so the
   chosen theme comes back by itself when the section is left. */
:root.is-atelier { --canvas: #2a26f7; --ink: #f7f6eb; --muted: #d2d0ff; --line: #7875ff; }
:root[data-theme="dark"].is-atelier { --canvas: #1d1ab0; --ink: #f3f1ea; --muted: #c6c4ff; --line: #5754df; }

@media (min-width: 640px) { :root { --margin: 40px; } }
@media (min-width: 1024px) { :root { --margin: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; overflow-x: clip; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
html:has(dialog[open]) { overflow: hidden; }
.dialog-preferences { display: flex; gap: 8px; justify-content: flex-end; }
.dialog-pref { border: 1px solid var(--line); flex: none; }
.pf-lightbox .dialog-pref { width: 44px; min-width: 44px; color: inherit; border-color: var(--viewer-line); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--canvas); }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--frame); min-width: 0; margin-inline: auto; padding-inline: var(--margin); }
.rule { height: 1.5px; background: var(--line); }
.word { display: inline-block; }

/* ---------- type ---------- */
.label { font-size: 11px; line-height: 1.4; letter-spacing: 0.06em; color: var(--muted); }
.body { font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; }
.lead { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.section-title { font-size: 32px; line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
@media (min-width: 1024px) {
  .label { font-size: 12px; }
  .body { font-size: 16px; }
  .lead { font-size: 40px; }
  .section-title { font-size: 104px; }
}

/* ---------- buttons: square, thin border, no gradients ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 15px; border: 1px solid; border-radius: 0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; text-align: center; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.btn--line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn--line:hover { border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--card { background: var(--card-ink); color: var(--canvas); border-color: var(--card-ink); }
.btn--card:hover { background: transparent; color: var(--card-ink); }
.btn--text { min-height: 44px; padding-inline: 4px; border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.btn--text:hover { color: var(--ink); }
@media (min-width: 1024px) { .btn { font-size: 16px; } }

/* ---------- header: brand, language, theme, menu ---------- */
.nav { position: absolute; z-index: 40; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--frame); height: 60px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 var(--margin); }
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; margin: 0 0 -8px -8px; padding: 0 8px; }
.brand-word { font-size: 17.5px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; }
.nav-tools { display: flex; align-items: center; flex: none; margin: 0 -8px -8px 0; }
.tool-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; }
.tool-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tool-btn:hover { color: var(--accent); }
:root[data-theme="dark"] .icon-moon, :root:not([data-theme="dark"]) .icon-sun { display: none; }
.burger { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; width: 56px; height: 44px; padding: 0 8px; border: 0; background: transparent; cursor: pointer; }
.burger-l { display: block; width: 40px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.burger[aria-expanded="true"] .burger-l:first-child { transform: translateY(4.25px) rotate(45deg); width: 28px; }
.burger[aria-expanded="true"] .burger-l:last-child { transform: translateY(-4.25px) rotate(-45deg); width: 28px; }
@media (max-width: 359px) { .tool-btn { min-width: 40px; padding: 0 6px; } .burger { width: 50px; } .burger-l { width: 34px; } }
@media (min-width: 1024px) {
  .nav { top: 24px; height: 26px; align-items: center; }
  .brand { margin-block: -9px; }
  .brand-word { font-size: 17.6px; }
  .nav-tools { margin-block: -9px; gap: 4px; }
}

/* ---------- menu: slides in from the left ---------- */
.menu { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.menu-panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--canvas); padding-top: 96px; transform: translateX(-100%); visibility: hidden; transition: transform 0.62s var(--ease), visibility 0s linear 0.62s; pointer-events: auto; }
.menu.is-open .menu-panel { transform: none; visibility: visible; transition: transform 0.62s var(--ease), visibility 0s; }
.menu-inner { width: 100%; max-width: var(--frame); margin-inline: auto; padding: 0 var(--margin) 64px; }
.menu-link { display: block; padding: 12px 0; font-size: 26px; line-height: 1.05; letter-spacing: -0.015em; font-weight: 500; opacity: 0; transform: translateY(18px); transition: opacity 0.64s var(--ease), transform 0.64s var(--ease); }
.menu.is-open .menu-link { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) .menu-link { transition-delay: 0.235s; }
.menu.is-open li:nth-child(2) .menu-link { transition-delay: 0.295s; }
.menu.is-open li:nth-child(3) .menu-link { transition-delay: 0.355s; }
.menu.is-open li:nth-child(4) .menu-link { transition-delay: 0.415s; }
.menu.is-open li:nth-child(5) .menu-link { transition-delay: 0.475s; }
.menu-link .ch { transition: color 0.2s linear; }
.menu-link:hover .ch, .menu-link:focus-visible .ch, .menu-link[aria-current="page"] .ch { color: var(--accent); }
.menu-cta { display: inline-flex; margin-top: 40px; padding: 10px 0; border: 0; background: none; font-size: 15px; letter-spacing: -0.01em; color: var(--muted); text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: 0; transition: opacity 0.64s var(--ease) 0.42s, color 0.2s; }
.menu-cta:hover { color: var(--ink); }
.menu.is-open .menu-cta, .menu.is-open .menu-prefs { opacity: 1; }
.menu-prefs { display: grid; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1.5px solid var(--line); opacity: 0; transition: opacity 0.64s var(--ease) 0.48s; }
.pref-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 0; margin: 0; padding: 0; }
.pref-group legend { float: left; width: 100%; margin-bottom: 2px; padding: 0; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .pref-group legend { width: 96px; margin: 0; } }
.pref-opt { min-height: 44px; min-width: 88px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.pref-opt:hover { border-color: var(--ink); }
.pref-opt[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) {
  .menu-panel { padding-top: 128px; }
  .menu-link { font-size: 60px; }
  .menu-cta { font-size: 16px; }
}

/* ---------- footer ---------- */
.footer { background: var(--foot); color: var(--foot-ink); }
.rule--foot { height: 1px; background: var(--foot-line); }
.foot-word { margin-top: 64px; font-size: clamp(32px, 11vw, 110px); line-height: 0.9; letter-spacing: -0.04em; font-weight: 500; white-space: nowrap; }
.foot-row { margin-top: 44px; }
.foot-tag { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; text-transform: uppercase; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 32px; }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: 17px; letter-spacing: -0.01em; text-align: left; cursor: pointer; transition: opacity 0.2s; }
.foot-link:hover { opacity: 0.6; }
.foot-copy { margin-top: 48px; padding-bottom: 32px; font-size: 14px; line-height: 1.5; color: var(--foot-muted); }
@media (min-width: 1024px) {
  .foot-word { margin-top: 104px; font-size: 156px; }
  .foot-row { display: flex; align-items: flex-start; margin-top: 77px; }
  .foot-tag { width: 50%; font-size: 40px; }
  .foot-links { flex: 1; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 4px 32px; margin-top: -6px; }
  .foot-link { font-size: 18px; }
  .foot-copy { margin-top: 60px; padding-bottom: 24px; }
}

/* ---------- three-step brief dialog (shared by every page) ---------- */
.dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--canvas); color: var(--ink); overscroll-behavior: contain; }
.dialog::backdrop { background: var(--scrim); }
.dialog-inner { display: grid; gap: 18px; padding: 22px 20px 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-title { font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.dialog-close { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px 0 0; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.dialog-close:hover { border-color: var(--ink); }
.dialog-close svg, .brief-ref-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.brief-local { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-block: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--muted); }
.brief-local svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brief-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); font-size: 14px; }
.brief-ref[hidden] { display: none; }
.brief-ref-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brief-ref-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.brief-ref-remove { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.brief-ref-remove:hover { color: var(--accent); }
.brief-progress { display: grid; gap: 8px; }
.brief-progress-text { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brief-progress-track { position: relative; height: 1.5px; background: var(--line); }
.brief-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width 0.4s var(--ease); }
.brief-step { display: grid; gap: 10px; }
.brief-step[hidden] { display: none; }
.brief-step-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.brief-step-title:focus { outline: none; }
.brief-step-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brief-options { display: grid; gap: 8px; margin-top: 4px; }
@media (min-width: 560px) { .brief-options { grid-template-columns: 1fr 1fr; } }
.brief-option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.brief-option:hover { border-color: var(--ink); }
.brief-option:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.brief-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.field-label { margin-top: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dialog textarea, .dialog input[type="text"] { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.5; outline: none; resize: vertical; transition: border-color 0.3s; }
.dialog textarea { min-height: 120px; }
.dialog textarea:focus, .dialog input[type="text"]:focus { border-color: var(--ink); }
.dialog textarea::placeholder, .dialog input::placeholder { color: var(--muted); opacity: 1; }
.dialog [aria-invalid="true"] { border-color: var(--accent); }
.field-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field-error { font-size: 14px; line-height: 1.4; color: var(--accent); }
.field-error:empty { display: none; }
.brief-done-note { font-size: 15px; color: var(--muted); }
.brief-summary { display: grid; gap: 10px; }
.brief-summary div { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.brief-summary dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brief-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions[hidden] { display: none; }
.dialog-actions--nav { justify-content: space-between; padding-top: 6px; }
.dialog-actions--nav .btn[hidden] { display: none; }
.dialog-actions--nav .btn--solid { margin-left: auto; }
.brief-download-status { font-size: 14px; color: var(--muted); }
.brief-download-status:empty { display: none; }
@media (min-width: 640px) { .dialog-inner { padding: 30px 32px 32px; } .dialog-title { font-size: 40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  :root { transition: none; }
}
