/* ByteDraco — core stylesheet
   Visual system: the shield mark — angular facets, bracket forms,
   red on black, hairlines doing the structural work.
   ---------------------------------------------------------------- */

/* 0. Self-hosted webfonts ------------------------------------------
   Sora + Inter served from this origin, so no page hands its visitor's
   IP to Google's font servers. The files in
   assets/fonts/ are the unmodified upstream woff2 subsets, cut to the
   weight range and the two subsets this site renders: `latin` and
   `latin-ext`. `latin-ext` is not optional in Turkish: ş, ğ, İ and ı all
   sit outside the `latin` range and fall back to a system face without it.
   SIL Open Font License 1.1 — see assets/fonts/OFL-inter.txt and OFL-sora.txt.
   Keep the unicode-range values in step with the files; dropping one
   silently changes which glyphs the browser pulls from which file. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/sora-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/sora-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;
}

/* 1. Tokens ------------------------------------------------------- */
:root {
  --ink:        #141418;
  --ink-soft:   #232329;
  --bg:         #F4F4F6;
  --surface:    #FFFFFF;
  --red:       #E62226;
  --red-deep:  #B8161A;
  --muted:      #63636F;
  --black:      #0B0B0E;
  --bone:       #F7F5EF;
  --line:       #E2E2E8;
  --line-soft:  #EDEDF2;
  --danger:     #A32F2F;
  --ok:         #1F6B4B;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", var(--sans);

  /* type scale — 1.28 ratio, capped deliberately */
  --t-xs:  0.75rem;   /* 12 */
  --t-sm:  0.8125rem; /* 13 */
  --t-ui:  0.875rem;  /* 14 */
  --t-base:1rem;      /* 16 */
  --t-lg:  1.125rem;  /* 18 */
  --t-xl:  1.3125rem; /* 21 */
  --t-2xl: 1.625rem;  /* 26 */
  --t-3xl: 2.125rem;  /* 34 */
  --t-4xl: 2.75rem;   /* 44 */

  --shell: 1180px;
  --gutter: 28px;
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2. Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* the hidden attribute must always win over display:grid/flex set elsewhere */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.021em; margin: 0; line-height: 1.16; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-size: var(--t-ui); text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

/* visually hidden. Second selector out-ranks `.field input { width:100% }`
   so the honeypot input can never stretch the layout. */
.vh, .field .vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 3. Shell / grid ------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 760px; }

.band { padding-block: 84px; }
.band--tight { padding-block: 56px; }
.band--wide { padding-block: 112px; }
.band--ink { background: var(--ink); color: #fff; }
.band--surface { background: var(--surface); }
.band + .band--surface { border-top: 1px solid var(--line); }

/* 4. Typographic helpers ------------------------------------------ */
.lede { font-size: var(--t-lg); color: var(--muted); max-width: 58ch; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 66ch; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-bottom: 40px; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--muted); font-size: var(--t-ui); max-width: 42ch; margin-left: auto; }
.band--ink .section-head p { color: #9C9CA8; }

/* the small node mark used instead of an all-caps eyebrow */
.node-mark { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
/* the slash from the </> in the mark, used instead of an all-caps eyebrow */
.node-mark::before {
  content: ""; width: 4px; height: 15px; flex: none;
  background: var(--red); transform: skewX(-17deg);
}

/* 5. Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: var(--t-ui); font-weight: 500; letter-spacing: .005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-soft); }
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--red:hover { background: #F2383C; }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: #C6C6D0; background: #FAFBFE; }
.band--ink .btn--ghost { background: transparent; border-color: rgba(255,255,255,.26); color: #fff; }
.band--ink .btn--ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

/* quiet inline link with an underline that grows */
.ln { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .28s var(--ease); padding-bottom: 2px; font-weight: 500; }
.ln:hover, .ln:focus-visible { background-size: 100% 1.5px; }
.band--ink .ln { color: #fff; }

/* 6. Navbar ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: auto; height: 30px; flex: none; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.brand__name span { color: var(--muted); font-weight: 500; }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 8px 12px;
  font-size: var(--t-ui); color: var(--muted); text-decoration: none;
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--red);
}
.nav__tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.lang {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: var(--t-sm); padding: 6px 10px; border-radius: var(--radius);
  cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease);
}
.lang:hover { color: var(--ink); border-color: #C6C6D0; }
.nav .btn { padding: 9px 16px; }

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .26s var(--ease), top .18s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 66px 0 0 auto; width: min(340px, 86vw);
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 24px var(--gutter) 40px; z-index: 95;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer[data-open="true"] { transform: none; visibility: visible; }
.drawer a {
  padding: 14px 4px; text-decoration: none; color: var(--ink);
  font-size: var(--t-lg); font-family: var(--display); font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.drawer a[aria-current="page"] { color: var(--red-deep); }
.drawer a.btn { color: #fff; }
.drawer .btn { margin-top: 22px; }
.scrim {
  position: fixed; inset: 0; background: rgba(11,11,14,.44);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 94;
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* 7. Hero --------------------------------------------------------- */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: 56px; align-items: center; padding-block: 92px 104px;
}
.hero h1 { font-size: var(--t-4xl); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero__lede { margin-top: 20px; font-size: var(--t-lg); color: var(--muted); max-width: 40ch; }
.hero__cta { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 36px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--muted);
}
.hero__meta dl, .hero__meta dd, .hero__meta dt { margin: 0; }
.hero__meta b { display: block; font-family: var(--display); font-size: var(--t-base);
  font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.hero__art { position: relative; }

/* hero mark: the brackets draw themselves around the logo, once */
.mark-frame { width: 100%; height: auto; }
.mark-frame .br {
  fill: none; stroke: var(--red); stroke-width: 8;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease) .15s forwards;
}
.mark-frame .br--2 { animation-delay: .35s; }
.mark-frame .mark { opacity: 0; animation: fade .7s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* 8. Four-tile grid (home) — shared hairlines, not floating cards -- */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.tile {
  padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tile:nth-child(2n) { border-right: 0; }
.tile:nth-child(n+3) { border-bottom: 0; }
.tile__art { width: 100%; aspect-ratio: 1/1; max-width: 132px; margin-bottom: 22px; }
.tile h3 { font-size: var(--t-xl); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: var(--t-ui); max-width: 34ch; }

/* 9. Work teaser -------------------------------------------------- */
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teaser[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.teaser[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 520px; }

/* 10. Reference gallery ------------------------------------------- */
/* Keep every project at the same compact size: three cards per desktop row. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ref a, .ref > div { display: block; text-decoration: none; color: inherit; }
.ref__thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius); background: var(--black);
  border: 1px solid var(--line);
}
.ref__thumb img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease); filter: saturate(.92); }
.ref:hover .ref__thumb img { transform: scale(1.035); filter: saturate(1); }
.ref h3 { font-size: var(--t-lg); margin-top: 16px; }
.ref p { color: var(--muted); font-size: var(--t-ui); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.tags li { font-size: var(--t-xs); color: var(--muted); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; background: var(--surface); }

/* 10b. Individual project page ---------------------------------- */
.project-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--black); }
.project-images img:only-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
.project-detail__copy { max-width: 760px; margin: 44px auto 0; }
.project-detail__copy h1 { font-size: var(--t-3xl); }
.project-detail__summary { margin-top: 14px; font-size: var(--t-lg); font-weight: 600; line-height: 1.55; }
.project-detail__body { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-detail__body h2 { font-size: var(--t-xl); margin-bottom: 14px; }

/* 11. Hairline definition list (services / about) ----------------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0,4fr) minmax(0,7fr);
  gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.row h3 { font-size: var(--t-xl); }
.row__note { color: var(--muted); font-size: var(--t-sm); margin-top: 8px; }
.row p { color: var(--muted); }
.row ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.row ul li { position: relative; padding-left: 20px; color: var(--muted); font-size: var(--t-ui); }
.row ul li::before { content: ""; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* 12. Panels / callouts ------------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px;
}
.panel--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel--ink p { color: #9C9CA8; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.split--wide-left { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }

/* 13. Forms ------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > label { font-size: var(--t-ui); font-weight: 500; color: var(--ink); }
.field .hint { font-size: var(--t-sm); color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--t-base); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8C8C99; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #C6C6D0; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red-deep); box-shadow: 0 0 0 3px rgba(230,34,38,.16);
}
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea, .field[data-invalid="true"] select {
  border-color: var(--danger);
}
.field .err { font-size: var(--t-sm); color: var(--danger); min-height: 0; }
.field[data-invalid="true"] .err::before { content: ""; }
.form__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }

/* project form: grouped fields, branded select, numbered next-steps */
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 30px; }
/* float pulls the legend off the fieldset's border line so the divider
   above a group doesn't strike through its title */
.form legend { float: left; width: 100%; font-family: var(--display); font-weight: 600; font-size: var(--t-lg);
  letter-spacing: -.015em; padding: 0; margin: 0; }
.form legend + * { clear: both; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2363636F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 6px;
  padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--t-ui); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 600; color: var(--red); }
.aside-note { margin-top: 24px; color: var(--muted); font-size: var(--t-ui); max-width: 38ch; }
.aside-note + .aside-note { margin-top: 12px; }
.pointer { margin-bottom: 26px; padding: 14px 16px; border-left: 2px solid var(--red);
  background: var(--bg); color: var(--muted); font-size: var(--t-ui); }

.notice { border-radius: var(--radius); padding: 14px 16px; font-size: var(--t-ui); border: 1px solid; }
.notice--ok { color: var(--ok); border-color: #B7DCC9; background: #F1F9F5; }
.notice--bad { color: var(--danger); border-color: #EBC3C3; background: #FCF3F3; }
.notice[hidden] { display: none; }
.notice--info { color: var(--muted); border-color: var(--line); background: var(--bg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-ui); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--red); cursor: pointer; }

/* 14. Tables (admin) ---------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: var(--t-ui); }
table.data th { font-weight: 600; color: var(--muted); font-size: var(--t-sm); background: #FAFBFE; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; transition: background-color .16s var(--ease); }
table.data tbody tr:hover { background: #FAFBFE; }
.dot-new { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; }

/* 15. Dialog ------------------------------------------------------ */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0;
  width: min(680px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: rgba(11,11,14,.5); }
.dialog__head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 26px 0; }
.dialog__head h3 { font-size: var(--t-xl); }
.dialog__body { padding: 18px 26px 26px; }
.dialog__foot { display: flex; gap: 12px; justify-content: flex-end; padding: 0 26px 26px; }
.x-btn { margin-left: auto; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 6px; }
.x-btn:hover { color: var(--ink); }

/* 16. Footer ------------------------------------------------------ */
.foot { background: var(--ink); color: #fff; padding-block: 64px 36px; }
.foot__grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(2, minmax(0,1fr)); gap: 40px; }
.foot h4 { font-size: var(--t-ui); font-weight: 600; margin-bottom: 14px; color: #fff; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: #9C9CA8; text-decoration: none; font-size: var(--t-ui); transition: color .18s var(--ease); }
.foot a:hover { color: #fff; }
.foot__bar { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: var(--t-sm); color: #85858F; }
.foot .brand__name { color: #fff; }
.foot .brand__name span { color: #85858F; }
.foot p.small { color: #85858F; font-size: var(--t-ui); margin-top: 14px; max-width: 34ch; }
/* the legal links sit with the copyright line, not in the page columns */
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.foot__legal a { font-size: var(--t-sm); }
.foot__legal button {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: #85858F; font: inherit; font-size: var(--t-sm); text-align: left;
  transition: color .18s var(--ease);
}
.foot__legal button:hover { color: #fff; }

/* 16b. Legal pages (cookie policy, privacy notice) ---------------- */
/* One long column of numbered clauses, with a sticky contents rail. */
.legal { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,232px); gap: 64px; align-items: start; }
.legal__body { min-width: 0; }
.legal h2 { font-size: var(--t-xl); margin-top: 52px; scroll-margin-top: 90px; }
.legal h2:first-child { margin-top: 0; }
.legal h2 .num { color: var(--red); font-family: var(--display); margin-right: 10px; }
.legal h3 { font-size: var(--t-base); margin-top: 26px; }
.legal p { color: var(--muted); margin-top: 14px; max-width: 68ch; }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; max-width: 68ch; }
.legal ul li { position: relative; padding-left: 20px; color: var(--muted); font-size: var(--t-ui); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.legal__toc { position: sticky; top: 90px; border-top: 1px solid var(--line); padding-top: 18px; }
.legal__toc h2 { font-size: var(--t-ui); margin: 0 0 12px; scroll-margin-top: 0; }
.legal__toc h2 .num { display: none; }
.legal__toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius);
  text-decoration: none; color: var(--muted); font-size: var(--t-ui);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); color: #A8A8B4;
  font-size: var(--t-xs); font-variant-numeric: tabular-nums; padding-top: 3px; }
.legal__toc a:hover { color: var(--ink); background: var(--surface); }
.legal__stamp { font-size: var(--t-sm); color: var(--muted); margin-top: 28px;
  padding-top: 18px; border-top: 1px solid var(--line); }

/* 16b-1. Data-controller identity block. */
.kv { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; max-width: 68ch; }
.kv__row { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 16px;
  padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.kv__row:first-child { border-top: 0; }
.kv__k { font-size: var(--t-ui); font-weight: 600; color: var(--ink); }
.kv__v { font-size: var(--t-ui); color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv__row { grid-template-columns: 1fr; gap: 4px; } }


/* 16c. Consent banner --------------------------------------------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 120;
  padding: 0 var(--gutter) var(--gutter);
  display: flex; justify-content: center;
  pointer-events: none;
}
.consent__box {
  pointer-events: auto;
  width: 100%; max-width: 940px; margin-top: 20px;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(11,11,14,.28);
  padding: 26px 28px 22px;
}
.consent__title { font-size: var(--t-lg); }
/* The title takes focus when the banner is reopened from a link, so a screen
   reader announces the dialog. It is not reachable by Tab, and the ring is
   dropped so a mouse click does not draw one either. */
.consent__title:focus, .consent__title:focus-visible { outline: none; }
.consent__body { font-size: var(--t-ui); color: #9C9CA8; margin-top: 10px; max-width: 74ch; }
.consent__links { margin-top: 10px; font-size: var(--t-ui); }
.consent__links .ln { color: #fff; }
.consent__opts { display: grid; gap: 14px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12); }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent__opt input { width: 18px; height: 18px; margin-top: 3px; flex: none;
  accent-color: var(--red); cursor: pointer; }
.consent__opt b { display: block; font-size: var(--t-ui); font-weight: 500; }
.consent__opt small { display: block; font-size: var(--t-sm); color: #85858F; margin-top: 2px; }
.consent__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.consent__act .btn--primary { background: #fff; color: var(--ink); }
.consent__act .btn--primary:hover { background: #EDEDF2; }
.consent__act .btn--ghost { background: transparent; border-color: rgba(255,255,255,.26); color: #fff; }
.consent__act .btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); }
.consent__more {
  margin-top: 14px; border: 0; background: transparent; padding: 0; cursor: pointer;
  color: #9C9CA8; font-size: var(--t-ui); text-decoration: underline;
  text-underline-offset: 3px; transition: color .18s var(--ease);
}
.consent__more:hover { color: #fff; }

/* 17. Admin shell ------------------------------------------------- */
.admin-top { background: var(--ink); color: #fff; padding-block: 20px; }
.admin-top__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-top .brand__name { color: #fff; }
.admin-greet { margin-left: auto; font-size: var(--t-ui); color: #9C9CA8; }
.admin-greet b { color: #fff; font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
  overflow-x: auto; scrollbar-width: none; }              /* four tabs no longer push a phone sideways: the bar scrolls inside itself */
.tabs::-webkit-scrollbar { display: none; }
.tab:focus-visible { outline-offset: -3px; }                /* draw the focus ring INSIDE the tab: the scrolling bar would clip it outside */
.notice + .notice { margin-top: 10px; }
.tab { flex: none; white-space: nowrap; border: 0; background: transparent; padding: 12px 18px; font-size: var(--t-ui);
  color: var(--muted); cursor: pointer; position: relative; }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 12px 0 12px; height: 2px; background: var(--red); }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.admin-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.admin-card__b { padding: 16px 18px 18px; }
.admin-card h3 { font-size: var(--t-base); }
.admin-card .row-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn--sm { padding: 7px 14px; font-size: var(--t-sm); }
.btn--danger { border: 1px solid #EBC3C3; background: #FCF3F3; color: var(--danger); }
.btn--danger:hover { background: #F8E8E8; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 44px 28px;
  text-align: center; color: var(--muted); font-size: var(--t-ui); background: var(--surface); }
.demo-banner { background: #FFF1F1; border-bottom: 1px solid #F3CFCF; color: #7A2A2A;
  font-size: var(--t-sm); padding: 10px 0; }

.chip-input { display: flex; flex-wrap: wrap; gap: 8px; }

/* 18. Responsive -------------------------------------------------- */
@media (max-width: 1020px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; padding-block: 64px 76px; }
  .hero__art { order: -1; max-width: 560px; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-images img:only-child { aspect-ratio: 4/3; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .teaser { grid-template-columns: 1fr 1fr; }
  .teaser[data-count="3"] > *:last-child { display: none; }
}
@media (max-width: 860px) {
  .nav__list, .nav__tools .btn { display: none; }
  .burger { display: inline-flex; }
  :root { --gutter: 20px; }
  .band { padding-block: 60px; }
  .band--wide { padding-block: 72px; }
  .hero h1 { font-size: var(--t-3xl); }
  .row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot__grid > *:first-child { grid-column: 1 / -1; }
  .section-head p { margin-left: 0; }
  .legal { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .legal__toc { position: static; order: -1; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .tile:last-child { border-bottom: 0 !important; }
  .tile__art { max-width: 96px; margin-bottom: 18px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-images { grid-template-columns: minmax(0, 1fr); }
  .project-detail__copy { margin-top: 32px; }
  .teaser, .teaser[data-count] { grid-template-columns: minmax(0, 1fr); }
  .teaser[data-count="3"] > *:last-child { display: block; }
  .form__row { grid-template-columns: minmax(0,1fr); }
  .admin-cards { grid-template-columns: 1fr; }
  .hero__meta { gap: 14px 16px; }
  .hero__meta b { font-size: var(--t-ui); letter-spacing: -.005em; }
  .panel { padding: 24px; }
  .tab { padding: 12px 12px; }
  .consent { padding-inline: 12px; }
  .consent__box { padding: 20px 18px 18px; }
  .consent__act .btn { flex: 1 1 auto; }
}

/* 19. Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .mark-frame .br { stroke-dashoffset: 0; }
  .mark-frame .mark { opacity: 1; }
}

/* 20. Print ------------------------------------------------------- */
@media print {
  .nav, .drawer, .scrim, .foot, .consent { display: none; }
  body { background: #fff; }
}
