@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

/* Tedspace. Family values are Tedroid / carlife's (design/tokens.json there): Onest, the same type scale, spacing, radii,
   header height, buttons and timing. Only the brand colour differs: Tedspace red (marka/tokens.json). */
:root {
  --bg: #ffffff; --surface: #f5f5f6; --surface-2: #ececee; --line: #e4e4e7; --line-control: #8a8a92;
  --ink: #0b0b0c; --ink-2: #45454b; --muted: #6b6b73;
  --accent: #c0392b; --accent-fill: #c0392b; --accent-deep: #8b1a1a; --on-accent: #ffffff;
  --success: #18763a; --danger: #c8281d;
  --dark-bg: #0b0b0c; --dark-ink: #f2f2f3; --dark-ink-2: #c5c5ca; --dark-line: #26262a; --dark-surface: #161618;
  --shadow-pop: 0 8px 24px rgba(11,11,12,.12), 0 1px 2px rgba(11,11,12,.08);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --page-max: 1200px; --measure: 680px; --header-h: 56px;
  --font-sans: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --dur-fast: 150ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0b0c; --surface: #161618; --surface-2: #202023; --line: #26262a; --line-control: #6a6a72;
  --ink: #f2f2f3; --ink-2: #c5c5ca; --muted: #9b9ba3; --accent: #ef4b3f; --success: #5cc77c; --danger: #ff7a6e;
  --shadow-pop: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #161618; --surface-2: #202023; --line: #26262a; --line-control: #6a6a72;
  --ink: #f2f2f3; --ink-2: #c5c5ca; --muted: #9b9ba3; --accent: #ef4b3f; --success: #5cc77c; --danger: #ff7a6e;
  --shadow-pop: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Type scale (family tokens): display 40/44, headline-l 28/34, headline-m 22/28, title 18/24, lead 20/30, ui 15/20, label 12/16. */
.h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.015em; }
@media (min-width: 768px) { .h1 { font-size: 40px; line-height: 44px; letter-spacing: -.02em; } }
.h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 768px) { .h2 { font-size: 28px; line-height: 34px; letter-spacing: -.015em; } }
.h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 768px) { .lead { font-size: 20px; line-height: 30px; } }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Proper names (brands, clients) stay as written: AZ uppercasing turns Latin brand names into "TEDROİD", "LİNKEDİN". */
.label-name { font-size: 13px; letter-spacing: 0; text-transform: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.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; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-7); }
@media (min-width: 768px) { .section { padding-block: var(--space-8); } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-5); }
.section-head p { margin: var(--space-2) 0 0; }
.stack { display: grid; gap: var(--space-4); }

/* Buttons (family .td-btn: 44 px, radius-md). Primary = Tedspace red. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md);
  border: 1px solid var(--line-control); background: transparent; color: var(--ink); font: 500 15px/20px var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform 120ms var(--ease-out); touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn-ghost { background: transparent; }
@media (hover: hover) { .btn:hover { background: var(--surface-2); } .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.link-arrow { font-weight: 500; color: var(--accent); }
.link-arrow::after { content: " →"; }

/* Header (family .td-header: 56 px, flat, hairline). */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-1); height: var(--header-h); padding-inline: var(--space-2) var(--space-2); }
.site-header .logo { padding: 0 var(--space-2); }
.nav { display: none; gap: var(--space-5); margin-left: var(--space-5); flex: 1; min-width: 0; }
.nav a { position: relative; font-size: 15px; line-height: var(--header-h); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.header-tools { display: flex; align-items: center; gap: 0; margin-left: auto; flex: none; }
.lang { display: flex; gap: 2px; margin-right: var(--space-1); }
.lang a { padding: 6px; border-radius: var(--radius-sm); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.lang a[aria-current="true"] { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform 120ms var(--ease-out); touch-action: manipulation; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
.header-cta { display: none; height: 36px; padding: 0 var(--space-4); margin-left: var(--space-2); }
@media (min-width: 1024px) {
  .site-header .wrap { padding-inline: var(--space-4); gap: var(--space-2); }
  .site-header .logo { padding: 0; }
  .nav { display: flex; } .header-cta { display: inline-flex; } .menu-btn { display: none; }
}
.mobile-nav { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); bottom: 0; z-index: 9; overflow-y: auto; background: var(--bg); padding: var(--space-2) var(--space-4) var(--space-7); }
.mobile-nav a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* Logo (family behaviour): monochrome at rest; on hover the square takes the Tedspace gradient, the t follows the pointer
   and the cursor pixels blink twice; the cursor also blinks now and then (layout script). */
.td-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.td-logo__mark { display: block; flex: none; }
.td-logo__face { fill: var(--ink); }
.td-logo__color { opacity: 0; transition: opacity .3s ease; }
.td-logo__glyph { fill: var(--bg); transition: fill .3s ease; }
.td-logo__t { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.td-logo__cursor { fill: var(--accent); transition: fill .3s ease; }
.td-logo__word { position: relative; top: .05em; font: 700 20px/1 var(--font-sans); letter-spacing: -.03em; white-space: nowrap; }
.td-logo__caret { display: inline-block; width: .23em; height: .23em; margin-left: .07em; background: var(--accent); }
a:hover > .td-logo .td-logo__color, .td-logo:hover .td-logo__color { opacity: 1; }
a:hover > .td-logo .td-logo__glyph, .td-logo:hover .td-logo__glyph,
a:hover > .td-logo .td-logo__cursor, .td-logo:hover .td-logo__cursor { fill: #ffffff; }
.td-logo[data-blink] .td-logo__cursor, .td-logo[data-blink] .td-logo__caret { animation: ts-blink .7s steps(1, end); }
@keyframes ts-blink { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 75% { opacity: 1; } }
.td-logo__sub { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .td-logo__color, .td-logo__glyph, .td-logo__t, .td-logo__cursor { transition: none; } .td-logo[data-blink] .td-logo__cursor, .td-logo[data-blink] .td-logo__caret { animation: none; } }

/* Hero: real event photo under a dark scrim; type stays on the family scale. */
.hero { position: relative; color: var(--dark-ink); background: var(--dark-bg); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.3) 0%, rgba(11,11,12,.55) 55%, rgba(11,11,12,.9) 100%); }
.hero .wrap { position: relative; padding-block: var(--space-8) var(--space-7); display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .hero .wrap { padding-block: 120px var(--space-8); } }
.hero .h1 { max-width: 22ch; }
.hero .lead { color: var(--dark-ink-2); }
/* Linked phrases in the hero title: same type and line breaks; a quiet underline, red on hover (family timing). */
.hero-title a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: rgba(242, 242, 243, .35);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out); border-radius: 2px; }
.hero-title a:focus-visible { outline: 2px solid #ef4b3f; outline-offset: 3px; }
@media (hover: hover) { .hero-title a:hover { color: #ef4b3f; text-decoration-color: #ef4b3f; } }
@media (prefers-reduced-motion: reduce) { .hero-title a { transition: none; } }
.hero .btn-ghost { color: var(--dark-ink); border-color: rgba(255,255,255,.45); }
@media (hover: hover) { .hero .btn-ghost:hover { background: rgba(255,255,255,.1); } }
.hero-proof { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--dark-ink-2); }
.hero-proof::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #ef4b3f; flex: none; }
.hero-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--dark-ink-2); }
.hero-sub a { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero { padding-block: var(--space-6) var(--space-5); display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .page-hero { padding-block: var(--space-7) var(--space-6); } }

/* Brand wall */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 900px) { .brands { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.brand { background: #ffffff; display: grid; place-items: center; height: 64px; padding: var(--space-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .brand { height: 88px; padding: var(--space-3); } }
/* Equal optical area per logo: the model computes --bw/--bh from the file's aspect ratio (Brand::box). Phones use ~64 %. */
.brand img { width: calc(var(--bw, 96px) * .64); height: calc(var(--bh, 28px) * .64); max-width: 100%; object-fit: contain; }
@media (min-width: 900px) { .brand img { width: var(--bw, 96px); height: var(--bh, 28px); } }
.brand span { font-size: 14px; line-height: 20px; font-weight: 600; color: #45454b; text-align: center; }

/* Cards */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
a.card { transition: background-color var(--dur-fast) ease; }
@media (hover: hover) { a.card:hover { background: var(--surface-2); } }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.card .tag { justify-self: start; }
/* Media channel cards (Mediamız): whole card is an external link, 2 cols on phones, 4 × 2 on desktop. */
.channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 900px) { .channels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.channel { position: relative; padding: var(--space-4); gap: var(--space-1); transition: background-color var(--dur-fast) var(--ease-out); }
/* Phones: brand and platform on two fixed lines so every card's figure starts at the same height. */
.channel__name { display: grid; padding-right: 28px; }
.channel__sep { display: none; }
@media (min-width: 900px) { .channel__name { display: block; } .channel__sep { display: inline; } }
.channel__ext { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; color: var(--muted); transition: color var(--dur-fast) var(--ease-out); }
.channel__value { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; margin-top: var(--space-2); white-space: nowrap; }
.card .channel__handle { overflow-wrap: anywhere; font-size: 14px; line-height: 20px; }
.card .channel__date { font-size: 12px; line-height: 16px; margin-top: var(--space-1); }
@media (min-width: 900px) { .channel { padding: var(--space-5); gap: var(--space-2); } .channel__ext { top: 20px; right: 20px; } .channel__value { font-size: 30px; line-height: 36px; } .card .channel__date { font-size: 13px; } }
@media (hover: hover) { .channel:hover .channel__ext { color: var(--accent); } }
.channel:focus-visible { outline-offset: 3px; border-radius: var(--radius-md); }
.channel:focus-visible .channel__ext { color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 600; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.tag-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.project-card { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.project-card .cover { aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); max-width: 100%; margin-bottom: var(--space-1); }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .project-card:hover .h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.project-card .big { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.project-card .big small { display: block; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* Numbers */
.stats { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.stat { background: var(--bg); padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-1); }
.stat b { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.015em; }
.stat span { color: var(--ink-2); font-size: 15px; line-height: 20px; }

/* Dark band */
.dark { background: var(--dark-bg); color: var(--dark-ink); }
.dark .lead, .dark p { color: var(--dark-ink-2); }
.dark .label { color: #9b9ba3; }
.dark .stats { background: var(--dark-line); border-color: var(--dark-line); }
.dark .stat { background: var(--dark-surface); }
.dark .stat span { color: var(--dark-ink-2); }
.dark .btn-ghost { color: var(--dark-ink); border-color: rgba(255,255,255,.45); }
@media (hover: hover) { .dark .btn-ghost:hover { background: rgba(255,255,255,.1); } }
.reach { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.dark .reach, .hero .reach { color: #ef4b3f; }
.reach-pm { margin-top: var(--space-1); font-size: 15px; line-height: 20px; font-weight: 600; color: inherit; opacity: .8; }
@media (min-width: 768px) { .reach { font-size: 56px; line-height: 60px; } }

/* Process */
.steps { counter-reset: s; display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); } }
.step { counter-increment: s; border-top: 2px solid var(--ink); padding-top: var(--space-3); display: grid; gap: var(--space-1); align-content: start; }
.step::before { content: counter(s, decimal-leading-zero); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--accent); }
.step b { font-size: 16px; line-height: 22px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.step .dur { font-size: 13px; line-height: 16px; color: var(--muted); }

/* Supported events (text list) */
.supported { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.supported li { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--space-1) var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.supported li b { font-weight: 600; }
.supported li .muted:not(.num) { grid-column: 2; font-size: 14px; }
.supported li .tag { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 639px) { .supported li { grid-template-columns: 1fr auto; } .supported li .num { grid-column: 1 / -1; } .supported li .muted:not(.num) { grid-column: 1; } .supported li .tag { grid-column: 2; grid-row: 2; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 22px; }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 15px; line-height: 22px; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist li { display: flex; gap: var(--space-2); align-items: baseline; }
.checklist li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); flex: none; transform: translateY(-2px); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-7) var(--space-4) 0; position: relative; font-size: 17px; line-height: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; line-height: 1; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 var(--space-4); color: var(--ink-2); max-width: var(--measure); font-size: 16px; line-height: 26px; }

/* Team: photo cards (4:5 photo, name, title, short bio); 4 columns, 2 on phones. Each card spans
   four rows of the grid (subgrid), so names, titles and descriptions in a row start on the same line. Rows have no grid gap
   (a parent row-gap would also open inside the subgrid): the space between card rows is the description's bottom
   margin, taken back after the last row. Empty lines stay in place (no display:none) to keep the rows. */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-5); } }
.person { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; min-width: 0; }
@supports not (grid-template-rows: subgrid) { .person { display: flex; flex-direction: column; } }
.person__ph { aspect-ratio: 4 / 5; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; isolation: isolate; display: grid; place-items: center; font-size: 28px; font-weight: 600; color: var(--muted); }
.person__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .person:hover .person__ph img { transform: scale(1.02); } }
.person__name { margin-top: var(--space-3); font-weight: 600; font-size: 16px; line-height: 22px; }
.person__role { margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.person__bio { margin: var(--space-2) 0 var(--space-6); color: var(--muted); font-size: 13px; line-height: 19px; }
@media (min-width: 900px) { .person__bio { margin-bottom: var(--space-7); font-size: 14px; line-height: 20px; } }
/* No bio on any card: photo, name, title; the title carries the row spacing the bio had. */
.team--nobio .person { grid-row: span 3; }
.team--nobio .person__role { margin-bottom: var(--space-6); }
@media (min-width: 900px) { .team--nobio .person__role { margin-bottom: var(--space-7); } }
.team { margin-bottom: calc(-1 * var(--space-6)); }
@media (min-width: 900px) { .team { margin-bottom: calc(-1 * var(--space-7)); } }

/* Case page */
.case-hero { display: grid; gap: var(--space-3); padding-block: var(--space-6) var(--space-5); }
.case-cover { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); max-width: 100%; }
.case-cover img, .case-cover video { width: 100%; height: 100%; object-fit: cover; }
/* Phones: a long CTA label (RU "Планируете похожее мероприятие? Отправьте бриф.") wraps instead of widening the page. */
@media (max-width: 639px) { .case-cta .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 11px; text-align: center; } }
/* The brief form spans two columns only where two fit (contact page); on phones span 2 added an empty track + gap. */
@media (min-width: 712px) { .brif-col { grid-column: span 2; } }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.facts div { background: var(--bg); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-1); }
.facts dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 20px; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: var(--measure); font-size: 17px; line-height: 28px; overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: 18px; line-height: 30px; } }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; margin: var(--space-6) 0 var(--space-3); }
.prose h3 { font-size: 19px; line-height: 26px; font-weight: 600; margin: var(--space-5) 0 var(--space-2); }
.prose p { color: var(--ink); white-space: pre-line; }
.prose ul, .prose ol { margin: var(--space-3) 0 var(--space-4); padding-left: 1.4em; color: var(--ink); }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* RichText blocks (<media-block>, <gallery-block>, <callout>, code/HTML embeds) */
.rt-media { margin: var(--space-5) 0; max-width: 100%; }
.rt-media img, .rt-media video { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: var(--surface); }
.rt-media figcaption, .rt-gallery figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--muted); }
.rt-media--medium { max-width: 72%; }
.rt-media--small { max-width: 48%; }
.rt-media--full.rt-media--medium, .rt-media--full.rt-media--small { margin-inline: auto; }
@media (min-width: 768px) {
  .rt-media--left { float: left; margin: 4px var(--space-5) var(--space-4) 0; max-width: 48%; }
  .rt-media--right { float: right; margin: 4px 0 var(--space-4) var(--space-5); max-width: 48%; }
  .rt-media--left.rt-media--small, .rt-media--right.rt-media--small { max-width: 34%; }
  .rt-media--left.rt-media--large, .rt-media--right.rt-media--large { max-width: 58%; }
}
.rt-video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.rt-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rt-embed { margin: var(--space-5) 0; max-width: 100%; overflow-x: auto; }
.rt-embed iframe { max-width: 100%; border-radius: var(--radius-md); }
.rt-pdf { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink) !important; text-decoration: none !important; font-weight: 500; }
.rt-pdf:hover { border-color: var(--ink-2); }
.rt-pdf__badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.rt-gallery { margin: var(--space-5) 0; clear: both; }
.wp-gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-gallery.gallery-columns-1 { grid-template-columns: 1fr; }
.wp-gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .wp-gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wp-gallery .gallery-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wp-gallery .gallery-icon { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px; background: var(--surface); overflow: hidden; }
.wp-gallery .gallery-icon a { display: block; border-radius: calc(var(--radius-md) - 2px); overflow: hidden; text-decoration: none !important; }
.wp-gallery .gallery-icon img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; transition: transform var(--dur-fast) ease; }
.wp-gallery.gallery-columns-1 .gallery-icon img { height: auto; aspect-ratio: auto; max-height: 520px; }
@media (hover: hover) { .wp-gallery .gallery-icon a:hover img { transform: scale(1.03); } }
.wp-gallery .gallery-caption { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; }
.rt-gallery__caption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.rt-lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; color: #fff; }
.rt-lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.rt-lightbox__box { position: relative; display: grid; place-items: center; gap: 10px; }
.rt-lightbox__img { display: block; max-width: 90vw; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-md); background: #111; }
.rt-lightbox__cap { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .85); text-align: center; max-width: 65ch; }
.rt-lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.rt-lightbox__btn:hover { background: rgba(0, 0, 0, .85); }
.rt-lightbox__prev { left: 16px; }
.rt-lightbox__next { right: 16px; }
.rt-lightbox__close { top: 16px; right: 16px; transform: none; font-size: 24px; }
.rt-callout { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-weight: 500; clear: both; }
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { border-radius: var(--radius-md); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
blockquote { margin: var(--space-6) 0; padding: var(--space-5); background: var(--surface); border-radius: var(--radius-md); }
blockquote p { font-size: 20px; line-height: 30px; font-weight: 500; }
blockquote footer { color: var(--muted); font-size: 14px; }
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: 15px; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Filters (family chips) */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.chip { height: 36px; display: inline-flex; align-items: center; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color var(--dur-fast) ease; }
@media (hover: hover) { .chip:hover { background: var(--surface-2); } }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* Brief form */
.brief { display: grid; gap: var(--space-5); background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); }
@media (min-width: 768px) { .brief { padding: var(--space-6); } }
.brief fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.brief legend { font-size: 18px; line-height: 24px; font-weight: 600; margin-bottom: var(--space-1); padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--line-control); background: var(--bg); font-size: 15px; font-weight: 500; }
.opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; height: 44px; font: 400 16px/22px var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-control); border-radius: var(--radius-md); padding: 0 var(--space-3); }
.field textarea { height: auto; min-height: 110px; padding: var(--space-3); resize: vertical; }
.req { color: var(--danger); }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.check input { margin-top: 3px; }
.errors { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 15px; }
.ok { background: color-mix(in srgb, var(--success) 12%, var(--bg)); color: var(--success); padding: var(--space-4); border-radius: var(--radius-md); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: 15px; line-height: 20px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 12px; line-height: 16px; color: var(--muted); }
.contact-list a { font-weight: 500; }
.placeholder { color: var(--muted); font-style: italic; }

/* Closing call to action: ink block, red button (the gradient stays on the logo). */
.close { background: var(--dark-bg); color: var(--dark-ink); border-radius: var(--radius-md); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .close { padding: var(--space-7); } }
:root[data-theme="dark"] .close { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .close { background: var(--surface); } }
.close .lead { color: var(--dark-ink-2); }
.close .btn-ghost { color: var(--dark-ink); border-color: rgba(255,255,255,.45); }
@media (hover: hover) { .close .btn-ghost:hover { background: rgba(255,255,255,.1); } }

/* Footer (family .td-footer) */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-6) calc(var(--space-7) + env(safe-area-inset-bottom, 0px)); font-size: 15px; line-height: 20px; }
.site-footer .cols { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.site-footer .td-logo__word { font-size: 23px; }
.site-footer h3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink-2); font-weight: 500; }
@media (hover: hover) { .site-footer a:hover { color: var(--ink); } }
.site-footer .legal { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: space-between; }
.site-footer .legal a { color: var(--muted); }
/* The first column (logo, tagline, Tedroid Innovations badge) packs to the top instead of spreading over the row. */
.site-footer .stack { align-content: start; }

/* Mobile bottom bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: var(--space-2); padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 64px; } }

@media (prefers-reduced-motion: reduce) { .btn, .icon-btn, .chip, a.card, .channel__ext { transition: none; } .btn:active, .icon-btn:active { transform: none; } }
