/* Biriz Proje Mimarlık — site theme. Colours/fonts come from :root vars printed by theme_css(). */
:root {
  --paper: #f3efe7; --surface: #e8e1d5; --ink: #1c1a17; --accent: #a24a27;
  --font-head: 'Newsreader', serif; --font-body: 'Hanken Grotesk', sans-serif; --radius: 6px;
  --muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --gutter: clamp(16px, 4vw, 48px);
  --max: clamp(1320px, 78vw, 1680px);
  --hh: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.meta { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- block shells ---------- */
.blk { position: relative; }
.pad-s { padding-block: clamp(32px, 5vw, 56px); }
.pad-m { padding-block: clamp(64px, 9vw, 128px); }
.pad-l { padding-block: clamp(96px, 13vw, 184px); }
.pad-n { padding-block: 0; }
.bg-surface { background: var(--surface); }
.bg-ink { background: var(--ink); color: var(--paper); --muted: color-mix(in srgb, var(--paper) 70%, var(--ink)); --line: color-mix(in srgb, var(--paper) 20%, transparent); }
.bg-accent { background: var(--accent); color: #fff; --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.28); }
.bg-ink .eyebrow, .bg-accent .eyebrow { color: inherit; opacity: .8; }
.bg-accent .btn { background: #fff; color: var(--accent); border-color: #fff; }
.bg-ink .btn-ghost, .bg-accent .btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
/* Two neighbours on the same ground share one gap instead of stacking two. */
/* ...only when the block above really has bottom padding (not after the hero, the marquee band, a map or a photo band). */
.blk.bg-paper:not(.blk-hero, .blk-marquee, .blk-map, .pad-n, :has(.cta-band)) + .blk.bg-paper, .blk.bg-surface:not(.blk-hero, .blk-marquee, .blk-map, .pad-n, :has(.cta-band)) + .blk.bg-surface, .blk.bg-ink:not(.blk-hero, .blk-marquee, .blk-map, .pad-n, :has(.cta-band)) + .blk.bg-ink { padding-top: 0; }
@media (max-width: 760px) { .hide-m { display: none; } }
@media (min-width: 761px) { .hide-d { display: none; } }

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .lead { margin-bottom: 0; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-top .sec-head { margin-bottom: 0; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 26px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions:empty { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(4px); }
.prose a, .footer-links a, .crumbs a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.prose a:hover, .footer-links a:hover, .crumbs a:hover { background-size: 0 1px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .18s, transform .18s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:active { transform: scale(.94); }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: var(--paper); font-size: .85rem; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; }
.topbar-social { margin-left: auto; display: flex; gap: 14px; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 -1px 0 var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.header-row { display: flex; align-items: center; gap: 32px; height: var(--hh); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo > span { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { max-height: 44px; width: auto; }
.logo-light { display: none !important; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: var(--radius); background: linear-gradient(currentColor, currentColor) 14px calc(100% - 6px) / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav > ul > li > a:hover, .nav a[aria-current] { background-size: calc(100% - 28px) 1px; }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: calc(var(--radius) - 2px); text-decoration: none; }
.sub a:hover { background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-mobile-extra, .menu-btn { display: none; }
/* Photo hero first: header floats over the picture until the page scrolls. */
body:has(main > .blk-hero:first-child .hero-photo) .site-header { margin-bottom: calc(-1 * var(--hh)); }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; box-shadow: none; color: #fff; }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .btn { background: #fff; color: var(--ink); border-color: #fff; }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .logo-light { display: inline-flex !important; }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .logo-light + .logo-dark, body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .logo:has(.logo-light) .logo-dark { display: none; }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .logo svg path[stroke="var(--accent)"] { stroke: #fff; opacity: .7; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: var(--hh) 0 0 0; background: var(--paper); color: var(--ink); padding: 24px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav > ul > li > a { flex: 1; padding: 18px 0; font-family: var(--font-head); font-size: 1.7rem; background: none; }
  .sub-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] { transform: rotate(90deg); }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 12px; display: none; background: transparent; }
  .sub.open { display: block; }
  .nav-mobile-extra { display: grid; gap: 14px; margin-top: 32px; }
  .nav-mobile-extra a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; }
  body.menu-lock { overflow: hidden; }
}

/* ---------- hero ---------- */
.blk-hero { padding: 0 !important; }
.hero-photo { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-photo .hero-media, .hero-photo .hero-media img, .hero-photo video.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,8, calc(var(--ov) + .25)) 0%, rgba(10,9,8, var(--ov)) 45%, rgba(10,9,8, calc(var(--ov) * .5)) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-block: calc(var(--hh) + 40px) clamp(48px, 8vw, 96px); }
.hero-content h1, .hero-content .hero-h { font-size: clamp(2.6rem, 6.4vw, 6rem); max-width: 15ch; margin-bottom: .35em; }
.hero-content .lead { color: rgba(255,255,255,.88); }
.hero-content .eyebrow { color: #fff; opacity: .85; }
.hero-photo .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero-photo .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-photo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero-photo .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-bottom { position: relative; z-index: 2; padding-bottom: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin: 0; padding-top: 24px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.hero-facts dt { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.hero-facts dd { margin: 6px 0 0; font-size: .92rem; opacity: .8; }
.hero-photo .hero-bottom + * , .hero-photo:has(.hero-bottom) .hero-content { padding-bottom: 32px; }
.hero-split { padding-block: clamp(40px, 6vw, 80px); min-height: calc(100svh - var(--hh)); display: flex; align-items: center; }
.hero-split-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-split .hero-figure { aspect-ratio: 4/5; max-height: calc(100svh - var(--hh) - 80px); width: 100%; }
.hero-split .hero-media, .hero-split .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-split .hero-facts { margin-top: 48px; }
.hero-text { padding-block: clamp(80px, 14vw, 180px) clamp(56px, 8vw, 96px); }
.hero-text h1 { max-width: 18ch; font-size: clamp(2.8rem, 7vw, 6.4rem); }
.hero-text .hero-facts { margin-top: 64px; }
.hero-slider .slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slider .slide.is-on { opacity: 1; visibility: visible; position: relative; flex: 1; }
.hero-slider .slide::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,9,8, calc(var(--ov) + .25)), rgba(10,9,8, calc(var(--ov) * .5))); }
.hero-slider::after { display: none; }
.hero-slider .hero-content { padding-bottom: 120px; }
.slider-ctrl { position: absolute; z-index: 3; bottom: 32px; left: 0; right: 0; display: flex; align-items: center; gap: 4px; }
.slider-ctrl .icon-btn { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.slider-count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: .95rem; }
.video-pause { position: absolute; z-index: 3; right: var(--gutter); bottom: 32px; color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ---------- frames & cards ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
a:hover > .frame img, .card:hover .frame img, button.frame:hover img { transform: scale(1.03); }
.frame-icon { display: grid; place-items: center; height: 100%; color: var(--muted); }
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-1 { --cols: 1; }
@media (max-width: 1000px) { .cols-4 { --cols: 2; } .cols-3 { --cols: 2; } }
@media (max-width: 620px) { .grid { --cols: 1 !important; } .team-card { } }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s var(--ease); }
a.card:hover { transform: translateY(-2px); }
.card-body { padding-top: 18px; }
.card-body h3 { margin-bottom: .35em; }
.card-body p:last-child { margin-bottom: 0; }
.card-body > p:not(.meta) { color: var(--muted); }
.card-body .link-arrow { margin-top: 10px; }
a.card:hover .link-arrow { background-size: 100% 1px; }
.quote-card { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.quote-card blockquote { margin: 16px 0 24px; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card figcaption small { display: block; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .ic { fill: currentColor; }
.score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.score strong { font-family: var(--font-head); font-size: 3rem; font-weight: 400; line-height: 1; }
.score span { color: var(--muted); }

/* projects */
.projects { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-card .frame { aspect-ratio: 4/5; }
.projects-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects-wide .proj-card:first-child { grid-column: span 2; grid-row: span 2; }
.projects-wide .proj-card:first-child .frame { aspect-ratio: auto; flex: 1; min-height: 420px; }
.projects-wide .proj-card:not(:first-child) .frame { aspect-ratio: 4/3; }
.projects-list { grid-template-columns: 1fr; gap: clamp(48px, 6vw, 96px); }
.projects-list .proj-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.projects-list .proj-card:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.projects-list .proj-card:nth-child(even) .frame { order: 2; }
.projects-list .frame { aspect-ratio: 4/3; }
.projects-list h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } .projects-wide .proj-card:first-child { grid-column: span 2; grid-row: auto; } .projects-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } .projects-wide .proj-card:first-child { grid-column: auto; } .projects-wide .proj-card:first-child .frame { min-height: 0; aspect-ratio: 4/5; } .projects-list .proj-card, .projects-list .proj-card:nth-child(even) { grid-template-columns: 1fr; } .projects-list .proj-card:nth-child(even) .frame { order: 0; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .95rem; transition: .18s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-filter-items] > [hidden] { display: none !important; }

/* lists */
.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr) 24px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.row-list a:hover { padding-left: 12px; color: var(--accent); }
.row-n { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-t { font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; }
.row-d { color: var(--muted); }
.row-list .ic { transition: transform .25s var(--ease); }
.row-list a:hover .ic { transform: translateX(4px); }
@media (max-width: 760px) { .row-list a { grid-template-columns: 40px 1fr 24px; } .row-d { display: none; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.features li { border-top: 1px solid var(--line); padding-top: 22px; }
.features li p { color: var(--muted); margin: 0; }
.feat-n { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.bg-accent .feat-n, .bg-ink .feat-n { color: inherit; opacity: .7; }
@media (max-width: 900px) { .features { --cols: 2 !important; } }
@media (max-width: 560px) { .features { --cols: 1 !important; } }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.process li { padding: 28px 28px 8px 0; position: relative; }
.process li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.process p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: .9rem; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .process li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin: 0; }
.counters > div { border-top: 1px solid var(--line); padding-top: 20px; }
.counters dt { font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; }
.counters dd { margin: 10px 0 0; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* text & split */
.text-blk.text-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
.text-blk.text-center { text-align: center; max-width: calc(860px + 2 * var(--gutter)); }
.text-blk.text-center .prose { margin-inline: auto; }
.text-blk.text-left { max-width: calc(900px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--max) - 2 * var(--gutter)) / 2)); }
@media (max-width: 860px) { .text-blk.text-split { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; font-size: 1.06rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 2px solid var(--accent); font-family: var(--font-head); font-size: 1.35rem; line-height: 1.4; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose-article { font-size: 1.12rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.split-rev .split-media { order: -1; }
.split-media { width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-rev .split-media { order: 0; } }

/* gallery, before/after, video */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.gallery .frame { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 1; }
.gallery-masonry { display: block; columns: var(--cols); column-gap: 12px; }
.gallery-masonry .frame { display: block; width: 100%; aspect-ratio: auto; margin-bottom: 12px; break-inside: avoid; }
@media (max-width: 700px) { .gallery { --cols: 2 !important; } .gallery-masonry { columns: 1; } }
.ba { position: relative; aspect-ratio: 16/9; user-select: none; }
.ba > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.ba:has(input:focus-visible) .ba-handle::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba-tag { position: absolute; top: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .85rem; pointer-events: none; }
.ba-tag-l { left: 16px; } .ba-tag-r { right: 16px; }
.video { aspect-ratio: 16/9; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.video-poster img { opacity: .85; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.play .ic { fill: currentColor; margin-left: 4px; }
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); color: #fff; }

/* logos, team, faq */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { display: grid; place-items: center; min-height: 120px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: .25s; }
.logos li:hover img { filter: none; opacity: 1; }
.icon-link { display: inline-flex; margin-top: 8px; color: var(--muted); }
.icon-link:hover { color: var(--accent); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary small { display: block; font-weight: 400; margin-top: 4px; }
.faq summary .ic { flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .prose { padding-bottom: 24px; color: var(--muted); }

/* cta, forms, contact */
.cta { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cta-img { grid-template-columns: 1.1fr .9fr; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 16ch; }
.cta-media { aspect-ratio: 4/3; }
@media (max-width: 900px) { .cta-img { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.bg-surface .form-card { background: var(--paper); }
.form-card h3 { margin-bottom: 20px; }
.fld { display: grid; gap: 6px; }
.fld label { font-size: .9rem; font-weight: 500; }
.fld label span { color: var(--accent); }
.fld input, .fld select, .fld textarea, .inline-form input, .search-page input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius); background: var(--paper); transition: border-color .18s, box-shadow .18s; }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inline-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.fld input[type="file"] { padding: 10px; }
.fld input:user-invalid, .fld textarea:user-invalid { border-color: #b3261e; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .fld-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-msg { margin: 0; font-weight: 500; min-height: 1.2em; }
.form-msg.ok { color: #2f6b3a; } .form-msg.err { color: #b3261e; }
.bg-ink .form-msg.ok, .site-footer .form-msg.ok { color: #9fd3a8; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; }
.inline-form .form-msg { flex-basis: 100%; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.contact-info li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; }
.contact-info .ic { color: var(--accent); margin-top: 4px; }
.contact-info h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info p { margin: 0 0 6px; font-size: 1.1rem; }
.contact-info a { text-decoration: none; }
.map { margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 21/9; min-height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }
.map-full { margin: 0; aspect-ratio: auto; min-height: 0; }
.quote-img { margin-top: 32px; aspect-ratio: 4/3; }
.quote-blk { align-items: start; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .jobs { grid-template-columns: 1fr; } }
.planla-media { aspect-ratio: 5/4; display: grid; place-items: center; background: var(--surface); }
.planla-plan { width: 78%; color: var(--ink); }

/* detail pages */
.pagehead { padding-top: 0; }
.blk-pagehead { padding-top: clamp(24px, 3.5vw, 48px); }
.pagehead h1 { max-width: 20ch; }
.pagehead-img { aspect-ratio: 21/9; margin-top: clamp(24px, 4vw, 48px); }
@media (max-width: 700px) { .pagehead-img { aspect-ratio: 4/3; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.facts { position: sticky; top: calc(var(--hh) + 24px); }
.facts dl { margin: 0 0 16px; border-top: 1px solid var(--line); }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.share { display: flex; align-items: center; gap: 6px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: .2s; }
.share a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.search-page { display: flex; gap: 10px; margin: 24px 0 16px; }
.search-results { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.search-hit { flex-direction: row; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.search-hit .frame { width: 110px; aspect-ratio: 1; flex: none; }
.search-hit h2 { font-size: 1.4rem; margin: 2px 0 4px; }
.search-hit p { margin: 0; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; position: relative; top: 50%; }
.blk-note { padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 8vw, 96px); --muted: color-mix(in srgb, var(--paper) 66%, var(--ink)); --line: color-mix(in srgb, var(--paper) 16%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.footer-grid:not(:has(> :nth-child(4))) { grid-template-columns: 1.6fr 1fr 1.4fr; }
.footer-brand p { color: var(--muted); margin-top: 20px; max-width: 36ch; }
.footer-brand .logo svg path[stroke="var(--accent)"] { stroke: color-mix(in srgb, var(--accent) 60%, #fff); }
.footer-h { font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links .with-ic { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--muted); }
.footer-links .with-ic a { color: var(--paper); }
.footer-links .ic { margin-top: 3px; }
.social { display: flex; gap: 6px; margin-top: 24px; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: .2s; }
.social a:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.site-footer .inline-form input { background: transparent; border-color: var(--line); color: var(--paper); }
.site-footer .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.legal { display: flex; gap: 20px; flex-wrap: wrap; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--paper); }
@media (max-width: 960px) { .footer-grid, .footer-grid:not(:has(> :nth-child(4))) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid, .footer-grid:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; } }

/* ---------- overlays ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; gap: 10px; }
.float-btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .2s var(--ease); }
.float-btn:hover { transform: translateY(-2px) scale(1.04); }
.float-btn.wa { background: #1f8f4e; }
.float-btn.call { background: var(--ink); }
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(15,13,11,.6); backdrop-filter: blur(4px); }
.search-dlg { width: min(720px, calc(100vw - 32px)); margin-top: 12vh; border-radius: var(--radius); }
.search-form { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; }
.search-form input { flex: 1; border: 0; background: transparent; font-size: 1.3rem; min-height: 52px; outline: none; }
.promo { width: min(760px, calc(100vw - 32px)); border-radius: var(--radius); display: none; grid-template-columns: 1fr 1.2fr; overflow: hidden; }
.promo[open] { display: grid; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 40px 32px 28px; }
.promo-body h2 { font-size: 2rem; }
.promo-body .btn { margin: 8px 0 20px; }
.promo-close { position: absolute; top: 8px; right: 8px; background: var(--paper); }
@media (max-width: 620px) { .promo[open] { grid-template-columns: 1fr; } .promo-img { max-height: 200px; overflow: hidden; } }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12,11,10,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox .icon-btn { position: absolute; color: #fff; width: 52px; height: 52px; }
.lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; } .lb-close { right: 16px; top: 16px; }
.cookie { position: fixed; left: 18px; right: 96px; bottom: 18px; z-index: 35; max-width: 640px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); }
.cookie p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.cookie .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cookie .btn-ghost { background: transparent; color: var(--paper); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 14px 22px; border-radius: var(--radius); background: var(--ink); color: var(--paper); box-shadow: 0 16px 32px -12px rgba(0,0,0,.4); animation: toast 5s forwards; }
.toast-error { background: #b3261e; color: #fff; }
@keyframes toast { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.preloader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--paper); transition: opacity .5s, visibility .5s; }
.preloader-mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; animation: pre 1.2s ease-in-out infinite alternate; }
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes pre { from { opacity: .35; } to { opacity: 1; } }

/* maintenance */
.maint { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.maint-main { padding: 48px var(--gutter); max-width: 760px; }
.maint .logo { justify-content: center; margin-bottom: 48px; }
.maint-contact { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slider .slide { transition: none; }
}
@media print { .site-header, .site-footer, .float-actions, .cookie { display: none; } }
@media (max-width: 620px) {
  .cookie { left: 12px; right: 12px; bottom: 86px; }
  .cookie .btn { flex: 1; }
}
/* backdrop-filter would make the header the containing block of the fixed mobile menu */
@media (max-width: 1080px) { .site-header.menu-open { backdrop-filter: none; background: var(--paper); color: var(--ink); } }

/* ---------- speed: skip rendering far-below-the-fold sections until needed ---------- */

/* ---------- page transitions (Chrome, Edge, Safari 18.2+; others navigate normally) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.site-header { view-transition-name: site-header; }
.float-actions { view-transition-name: float-actions; }
::view-transition-old(root) { animation: .26s cubic-bezier(.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: .48s cubic-bezier(.2, .7, .2, 1) .06s both vt-in; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
/* "Big + small" grid: with four projects the big card runs three rows so nothing is left alone. */
@media (min-width: 1001px) { .projects-wide:has(> :nth-child(4):last-child) > :first-child { grid-row: span 3; } }

/* =====================================================================
   NOIR LAYER — black ground, ivory type, brass accent (default theme).
   Colours still come from Admin > Ayarlar > Görünüm; this layer sets the
   look that sits on top of them.
   ===================================================================== */
:root { --deep: color-mix(in srgb, var(--paper) 55%, #000); --on-accent: #0e0d0c; }
body { letter-spacing: .003em; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.012em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); line-height: .98; }
h2 { font-size: clamp(2.5rem, 4.8vw, 4.6rem); line-height: 1.02; }
h3 { font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1.15; }
:is(h1, h2, h3, .footer-cta-title, .marquee) em { font-style: italic; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: .72rem; letter-spacing: .3em; color: var(--accent); }
.eyebrow::before { content: ''; width: 38px; height: 1px; background: currentColor; flex: none; }
.text-center .eyebrow, .cta-band-copy .eyebrow { justify-content: center; }

/* buttons: brass, uppercase, letter-spaced */
.btn { min-height: 52px; padding: 0 30px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost, .bg-ink .btn-ghost, .bg-accent .btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 38%, transparent); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 20px; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.link-arrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--accent); }

/* grounds */
.bg-ink { background: var(--deep); color: var(--ink); --muted: color-mix(in srgb, var(--ink) 62%, var(--deep)); --line: color-mix(in srgb, var(--ink) 14%, transparent); }
.bg-accent { color: var(--on-accent); --muted: color-mix(in srgb, var(--on-accent) 75%, var(--accent)); }
.bg-accent .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }

/* header */
.site-header { background: color-mix(in srgb, var(--paper) 80%, transparent); }
.nav > ul > li > a { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 1080px) { .nav > ul > li > a { font-size: 2rem; letter-spacing: 0; text-transform: none; } }
.header-cta { font-size: .7rem; }

/* hero */
.hero-photo { background: var(--deep); }
html.motion .hero-photo .hero-media img, html.motion .hero-photo video.hero-media { animation: hero-in 2.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-in { from { transform: scale(1.09); } }
html.motion .hero-content > * { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
html.motion .hero-content > :nth-child(2) { animation-delay: .12s; }
html.motion .hero-content > :nth-child(3) { animation-delay: .24s; }
html.motion .hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
.hero-photo .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero-photo .btn:hover { background: #fff; border-color: #fff; color: #0e0d0c; }
.hero-photo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero-photo:not(.hero-slider)::before { content: ''; position: absolute; z-index: 3; left: 50%; bottom: 0; width: 1px; height: 72px; background: linear-gradient(transparent, rgba(255, 255, 255, .8)); }
html.motion .hero-photo:not(.hero-slider)::before { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee band */
.blk-marquee { padding: 0 !important; }
.marquee { display: flex; overflow: hidden; padding-block: clamp(20px, 2.6vw, 38px); border-block: 1px solid var(--line); user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; flex: none; align-items: center; gap: clamp(26px, 3.2vw, 56px); padding-right: clamp(26px, 3.2vw, 56px); animation: marquee var(--dur, 40s) linear infinite; }
.marquee span { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; white-space: nowrap; }
.marquee-m span { font-size: clamp(1.3rem, 2.4vw, 2.1rem); }
.marquee i { font-style: normal; color: var(--accent); font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* services rows: bigger type, a photo appears beside the hovered row */
.row-list a { position: relative; padding: clamp(24px, 3vw, 38px) 0; }
.row-t { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.row-n { color: var(--accent); letter-spacing: .1em; }
.row-list a:hover { color: var(--ink); padding-left: 18px; }
.row-list a:hover .row-t { font-style: italic; color: var(--accent); }
.row-img { position: absolute; z-index: 2; right: 12%; top: 50%; width: clamp(200px, 19vw, 320px); aspect-ratio: 4/3; overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(-50%) scale(.86) rotate(-3deg); transition: opacity .45s var(--ease), transform .6s var(--ease); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-list a:hover .row-img { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
@media (hover: none), (max-width: 900px) { .row-img { display: none; } }

/* project cards: full photo, caption on the image, brass frame on hover */
.proj-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.proj-card .frame { aspect-ratio: 3/4; border-radius: 0; }
.proj-card .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 7, 6, .88)); }
.proj-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.4vw, 34px); color: #efe9df; transform: translateY(10px); transition: transform .5s var(--ease); }
.proj-card:hover .card-body { transform: none; }
.proj-card .card-body h3 { font-size: clamp(1.6rem, 2.3vw, 2.4rem); margin: 0 0 6px; }
.proj-card .meta { color: rgba(239, 233, 223, .72); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.proj-card::after { content: ''; position: absolute; z-index: 3; inset: 14px; border: 1px solid transparent; transition: border-color .5s var(--ease), inset .5s var(--ease); pointer-events: none; }
.proj-card:hover::after { inset: 18px; border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
a.proj-card:hover { transform: none; }
.projects-wide .proj-card:first-child .frame { aspect-ratio: auto; }
.projects-wide .proj-card:not(:first-child) .frame { aspect-ratio: 4/3; }
.projects-list .proj-card { overflow: visible; }
.projects-list .proj-card::after, .projects-list .proj-card .frame::after { display: none; }
.projects-list .proj-card .card-body { position: static; padding: 0; color: inherit; transform: none; }
.projects-list .proj-card .meta { color: var(--muted); }

/* cards, posts, quotes, counters, features */
.card-body h3 { font-weight: 500; }
.post-card .meta { color: var(--accent); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.quote-card { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.quote-card blockquote { font-style: italic; font-size: 1.45rem; }
.counters dt { color: var(--accent); font-size: clamp(3.4rem, 6vw, 5.6rem); }
.feat-n { font-style: italic; font-size: 3rem; }
.features li { border-top-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.logos img { filter: grayscale(1) brightness(0) invert(.88); opacity: .7; }
.logos li:hover img { filter: grayscale(1) brightness(0) invert(1); opacity: 1; }
.faq summary { font-family: var(--font-head); font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 500; }
.faq summary .ic { color: var(--accent); }
.step-n { font-family: var(--font-head); font-size: 1.1rem; }

/* process with photo */
.process-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 104px); align-items: stretch; }
.process-list { display: block; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 26px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
.process-list .step-n { margin: 0; }
.process-list h3 { margin-bottom: .3em; }
.process-list p { margin: 0; }
.process-media { min-height: 520px; }
@media (max-width: 900px) { .process-split { grid-template-columns: 1fr; } .process-media { min-height: 0; aspect-ratio: 4/3; } }

/* CTA: full-bleed photo band */
.blk-cta:has(.cta-band) { padding: 0 !important; }
.cta-band { position: relative; display: grid; align-items: center; min-height: clamp(480px, 74vh, 760px); overflow: hidden; color: #efe9df; text-align: center; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8, 7, 6, .55), rgba(8, 7, 6, .85)); }
.cta-band-copy { position: relative; z-index: 2; }
.cta-band-copy h2 { font-size: clamp(2.8rem, 6.4vw, 6rem); max-width: 15ch; margin-inline: auto; }
.cta-band-copy .lead { margin-inline: auto; color: rgba(239, 233, 223, .8); }
.cta-band-copy .actions { justify-content: center; }
.cta-band .btn-ghost { color: #efe9df; border-color: rgba(239, 233, 223, .5); }
.cta:not(.cta-img) { text-align: center; justify-items: center; }
.cta:not(.cta-img) h2 { margin-inline: auto; }
.cta:not(.cta-img) .lead { margin-inline: auto; }
.cta:not(.cta-img) .actions { justify-content: center; }

/* planla promo on dark */
.planla-media { background: var(--deep); border: 1px solid var(--line); }
.planla-plan { color: var(--ink); }

/* footer: big closing line + columns on the deepest black */
.site-footer { background: var(--deep); color: var(--ink); --muted: color-mix(in srgb, var(--ink) 60%, var(--deep)); --line: color-mix(in srgb, var(--ink) 13%, transparent); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: clamp(48px, 7vw, 96px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.footer-cta-title { margin: 0; max-width: 15ch; font-family: var(--font-head); font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: -0.015em; }
.site-footer .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.site-footer .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.footer-links .with-ic a { color: var(--ink); }
.footer-brand .logo svg path[stroke="var(--accent)"] { stroke: var(--accent); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.legal a:hover { color: var(--ink); }

/* fixed bits that assumed a light page */
.float-btn.call { background: var(--accent); color: var(--on-accent); }
.cookie { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cookie .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cookie .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.fld input, .fld select, .fld textarea, .inline-form input, .search-page input { background: color-mix(in srgb, var(--paper) 85%, #000); color: var(--ink); }
.form-card { background: var(--surface); border: 1px solid var(--line); }
.site-footer .inline-form input { background: transparent; }

/* scroll reveal (only with html.motion; off for reduced motion and in the builder) */
html.motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html.motion .hero-photo .hero-media img, html.motion .hero-content > * { animation: none; }
}

.hero-content h1, .hero-content .hero-h { max-width: 18ch; }
@media (max-width: 620px) { .hero-content h1, .hero-content .hero-h { font-size: clamp(2.6rem, 11vw, 3.4rem); } }
/* Header button over the hero photo: brass like every other button (was white-on-white once the text colour turned light). */
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .btn:hover { background: #fff; border-color: #fff; color: #0e0d0c; }

/* ---------- light theme (visitor's choice; html[data-theme=light]) ---------- */
html[data-theme='light'] { --paper: #f3efe7; --surface: #e8e1d5; --ink: #1c1a17; --accent: #8a6631; --on-accent: #ffffff; --deep: #151311; color-scheme: light; }
html[data-theme='light'] :is(.bg-ink, .site-footer) { --ink: #efe9df; --paper: #151311; --surface: #211e1b; --accent: #c3a06b; --on-accent: #0e0d0c; }
html[data-theme='light'] .proj-card .card-body { color: #efe9df; }
html:not([data-theme='light']) { color-scheme: dark; }
[data-theme-toggle] .ic-moon, html[data-theme='light'] [data-theme-toggle] .ic-sun { display: none; }
html[data-theme='light'] [data-theme-toggle] .ic-moon { display: inline; }
[data-theme-toggle] span { display: inline-grid; }
/* ---------- speed & a11y pass ---------- */
/* The hero heading is the LCP element: it slides in but is never transparent, so it counts as painted immediately. */
html.motion .hero-content > :is(h1, .hero-h) { animation-name: rise-t; }
@keyframes rise-t { from { transform: translateY(34px); } }
.site-footer .inline-form input { color: var(--ink); }
.site-footer .inline-form input::placeholder, .fld ::placeholder, .inline-form input::placeholder { color: var(--muted); opacity: 1; }/* The cookie bar is display:flex, which beat the [hidden] attribute: it never closed after a choice. */
.cookie[hidden] { display: none; }
/* A page that already ends with a CTA band doesn't repeat the footer's closing line. */
main:has(> .blk-cta:last-child) + .site-footer .footer-cta { display: none; }
main:has(> .blk-cta:last-child) + .site-footer { padding-top: clamp(48px, 6vw, 80px); }
/* File input (career CV) in the site's style instead of the browser's white button. */
.fld input[type="file"] { color: var(--muted); font-size: .9rem; }
.fld input[type="file"]::file-selector-button { margin-right: 14px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent); font: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.fld input[type="file"]::file-selector-button:hover { background: var(--accent); color: var(--on-accent); }
.fld input[type="checkbox"], .check input { accent-color: var(--accent); }

/* ---------- brand logo: white on dark grounds, black on light ones ---------- */
.brand { display: block; width: auto; height: auto; }
.brand-h { height: 54px; }
.brand-stack { width: clamp(150px, 16vw, 190px); }
.preloader .brand-h { height: 64px; }
.brand-on-light { display: none; }
html[data-theme='light'] .brand-on-light { display: block; }
html[data-theme='light'] .brand-on-dark { display: none; }
/* always-dark places keep the white logo in the light theme too */
html[data-theme='light'] :is(.site-footer, .bg-ink) .brand-on-dark,
html[data-theme='light'] body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .brand-on-dark { display: block; }
html[data-theme='light'] :is(.site-footer, .bg-ink) .brand-on-light,
html[data-theme='light'] body:has(main > .blk-hero:first-child .hero-photo) .site-header:not(.is-scrolled):not(.menu-open) .brand-on-light { display: none; }
.logo:has(.brand) { gap: 0; }
@media (max-width: 620px) { .brand-h { height: 40px; } }