
/* ==========================================================================
   Utku Çiçek — Structural / Computational Mechanics
   Single design system. Warm graphite ink + bronze/ochre accent.
   (--blue* token names kept as internal aliases for the accent colour.)
   Relative-path friendly.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --panel: #f5f6f7;
  --fg: #1c2431;
  --muted: #59606c;
  --faint: #626c7a;
  --line: #e2e2df;
  --edge: #ececeb;
  --blue: #97652a;        /* accent — bronze / ochre */
  --blue-strong: #77501d; /* accent, darker (hover) */
  --blue-soft: #efe7d5;   /* accent tint background */
  --navy: #20283a;        /* dark bands (neutral slate) */
  --graphite: #2f3948;
  --ok: #1f6f5c;

  /* backward-compat aliases (older tool/course pages) */
  --brand: var(--blue);
  --brand-2: var(--blue-strong);
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --card: var(--paper);

  --max: 1200px;
  --measure: 72ch;
  --radius: 8px;
  --surface: var(--paper);
  --shadow: 0 16px 44px rgba(31, 39, 51, 0.08);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14151a;
  --paper: #1c1e24;
  --panel: #191b20;
  --fg: #e9e7e1;
  --muted: #a8a49a;
  --faint: #aaaeb8;
  --line: #33353d;
  --edge: #26282e;
  --blue: #d3a35f;
  --blue-strong: #e6bd86;
  --blue-soft: #372b19;
  --navy: #0f1013;
  --graphite: #c6ccd2;
  --ok: #63c3a6;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.75 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(var(--edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.16;
}

img, svg, canvas, video { display: block; max-width: 100%; }
svg { height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-strong); }

button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 9px 14px; background: var(--fg); color: var(--bg);
  font: 600 0.82rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------- typography */

h1, h2, h3, h4 { margin: 0; color: var(--fg); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
strong { color: var(--fg); }

.eyebrow, .kicker, .section-index, .course-code, .tool-number, .mono {
  font: 600 0.73rem/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow, .kicker, .section-index { color: var(--blue); }

.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.62;
}

/* -------------------------------------------------------------------- shell */

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header, header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-shell, .navwrap {
  width: min(calc(100% - 40px), var(--max));
  min-height: 68px; margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
}

.site-brand, .brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--fg); font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; white-space: nowrap;
}
.brand-mark, .uc-tool-mark {
  position: relative; width: 26px; height: 26px;
  border: 2px solid currentColor; flex: none;
}
.brand-mark::before, .brand-mark::after,
.uc-tool-mark::before, .uc-tool-mark::after {
  position: absolute; content: ""; background: var(--blue);
}
.brand-mark::before, .uc-tool-mark::before { width: 16px; height: 2px; top: 10px; left: 3px; }
.brand-mark::after, .uc-tool-mark::after { width: 2px; height: 16px; top: 3px; left: 10px; }
.brand-name { font-size: 0.98rem; }
.brand-sub {
  padding-left: 11px; margin-left: 3px;
  border-left: 1px solid var(--line);
  color: var(--muted); font: 600 0.68rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  color: var(--fg); font-size: 0.86rem; font-weight: 700; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; min-height: 38px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--fg); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--blue); color: var(--blue); }
.menu-toggle { display: none; }

.lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg); font: 600 0.7rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em; text-decoration: none;
}
.lang-link[aria-current="page"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.lang-link.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* --------------------------------------------------------------- containers */

main { display: block; }
main.wrap, main:not(.layout):not(.tool-main) { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.section { padding: clamp(56px, 9vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }

.section-heading {
  display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 26px;
  align-items: start; margin-bottom: 44px;
}
.section-heading > div { min-width: 0; }
.section-heading p { max-width: 62ch; margin: 14px 0 0; color: var(--muted); }
.section-index { padding-top: 6px; color: var(--faint); }

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 18px;
  border: 1px solid var(--fg); border-radius: var(--radius);
  background: var(--fg); color: var(--bg);
  font-size: 0.88rem; font-weight: 800; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.button.secondary { background: transparent; color: var(--fg); }
.button.secondary:hover { background: transparent; border-color: var(--blue); color: var(--blue); }
.button.small { min-height: 40px; padding: 8px 13px; font-size: 0.8rem; }
.button[aria-disabled="true"] { pointer-events: none; opacity: 0.45; }

.button-row, .hero-actions, .card-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  color: var(--fg); font-size: 0.83rem; font-weight: 800; text-decoration: none;
}
.text-link::after { content: "\2192"; color: var(--blue); transition: transform 0.15s; }
.text-link:hover { color: var(--blue); }
.text-link:hover::after { transform: translateX(3px); }
.text-link[aria-disabled="true"] { pointer-events: none; opacity: 0.5; }
.text-link[aria-disabled="true"]::after { content: ""; }

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 26%, 300px);
  gap: clamp(32px, 6vw, 72px);
  align-items: stretch;
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { align-self: center; }
.hero-id { margin: 0 0 22px; }
.hero-id h1 { display: block; }
.hero-id .name {
  display: block;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.02;
}
.hero-id .tail {
  display: block; margin-top: 12px;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--muted);
}
.hero-id .eyebrow { display: block; margin-bottom: 14px; }
.hero .lead { margin: 20px 0 0; max-width: 58ch; }

.hero-portrait {
  position: relative; align-self: stretch; justify-self: end;
  display: flex; flex-direction: column; width: 100%; margin: 0;
}
.hero-portrait img {
  flex: 1 1 auto; width: 100%; height: 100%; min-height: 0;
  max-height: 520px;
  object-fit: cover; object-position: center 22%;
  border: 1px solid var(--fg);
}
.hero-portrait figcaption {
  flex: none;
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0;
  color: var(--faint); font: 0.7rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.keyline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px; border: 1px solid var(--line); border-bottom: 0;
}
.keyline div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.keyline div + div { border-left: 1px solid var(--line); }
.keyline strong { display: block; font-size: 0.86rem; }
.keyline span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.76rem; }

/* -------------------------------------------------------------- page header */

.page-hero { padding: clamp(52px, 8vw, 92px) 0 clamp(34px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; margin: 14px 0 22px; font-size: clamp(2.2rem, 5vw, 3.9rem); }
.page-hero .lead { max-width: 66ch; }

/* --------------------------------------------------------------------- grids */

.grid-3, .feature-grid, .card-grid, .tool-grid, .project-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.cell, .feature-card, .content-card, .tool-card, .project-card, .card {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  padding: 30px; background: var(--paper);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.feature-card, .tool-card, .project-card { min-height: 288px; }
.cell:hover, .feature-card:hover, .tool-card:hover, .project-card:hover {
  background: color-mix(in srgb, var(--paper) 90%, var(--blue-soft));
}

.card-topline { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.course-code, .tool-number { color: var(--blue); }
.card-topline .status, .tool-card .status { margin-left: auto; }

.cell h3, .feature-card h3, .tool-card h3, .project-card h3 { margin: 10px 0 12px; }
.cell p, .feature-card p, .tool-card p, .project-card p { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------ course cards (clickable) */

.course-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.course-card {
  position: relative; min-width: 0; min-height: 232px;
  display: flex; flex-direction: column;
  padding: 26px 26px 22px; background: var(--paper);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background 120ms ease;
}
.course-card::before {
  position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue);
  transform: scaleY(0); transform-origin: top; transition: transform 140ms ease;
  content: "";
}
.course-card:hover, .course-card:focus-visible {
  background: color-mix(in srgb, var(--paper) 90%, var(--blue-soft)); outline: none;
}
.course-card:hover::before, .course-card:focus-visible::before { transform: scaleY(1); }
.course-card.is-hidden { display: none; }
.course-card .card-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.course-card .course-code { font: 0.8rem/1.3 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--blue); letter-spacing: 0.02em; }
.course-card .status { margin-left: auto; }
.course-card h3 { margin: 0 0 9px; font-size: 1.08rem; }
.course-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.course-card .tag-row { margin-top: 14px; }
.course-card .go {
  margin-top: auto; padding-top: 16px;
  font: 0.72rem/1 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--muted);
  transition: color 120ms ease;
}
.course-card:hover .go, .course-card:focus-visible .go { color: var(--blue); }

.card-icon { width: 46px; height: 46px; margin-bottom: 26px; color: var(--blue); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag, .status {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: 0.66rem/1.3 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}
.status.live { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.status.live::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status.soon { border-style: dashed; }

/* featured tool cell */
.tool-card.featured, .cell.dark {
  grid-column: span 2; background: var(--navy); color: #e8ecf1; border-color: #24354a;
}
.tool-card.featured h3, .cell.dark h3, .tool-card.featured .text-link, .cell.dark .text-link { color: #e8ecf1; }
.tool-card.featured p, .cell.dark p { color: #adb9c8; }
.tool-card.featured .status.live { color: #7fd8c2; border-color: #7fd8c2; }
.tool-card.featured:hover, .cell.dark:hover { background: #10233b; }

/* ---------------------------------------------------------------- pillars */

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { display: flex; flex-direction: column; padding: 30px; background: var(--paper); }
.pillar:hover { background: color-mix(in srgb, var(--paper) 90%, var(--blue-soft)); }
.pillar .num { color: var(--faint); font: 600 0.72rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.1em; }
.pillar h3 { margin: 12px 0 10px; }
.pillar p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.pillar ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pillar ul li {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: 0.66rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------- case studies */

.case { border-top: 1px solid var(--line); padding: 40px 0; }
.case:first-of-type { border-top: 0; }
.case > .case-head { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 26px; margin-bottom: 22px; }
.case .case-type { color: var(--blue); font: 600 0.72rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 5px; }
.case h3 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
.case-rows { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 26px; }
.case-rows dt {
  grid-column: 1; padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--faint); font: 600 0.68rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.case-rows dd {
  grid-column: 2; margin: 0; padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
.case-rows dd strong { color: var(--fg); }

/* ------------------------------------------------------------------ archive */

.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.archive-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); }
.archive-item .k { color: var(--faint); font: 600 0.68rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.archive-item strong { font-size: 1.02rem; }
.archive-item span { color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------------------------- chips */

.chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 18px; padding: 0; list-style: none; }
.chip-list li {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: 0.68rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.02em;
}

/* ------------------------------------------------------------- research/list */

.research-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.research-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.research-list li span { color: var(--muted); font: 0.74rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }

.def-list { margin: 0; padding: 0; }
.def-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 16px 0; border-top: 1px solid var(--line); }
.def-list dt { color: var(--faint); font: 600 0.7rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.def-list dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.def-list dd strong { color: var(--fg); }

/* ------------------------------------------------------------ figures / media */

.figure { margin: 0; border: 1px solid var(--line); background: var(--paper); }
.figure > img {
  display: block; width: 100%; height: auto; background: #fbfbfb;
  border-bottom: 1px solid var(--line);
}
.figure figcaption {
  padding: 12px 16px; color: var(--muted); font-size: 0.82rem; line-height: 1.5;
}
.figure figcaption b, .figure figcaption strong { color: var(--fg); font-weight: 700; }

.figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.figure-card { display: flex; flex-direction: column; }
.figure-card .figure { flex: 1 1 auto; display: flex; flex-direction: column; }
.figure-card .figure > img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.figure-card h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.figure-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }

.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }

.case-figure { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 26px; margin: 4px 0 10px; }
.case-figure figure { grid-column: 2; max-width: 540px; }

/* -------------------------------------------------------- simple section head */

.s-head { max-width: 62ch; margin-bottom: 32px; }
.s-head h2 { margin: 8px 0 0; }
.s-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }

/* --------------------------------------------------------------- course list */

.note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.note-list li { background: var(--paper); }
.note-list a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 20px 22px; text-decoration: none; color: var(--fg);
}
.note-list a:hover { background: color-mix(in srgb, var(--paper) 90%, var(--blue-soft)); }
.note-list .code { color: var(--blue); font: 600 0.72rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; }
.note-list .name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.note-list .meta { margin-top: 2px; color: var(--muted); font-size: 0.82rem; }
.note-list li.soon a { color: var(--faint); cursor: default; pointer-events: none; }

/* --------------------------------------------------------------- about strip */

.about-strip { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.about-strip .portrait { margin: 0; position: sticky; top: 96px; }
.about-strip .portrait img { width: 100%; height: auto; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border: 1px solid var(--fg); }
.about-strip p:first-of-type { color: var(--fg); font-size: 1.1rem; }

/* ------------------------------------------------------------------ notice */

.notice, .page-note {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px;
  margin: 32px 0; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--panel); color: var(--muted); font-size: 0.9rem;
}
.notice strong, .page-note strong { color: var(--fg); }
.notice .mk, .page-note > span:first-child {
  font: 700 0.9rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--blue); text-align: center;
}

/* ------------------------------------------------------------------ filters */

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-button {
  min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 0.7rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em;
}
.filter-button:hover { border-color: var(--fg); color: var(--fg); }
.filter-button.is-active { border-color: var(--fg); background: var(--fg); color: var(--bg); }
[data-filter-item].is-hidden { display: none; }

/* --------------------------------------------------------------------- band */

.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(32px, 5vw, 56px); background: var(--navy); color: #e8ecf1;
}
.cta-band h2 { max-width: 24ch; color: #fff; }
.cta-band p { max-width: 60ch; margin: 14px 0 0; color: #adb9c8; }
.cta-band .button { border-color: #e8ecf1; background: #e8ecf1; color: var(--navy); }
.cta-band .button:hover { background: #fff; border-color: #fff; }

/* ------------------------------------------------------------------- footer */

.site-footer, footer.site-footer {
  width: min(calc(100% - 40px), var(--max)); margin: 0 auto;
  padding: 44px 0 56px; color: var(--muted); font-size: 0.82rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.footer-grid strong { color: var(--fg); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }

/* ============================================================ long-form docs
   Course detail + reference pages: .layout / aside.toc / .article
   ========================================================================== */

.layout {
  width: min(calc(100% - 40px), var(--max)); margin: 34px auto 0;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 30px; align-items: start;
}
aside.toc {
  position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: auto;
  border: 1px solid var(--line); background: var(--paper);
}
.toc h3 { padding: 16px 18px; border-bottom: 1px solid var(--line); font: 600 0.76rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; }
.toc details + details { border-top: 1px solid var(--line); }
.toc summary { padding: 11px 16px; cursor: pointer; font-size: 0.82rem; font-weight: 800; }
.toc a { display: block; padding: 8px 16px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); color: var(--muted); font-size: 0.78rem; text-decoration: none; }
.toc a:hover, .toc a.active { background: var(--blue-soft); color: var(--blue); }

.article {
  min-width: 0; padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.article h1 { margin-bottom: 32px; font-size: clamp(2rem, 4.5vw, 3.6rem); }
.article h2 { margin: 2em 0 0.7em; padding-top: 0.8em; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 3vw, 2.1rem); }
.article h3 { margin: 1.7em 0 0.5em; font-size: 1.22rem; }
.article p, .article li { max-width: var(--measure); }
.article code { padding: 0.12em 0.35em; background: var(--blue-soft); color: var(--blue-strong); font: 0.9em "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; border-radius: 2px; }
.article :is(.MathJax, mjx-container) { overflow-x: auto; overflow-y: hidden; }
.article table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.article table thead th { text-align: left; border-bottom: 2px solid var(--line); padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.article table td { border-bottom: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.article table tbody tr:hover { background: color-mix(in srgb, var(--paper) 92%, var(--blue-soft)); }

.crumbs { margin: 0 0 10px; color: var(--faint); font: 0.72rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* course/reference content blocks */
.kavram {
  margin: 1.6em 0; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--panel);
}
.kavram > h3, .kavram > h4 { margin: 0 0 0.5em; }
.kavram > *:last-child { margin-bottom: 0; }
.k-label {
  display: inline-block; margin: 0 0 8px;
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--blue); font: 600 0.66rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.k-label + .k-label { margin-left: 6px; }
.formul-list { margin: 1em 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.formul-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.formul-list li > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.86rem; }
.page-heading-info { color: var(--fg); }
.tool-spec { margin: 8px 0 26px; padding: 20px 0 4px; border-top: 1px solid var(--line); }
.tool-spec > h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 6px; }
.tool-spec .def-list dt { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.tool-spec .report-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; text-decoration: none; }
.tool-spec .report-link .pdf-icon { width: 34px; height: 34px; }
.tool-spec .report-link figure { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.tool-spec .report-link figcaption { color: var(--blue); font-size: 0.85rem; font-weight: 700; }

.topic-list { columns: 2; column-gap: 40px; margin: 1em 0; padding: 0; list-style: none; }
.topic-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.topic-list li .soon { color: var(--faint); font: 0.7rem "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
@media (max-width: 620px) { .topic-list { columns: 1; } }

/* ============================================================ tool shell
   Older calculator pages ship .uc-tool-* markup + their own page CSS.
   Keep them coherent with the system.
   ========================================================================== */

.uc-tool-header {
  position: sticky; top: 0; z-index: 50; min-height: 68px; padding: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--fg); backdrop-filter: blur(12px);
}
.uc-tool-nav {
  width: min(calc(100% - 40px), var(--max)); min-height: 68px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.uc-tool-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; text-decoration: none; }
.uc-tool-links { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.uc-tool-links a { color: var(--fg); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.uc-tool-links a:hover { color: var(--blue); }
.uc-tool-back { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 12px; border: 1px solid var(--fg); border-radius: var(--radius); }
.uc-tool-notice {
  width: min(100%, 980px); margin: 18px auto 26px; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--panel); color: var(--muted);
  font: 0.86rem/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.uc-tool-notice strong { color: var(--fg); }
.uc-tool-footer {
  width: min(calc(100% - 40px), var(--max)); margin: 48px auto 0; padding: 28px 0 44px;
  border-top: 1px solid var(--line); color: var(--muted); text-align: left;
  font: 0.82rem/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.uc-tool-footer a { color: var(--blue); }
.whatsapp-link, .cookie-banner, #cookie-banner { display: none !important; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .grid-3, .feature-grid, .card-grid, .course-grid, .tool-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyline div:nth-child(2n) { border-left: 1px solid var(--line); }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 0.8rem; }
}

@media (max-width: 960px) {
  .nav-shell, .navwrap, .uc-tool-nav { position: relative; min-height: 60px; gap: 12px; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none;
    padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { width: 100%; padding: 4px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-grid; }
  .brand-sub { display: none; }

  .hero { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .hero-copy { align-self: start; }
  .hero-portrait { order: 0; justify-self: start; align-self: start; width: 210px; max-width: 52%; }
  .hero-portrait img { flex: none; height: auto; aspect-ratio: 4 / 5; max-height: none; }
  .hero-portrait figcaption { font-size: 0.62rem; letter-spacing: 0; }
  .hero-portrait figcaption span { white-space: nowrap; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip .portrait { position: static; width: 200px; max-width: 46%; }
  .media-split { grid-template-columns: 1fr; gap: 24px; }
  .case-figure { grid-template-columns: 1fr; }
  .case-figure figure { grid-column: 1; }
  .note-list { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  aside.toc { position: static; max-height: none; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }

  .uc-tool-links a:not(.uc-tool-back) { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .wrap, .nav-shell, .navwrap, main:not(.layout):not(.tool-main), .layout, .site-footer, .uc-tool-nav, .uc-tool-footer {
    width: min(calc(100% - 28px), var(--max));
  }
  .section-heading, .case > .case-head, .case-rows { grid-template-columns: 1fr; gap: 8px; }
  .case-rows dt { border-top: 1px solid var(--line); padding-bottom: 0; }
  .case-rows dd { border-top: 0; padding-top: 4px; }
  .grid-3, .grid-2, .feature-grid, .card-grid, .course-grid, .tool-grid, .project-grid,
  .pillars, .archive-grid, .keyline, .figure-grid { grid-template-columns: 1fr; }
  .tool-card.featured, .cell.dark { grid-column: auto; }
  .cell, .feature-card, .tool-card, .project-card, .card, .pillar { padding: 22px; }
  .course-card { padding: 22px; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .def-list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, header.site, .uc-tool-header, .site-footer, .uc-tool-footer,
  .theme-toggle, .menu-toggle, .filter-row { display: none !important; }
  body, .article { background: #fff; color: #000; box-shadow: none; }
  body::before { display: none; }
  .layout { display: block; width: 100%; }
  aside.toc { display: none; }
}

/* Editorial engineering system: shared across the portfolio and archive. */
@media screen {
  :root { --bg: #ffffff; --paper: #fff; --panel: #eef2f6; --fg: #182b43; --muted: #536175; --line: #d9e1e9; --edge: #e8edf2; --blue: #895a21; --blue-strong: #684217; --blue-soft: #f3eadc; }
  :root[data-theme="dark"] { --bg: #101923; --paper: #162230; --panel: #1b2a3a; --fg: #edf2f8; --muted: #b1bfce; --line: #344456; --edge: #26374a; --blue: #e3b978; --blue-strong: #f2d2a1; --blue-soft: #332c23; }
  body::before { display: none; }
  h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; }
  h2 { font-size: clamp(1.65rem, 2.8vw, 2.5rem); letter-spacing: -.035em; }
  p, li, dd { overflow-wrap: break-word; }
  .lead { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.8; }
  :is(.eyebrow, .kicker, .section-index, .course-code, .tool-number, .mono) { font-size: .8125rem; letter-spacing: .065em; }
  .wrap, main.wrap, main:not(.layout):not(.tool-main), .nav-shell, .navwrap, .site-footer, .layout { width: min(calc(100% - 64px), var(--max)); }
  .nav-shell { --max: 1440px; min-height: 80px; gap: 20px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 4px; }
  .brand-mark::before { top: 13px; left: 6px; }
  .brand-mark::after { top: 6px; left: 13px; }
  .brand-name { font-size: 1.0625rem; }
  .brand-sub { display: none; }
  .site-nav ul { gap: 17px; }
  .site-nav a { font-size: .875rem; font-weight: 600; }
  .site-nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .nav-actions { flex-shrink: 0; }
  .theme-toggle, .menu-toggle { width: 44px; min-height: 44px; border-radius: 8px; font-size: 1.2rem; }
  .lang-link { border: 0; padding-inline: 6px; font-size: .8125rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 32%); gap: clamp(36px, 6vw, 80px); padding-block: clamp(48px, 7vw, 88px); align-items: center; }
  .hero-id .name { font-size: clamp(3.25rem, 6.2vw, 5.25rem); letter-spacing: -.055em; line-height: 1.12; }
  .hero-id .tail { max-width: 34ch; margin-top: 20px; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; color: var(--fg); font-weight: 600; }
  .hero-id .eyebrow { max-width: 54ch; line-height: 1.8; }
  .hero .lead { max-width: 58ch; }
  .hero-portrait { align-self: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px #142b4310; }
  .hero-portrait img { flex: none; height: auto; aspect-ratio: 4 / 5; border: 0; border-radius: 5px; }
  .hero-portrait figcaption { font-size: .75rem; color: var(--muted); flex-wrap: wrap; gap: 4px 12px; padding: 14px 2px 2px; }
  .button { min-height: 48px; padding: 12px 20px; font-size: .9375rem; font-weight: 700; }
  .button.small, .filter-button { min-height: 44px; font-size: .875rem; }
  :root[data-theme="dark"] .button:hover { color: #101923; }
  :root[data-theme="dark"] .button.secondary:hover { color: var(--blue); }
  .section { padding-block: clamp(48px, 7vw, 80px); }
  .s-head { max-width: 76ch; margin-bottom: 32px; }
  .s-head h2 { max-width: 30ch; margin-top: 12px; }
  .s-head p { max-width: 70ch; line-height: 1.85; }
  .note-list { background: transparent; border: 0; gap: 14px; }
  .note-list li { border: 1px solid var(--line); border-radius: 9px; }
  .note-list a { padding: 24px; gap: 8px; border-radius: 8px; border-top: 3px solid transparent; transition: border-color .15s, background .15s; }
  .note-list a:hover, .note-list a:focus-visible { border-top-color: var(--blue); }
  .note-list .code { font-size: .8125rem; }
  .note-list .name { font-size: 1.125rem; line-height: 1.45; }
  .note-list .meta { font-size: .9375rem; line-height: 1.7; }
  .grid-3, .grid-2, .feature-grid, .card-grid, .course-grid, .tool-grid, .project-grid { gap: 16px; border: 0; }
  .cell, .feature-card, .content-card, .tool-card, .project-card, .card, .course-card { border: 1px solid var(--line); border-radius: 9px; }
  .course-card::before { border-radius: 9px 0 0 9px; }
  .course-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
  .course-card .go { font-size: .875rem; line-height: 1.5; }
  .tag, .status { font-size: .75rem; line-height: 1.5; }
  .course-card .card-topline { flex-wrap: wrap; }
  .cell h3, .feature-card h3, .tool-card h3, .project-card h3, .course-card h3 { line-height: 1.4; }
  .text-link { font-size: .9375rem; min-height: 44px; }
  .page-hero { padding-top: clamp(36px, 6vw, 72px); }
  .page-hero h1 { max-width: 26ch; line-height: 1.18; }
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  aside.toc { top: 104px; max-height: calc(100dvh - 128px); border-radius: 8px; scrollbar-width: thin; }
  .toc h3 { font-size: .875rem; line-height: 1.5; }
  .toc summary, .toc a { font-size: .875rem; line-height: 1.6; min-height: 44px; }
  .toc a { padding-block: 11px; }
  .article { padding: clamp(24px, 4vw, 48px); border-radius: 10px; box-shadow: none; line-height: 1.85; }
  .article h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.25; }
  .article h2, .article h3 { line-height: 1.4; }
  .article pre { max-width: 100%; overflow: auto; padding: 18px; background: var(--panel); border-radius: 6px; }
  .article :is(iframe, embed, object) { max-width: 100%; }
  .crumbs { font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
  .k-label { font-size: .75rem; }
  .site-footer { font-size: .9375rem; padding-block: 40px; }
  .footer-nav { gap: 8px 22px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .cta-band { border-radius: 12px; }
  .notice, .page-note { border-radius: 6px; font-size: 1rem; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 1rem; min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
  summary { min-height: 44px; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
  .skip-link:focus { color: var(--bg); }
}

@media screen and (max-width: 1360px) {
  .nav-shell, .navwrap { position: relative; min-height: 72px; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 12px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); max-height: calc(100dvh - 90px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { width: 100%; min-height: 48px; padding: 8px 4px; white-space: normal; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a[aria-current] { text-underline-offset: 4px; }
  .menu-toggle { display: inline-grid; }
  .nav-actions { margin-left: auto; }
}
@media screen and (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(180px, 28%); gap: 28px; }
  .hero-portrait { width: 100%; max-width: none; }
  .layout { grid-template-columns: 1fr; }
  aside.toc { position: static; max-height: none; }
}
@media screen and (max-width: 620px) {
  .wrap, main.wrap, main:not(.layout):not(.tool-main), .nav-shell, .navwrap, .site-footer, .layout { width: calc(100% - 32px); }
  .nav-shell { gap: 8px; min-height: 68px; }
  .site-brand { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark::before { top: 10px; left: 3px; }
  .brand-mark::after { top: 3px; left: 10px; }
  .lang-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 44px; }
  .hero-id .name { font-size: clamp(2.75rem, 12vw, 3.75rem); }
  .hero-id .tail { font-size: 1.3125rem; line-height: 1.5; }
  .hero-portrait { justify-self: start; width: min(100%, 280px); }
  .hero-portrait img { aspect-ratio: 5 / 4; object-position: center 28%; }
  .hero-portrait figcaption { font-size: .75rem; }
  .button-row { gap: 10px; margin-top: 24px; }
  .hero .button-row .button { width: 100%; }
  .article { padding: 24px 18px; }
  .note-list a, .cell, .feature-card, .tool-card, .project-card, .card, .course-card { padding: 22px; }
  .article table { font-size: .9375rem; }
  .section-heading { margin-bottom: 28px; }
  .cta-band { padding: 28px 22px; }
}

/* Shared reading rhythm for profile, archive, project and calculation pages. */
@media screen {
  body { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.75; }
  h1, h2, h3, h4 { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.025em; font-weight: 700; }
  .hero-id .name { letter-spacing: -.045em; }
  .page-hero .lead { margin-bottom: 0; }
  .page-hero h1 { max-width: 28ch; }
  .section-heading p, .s-head p, .def-list dd, .case-rows dd { font-size: 1.0625rem; line-height: 1.8; }
  .def-list dt { font-size: .875rem; line-height: 1.7; letter-spacing: .02em; text-transform: none; }
  .def-list > div { padding-block: 22px; }
  .chip-list li, .pillar ul li { font-size: .875rem; line-height: 1.6; }
  .case-rows dt, .case .case-type, .archive-item .k { font-size: .8125rem; line-height: 1.7; }
  .archive-item span { font-size: .9375rem; }
  .figure figcaption, .figure-card p { font-size: .9375rem; line-height: 1.7; }
  .pillars, .archive-grid { gap: 16px; background: transparent; border: 0; }
  .pillar, .archive-item { border: 1px solid var(--line); border-radius: 9px; }
  .research-list li span { font-size: .875rem; }
  .article { font-size: 1.125rem; }
  .article p, .article li { line-height: 1.85; }
  .site-nav a { font-size: .9375rem; }
  .site-header { background: var(--paper); }
  .source-note { margin: 24px 0 0; color: var(--muted); font-size: .9375rem; max-width: 80ch; }

  /* A compact, task-led directory. Every card is one native link. */
  .tools-directory .page-hero { padding-block: 48px 36px; }
  .tools-directory .page-hero h1 { max-width: none; margin-block: 12px 18px; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
  .tools-directory .page-hero .lead { max-width: 72ch; }
  .tools-directory .tool-catalog { padding-block: 32px 56px; }
  .catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .catalog-heading h2 { font-size: 1.375rem; }
  #tool-count { margin: 0; color: var(--muted); font-size: .9375rem; }
  .tools-directory .filter-row { gap: 8px; margin-bottom: 28px; }
  .tools-directory .filter-button { font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0; border-radius: 7px; padding: 8px 16px; background: var(--paper); }
  .tools-directory .filter-button.is-active { color: var(--bg); background: var(--fg); border-color: var(--fg); }
  .tools-directory .tool-grid { gap: 18px; }
  a.tool-card { color: var(--fg); text-decoration: none; min-height: 258px; padding: 26px; transition: border-color .16s, box-shadow .16s, background .16s; }
  a.tool-card h3 { font-size: 1.375rem; line-height: 1.35; margin: 10px 0 12px; }
  a.tool-card p { font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
  a.tool-card .tool-number { text-transform: none; letter-spacing: .015em; font-size: .8125rem; }
  a.tool-card .text-link { padding-top: 16px; border-top: 1px solid var(--line); width: 100%; justify-content: space-between; font-weight: 600; }
  a.tool-card:hover { background: var(--paper); border-color: var(--blue); box-shadow: 0 8px 24px #182b430d; }
  a.tool-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
  a.tool-card:hover .text-link { color: var(--blue); }
  a.tool-card.is-hidden { display: none; }

  /* Course codes retain their actual program identity. */
  .academic-course-groups { display: grid; gap: 28px; }
  .academic-course-group { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
  .academic-course-group > header { padding: 22px 26px; background: var(--panel); display: flex; align-items: baseline; gap: 20px; }
  .academic-course-group > header h3 { font-size: 1.25rem; line-height: 1.4; }
  .academic-course-list { margin: 0; padding: 0; list-style: none; }
  .academic-course-list li + li { border-top: 1px solid var(--line); }
  .academic-course-list a { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 22px; align-items: baseline; padding: 22px 26px; color: var(--fg); text-decoration: none; }
  .academic-course-list a:hover { background: var(--panel); }
  .academic-course-list a:focus-visible { outline-offset: -4px; }
  .academic-course-list h4 { font-size: 1.125rem; }
  .academic-course-list p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
  .course-open { font-size: .875rem; color: var(--blue); white-space: nowrap; }
}
@media screen and (max-width: 620px) {
  .tools-directory .page-hero { padding-block: 32px 28px; }
  .tools-directory .filter-row { gap: 8px; }
  .tools-directory .filter-button { flex-grow: 1; padding-inline: 12px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 4px; }
  a.tool-card { padding: 22px; min-height: 0; }
  .academic-course-group > header { padding: 18px; align-items: start; flex-direction: column; gap: 6px; }
  .academic-course-list a { grid-template-columns: 1fr; gap: 8px; padding: 20px 18px; }
  .academic-course-list .course-open { margin-top: 4px; }
  .article { font-size: 1.0625rem; }
  .case-rows dt, .case-rows dd { grid-column: 1; }
  .def-list > div { grid-template-columns: 1fr; gap: 8px; }
}

/* MathJax accessibility markup must not influence the visual page width. */
mjx-assistive-mml {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
/* MathJax SVG: genel "img, svg { display: block }" kuralı satır içi formülleri ayrı satıra itiyordu. */
mjx-container[jax="SVG"] > svg { display: inline-block; max-width: none; }

/* =====================================================================
   Tema v2 — egemencaliskan.com / BEUS görsel dili
   Segoe UI, lacivert + mavi, sarı CTA, yuvarlak kartlar, fotoğraflı slayt
   ===================================================================== */
:root {
  --bg: #ffffff; --paper: #ffffff; --panel: #f5f6f8;
  --fg: #111827; --muted: #4b5563; --faint: #6b7280;
  --line: #e5e7eb; --edge: #eef0f3;
  --blue: #246eb9; --blue-strong: #164e86; --blue-soft: #eaf2fb;
  --navy: #003366; --graphite: #1f2937;
  --yellow: #ffd600;
  --radius: 10px;
  --shadow: 0 6px 14px rgba(0,0,0,.06);
}
:root[data-theme="dark"] {
  --bg: #0f141b; --paper: #161d27; --panel: #131921;
  --fg: #e8edf3; --muted: #aab4c0; --faint: #9aa5b2;
  --line: #2a3441; --edge: #1f2833;
  --blue: #6aa8ea; --blue-strong: #8fc0f2; --blue-soft: #18283b;
  --navy: #0b2340; --graphite: #d4dbe3;
}
body { font-size: 17px; line-height: 1.7; color: var(--fg); }
body::before { display: none !important; }
code, pre, kbd, samp { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; }
h1, h2, h3, h4 { letter-spacing: 0; font-weight: 700; }
h1 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
p { color: inherit; }
.eyebrow, .kicker, .section-index, .mono {
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--blue);
}
.lead { color: var(--muted); }

/* header */
.site-header, header.site { background: var(--bg); backdrop-filter: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); border-bottom: 1px solid var(--edge); }
.site-brand, .brand { color: var(--navy); letter-spacing: 0; }
[data-theme="dark"] .site-brand { color: var(--fg); }
.brand-name { font-size: 1.05rem; font-weight: 800; }
.brand-sub { font-size: .75rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.site-nav a { color: var(--navy); font-weight: 600; font-size: .93rem; letter-spacing: 0; text-transform: none; }
[data-theme="dark"] .site-nav a { color: var(--fg); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.lang-link { letter-spacing: 0; font-size: .78rem; }

/* buttons */
.button { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 8px; font-weight: 600; font-size: .95rem; padding: 12px 22px; box-shadow: 0 3px 8px rgba(0,0,0,.1); transition: all .25s ease; }
.button:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,.15); }
.button.secondary { background: var(--paper); color: var(--navy); border-color: #cfd6df; box-shadow: none; }
.button.secondary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .button.secondary { color: var(--fg); border-color: var(--line); }
.text-link { font-weight: 700; color: var(--blue); }

/* sections */
.section { border-bottom: 0; }
.section + .section { border-top: 1px solid var(--edge); }
.s-head { max-width: 70ch; }
.s-head p { color: var(--muted); }
.section.alt { background: var(--panel); box-shadow: 0 0 0 100vmax var(--panel); clip-path: inset(0 -100vmax); }

/* cards: rounded with shadow instead of hairline grids */
.grid-2, .grid-3, .feature-grid, .card-grid, .tool-grid, .project-grid { gap: 20px; border: 0; }
.cell, .feature-card, .content-card, .tool-card, .project-card, .card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.cell:hover, .feature-card:hover, .tool-card:hover, .project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.09); background: var(--paper); }
.pillars { gap: 20px; background: none; border: 0; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar ul li { font-size: .78rem; border-radius: 6px; }
.note-list { gap: 16px; background: none; border: 0; }
.note-list li { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.note-list li:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.09); }
.note-list .code { font-size: .8rem; letter-spacing: .02em; }
.course-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure figcaption { font-size: .85rem; }
.keyline { border-radius: var(--radius); overflow: hidden; }
.def-list dt { letter-spacing: 0; text-transform: none; }
.tag, .status, .chip-list li { border-radius: 6px; letter-spacing: 0; text-transform: none; }
.cta-band { background: linear-gradient(to right, #002f4b, #005b96); border-radius: 12px; }
.cta-band .eyebrow { color: var(--yellow); }
.cta-band .button { background: var(--yellow); border-color: var(--yellow); color: #0e2d5c; font-weight: 700; }
.cta-band .button:hover { filter: brightness(1.06); background: var(--yellow); color: #0e2d5c; }
.site-footer, footer.site-footer { background: #0e1520; color: #c9d1db; border-top: 0; box-shadow: 0 0 0 100vmax #0e1520; clip-path: inset(0 -100vmax); }
.site-footer strong { color: #fff; }
.footer-nav a { color: #c9d1db; }
.footer-nav a:hover { color: var(--yellow); }

/* ---------- photo hero (CSS slayt, 18 sn döngü) ---------- */
.photo-hero { position: relative; overflow: hidden; background: #14171b; color: #fff; isolation: isolate;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-bottom: 0; }
.photo-hero .slides { position: absolute; inset: 0; z-index: -2; }
.photo-hero .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: phfade 18s infinite; will-change: opacity, transform; }
.photo-hero .slides img:nth-child(1) { opacity: 1; animation-name: phfade1; }
.photo-hero .slides img:nth-child(2) { animation-delay: 6s; }
.photo-hero .slides img:nth-child(3) { animation-delay: 12s; }
@keyframes phfade { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes phfade1 { 0% { opacity: 1; transform: scale(1.06); } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 94% { opacity: 0; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1.06); } }
.photo-hero .shade { position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.2); }
.photo-hero .ph-in { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding: clamp(64px, 9vw, 130px) 0; text-align: center; }
.photo-hero h1, .photo-hero h2, .photo-hero .lead, .photo-hero .eyebrow, .photo-hero p, .photo-hero .crumbs { text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.photo-hero h1 { color: #fff; font-weight: 800; letter-spacing: .5px; font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; margin: 12px auto 18px; line-height: 1.15; }
.photo-hero .eyebrow { color: #fff; font-size: 1.05rem; display: block; }
.photo-hero .lead { color: #f2f4f6; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 62ch; margin-inline: auto; }
.photo-hero .crumbs, .photo-hero .crumbs a { color: #eef2f6; }
.photo-hero a:not(.button) { color: #fff; }
.photo-hero .button-row { justify-content: center; }
.photo-hero .button { background: var(--yellow); border-color: var(--yellow); color: #0e2d5c; font-weight: 700; }
.photo-hero .button:hover { filter: brightness(1.07); background: var(--yellow); border-color: var(--yellow); color: #0e2d5c; }
.photo-hero .button.secondary { background: rgba(0,0,0,.28); color: #fff; border-color: rgba(255,255,255,.85); }
.photo-hero .button.secondary:hover { background: #fff; color: #0e2d5c; }
.photo-hero.home { min-height: min(86vh, 820px); display: flex; align-items: center; }
.photo-hero.home h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.photo-hero .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 900px; margin: 44px auto 0; border-top: 1px solid rgba(255,255,255,.5); text-align: left; }
.photo-hero .facts div { padding: 14px 16px 0; }
.photo-hero .facts b { display: block; color: #fff; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.photo-hero .facts span { display: block; color: #f1f3f5; font-size: .88rem; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.photo-hero.svc .ph-in { text-align: left; }
.photo-hero.svc .ph-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.photo-hero.svc h1 { margin-left: 0; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.photo-hero.svc .lead { margin-left: 0; }
.photo-hero.svc .button-row { justify-content: flex-start; }
.ph-fig { margin: 0; background: rgba(255,255,255,.96); padding: 10px; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.65); }
.ph-fig img { width: 100%; height: auto; display: block; }
.ph-fig figcaption { color: #4b5563; font-size: .8rem; padding: 8px 2px 0; text-shadow: none; }
.photo-hero.page .ph-in { padding: clamp(56px, 8vw, 110px) 0; }
.photo-hero.cta .ph-in { padding: clamp(56px, 8vw, 100px) 0; }
.photo-hero.cta .shade { background: rgba(0,20,45,.45); }
.photo-hero.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.photo-hero.cta p { color: #eef2f6; max-width: 60ch; margin: 12px auto 0; }
main > .photo-hero:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .photo-hero .shade { background: rgba(0,0,0,.34); }
  .photo-hero.home { min-height: 0; }
  .photo-hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .photo-hero.svc .ph-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .photo-hero .slides img { animation: none !important; opacity: 0; } .photo-hero .slides img:nth-child(1) { opacity: 1; } }

/* ---------- hizmet kartları (görselli) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.svc-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--fg); transition: transform .3s ease, box-shadow .3s ease; height: 100%; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.11); }
.svc-card figure { margin: 0; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.svc-card figure img { display: block; width: 100%; height: auto; aspect-ratio: 640/440; object-fit: cover; transition: transform .35s ease; }
.svc-card:hover figure img { transform: scale(1.04); }
.svc-card .tb { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--navy); }
[data-theme="dark"] .svc-card h3 { color: var(--fg); }
.svc-card p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.svc-card .more { margin-top: auto; color: var(--blue); font-weight: 600; font-size: .92rem; }

/* ---------- statik iyi olmazsa ---------- */
.nc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.nc h2 { margin: 8px 0 16px; }
.nc-text p { color: var(--muted); }
.nc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nc-bad, .nc-good { border-radius: 10px; padding: 22px 20px; box-shadow: var(--shadow); }
.nc-bad { background: #fdf1ef; border: 1px solid #f3cfc8; }
.nc-good { background: #edf6ee; border: 1px solid #c9e3cc; }
.nc-cmp h3 { font-size: 1.05rem; margin: 0 0 .7em; }
.nc-bad h3 { color: #a23b2a; } .nc-good h3 { color: #1f6b35; }
.nc-cmp ul { list-style: none; padding: 0; margin: 0; }
.nc-cmp li { padding-left: 24px; position: relative; margin: .55em 0; font-size: .95rem; color: #333; }
.nc-bad li::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 700; }
.nc-good li::before { content: "✓"; position: absolute; left: 0; color: #1f8a3e; font-weight: 700; }
.nc-photo { position: relative; border-radius: 12px; overflow: hidden; margin: 22px 0 0; box-shadow: var(--shadow); }
.nc-photo img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 900px) { .nc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nc-cmp { grid-template-columns: 1fr; } }

/* ---------- koyu bant / rakamlar ---------- */
.band-dark { background: linear-gradient(to right, #002f4b, #005b96); color: #e8eef5; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: clamp(56px, 8vw, 96px) 0; }
.band-dark > .in { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.band-dark h2 { color: #fff; } .band-dark .eyebrow { color: var(--yellow); } .band-dark p { color: #dbe6f3; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.kpis div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 22px 20px; }
.kpis b { display: block; color: var(--yellow); font-size: 1.35rem; margin-bottom: 6px; }
.kpis span { color: #e6edf5; font-size: .95rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- süreç adımları ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; box-shadow: var(--shadow); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--blue); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.steps h3 { font-size: 1.05rem; margin: 0 0 6px; } .steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- hizmet sayfası içeriği ---------- */
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.svc-body .prose p { max-width: 70ch; }
.svc-body .prose h2 { margin: 1.6em 0 .6em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.svc-body .prose h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.aside-box { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.aside-box h3 { font-size: 1.05rem; margin: 0 0 10px; }
.aside-box ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.aside-box .button { width: 100%; margin-top: 6px; }
@media (max-width: 960px) { .svc-body { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* faq */
.faq { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 78ch; }
.footer-svc { grid-column: 1 / -1; padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #9aa6b4; line-height: 1.9; }
.footer-svc span { color: #fff; font-weight: 600; margin-right: 4px; }
.footer-svc a { color: #c9d1db; text-decoration: none; }
.footer-svc a:hover { color: var(--yellow); }

/* =====================================================================
   Tema v3 — sinematik: render galerisi, bento, büyük tipografi, scroll reveal
   ===================================================================== */
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.02em; font-weight: 800; line-height: 1.08; }
.s-head h2 { margin-top: 6px; }
.s-head p { font-size: 1.08rem; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .02em; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
html.no-js .rv { opacity: 1; transform: none; }

/* cinematic hero (renders) */
.photo-hero.cine { min-height: min(92vh, 900px); display: flex; align-items: flex-end; }
.photo-hero.cine .shade { background: linear-gradient(180deg, rgba(5,10,20,.08) 0%, rgba(5,10,20,0) 40%, rgba(5,10,20,.5) 100%); }
.photo-hero.cine .ph-in { padding-bottom: clamp(48px, 7vw, 96px); }
.photo-hero.cine h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -.03em; line-height: 1.02; max-width: 16ch; }
.photo-hero.cine .lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.photo-hero .slides.ken img { animation-name: phfade, kb; }
.photo-hero.render-bg .bg { position: absolute; inset: 0; z-index: -2; }
.photo-hero.render-bg .bg img { width: 100%; height: 100%; object-fit: cover; animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.photo-hero.render-bg .shade { background: linear-gradient(90deg, rgba(5,10,20,.58) 0%, rgba(5,10,20,.28) 45%, rgba(5,10,20,0) 100%); }
.photo-hero.render-bg .ph-in { text-align: left; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.photo-hero.render-bg h1 { margin-left: 0; font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -.025em; line-height: 1.04; max-width: 15ch; }
.photo-hero.render-bg .lead { margin-left: 0; max-width: 52ch; }
.photo-hero.render-bg .button-row { justify-content: flex-start; }
@media (max-width: 900px) { .photo-hero.render-bg .shade { background: linear-gradient(180deg, rgba(5,10,20,.35), rgba(5,10,20,.8)); } .photo-hero.render-bg .ph-in { min-height: 70vh; justify-content: flex-end; } }

/* statement */
.statement { text-align: center; padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 70px); }
.statement h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 18ch; margin: 10px auto 18px; letter-spacing: -.03em; line-height: 1.02; }
.statement p { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.statement .grad { background: linear-gradient(90deg, #246eb9, #00a3c4 50%, #e0a100); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 22vw, 300px); gap: 16px;
  grid-template-areas: "a a b b" "a a c d" "e f g g"; }
.bento .bt { position: relative; border-radius: 22px; overflow: hidden; display: block; color: #fff; text-decoration: none; background: #0b1220; isolation: isolate; box-shadow: 0 18px 40px -24px rgba(0,0,0,.55); }
.bento .bt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bento .bt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,8,16,0) 35%, rgba(4,8,16,.45) 60%, rgba(4,8,16,.8) 100%); }
.bento .bt:hover img { transform: scale(1.05); }
.bento .bt .tx { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.bento .bt h3 { color: #fff; font-size: clamp(1.15rem, 1.8vw, 1.6rem); margin: 0 0 4px; letter-spacing: -.01em; }
.bento .bt h3, .bento .bt p { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.bento .bt p { color: rgba(255,255,255,.86); margin: 0; font-size: .95rem; max-width: 46ch; }
.bento .bt .go { display: inline-block; margin-top: 10px; color: var(--yellow); font-weight: 700; font-size: .9rem; }
.bento .bt.a h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.bento .a { grid-area: a; } .bento .b { grid-area: b; } .bento .c { grid-area: c; } .bento .d { grid-area: d; } .bento .e { grid-area: e; } .bento .f { grid-area: f; } .bento .g { grid-area: g; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b b" "c d" "e f" "g g"; grid-auto-rows: 240px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; grid-auto-rows: 260px; } }

/* big numbers */
.bignums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.bignums div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; }
.bignums b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: #fff; margin-bottom: 10px; }
.bignums span { color: #cfdbea; font-size: .98rem; }
@media (max-width: 900px) { .bignums { grid-template-columns: 1fr 1fr; } }

/* horizontal gallery (courses/tools) */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
@media (max-width: 700px) { .hscroll { grid-auto-columns: 82%; } }
.vcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--fg); transition: transform .35s ease, box-shadow .35s ease; height: 100%; }
.vcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.vcard figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: #0a1424; }
.vcard figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.vcard:hover figure img { transform: scale(1.05); }
.vcard .tb { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.vcard .code { color: var(--blue); font-weight: 700; font-size: .8rem; }
.vcard h3 { font-size: 1.08rem; margin: 4px 0 6px; }
.vcard p { color: var(--muted); font-size: .9rem; margin: 0; }

/* thumbs inside existing course/tool cards */
.course-card .thumb, .tool-card .thumb { display: block; margin: -30px -30px 18px; aspect-ratio: 16/10; overflow: hidden; background: #0a1424; }
.course-card .thumb img, .tool-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.course-card:hover .thumb img, .tool-card:hover .thumb img { transform: scale(1.05); }
.course-card, .tool-card { overflow: hidden; }
.course-visual { margin: 6px 0 28px; border-radius: 16px; overflow: hidden; background: #0a1424; box-shadow: var(--shadow); }
.course-visual img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
.section-visual { margin: 0 0 30px; border-radius: 18px; overflow: hidden; background: #0a1424; box-shadow: var(--shadow); }
.section-visual img { width: 100%; display: block; aspect-ratio: 21/9; object-fit: cover; }

/* service page: drawing figure in body */
.drawing-fig { margin: 0 0 1.4em; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.drawing-fig img { width: 100%; height: auto; display: block; }
.drawing-fig figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.nc-visual { border-radius: 22px; overflow: hidden; position: relative; margin-top: 36px; }
.nc-visual img { width: 100%; display: block; aspect-ratio: 21/9; object-fit: cover; }
.nc-visual figcaption { position: absolute; left: 22px; bottom: 18px; color: #fff; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.photo-hero.render-bg.sci .shade { background: linear-gradient(90deg, rgba(10,20,36,.92) 0%, rgba(10,20,36,.6) 50%, rgba(10,20,36,.15) 100%); }

/* v4: yatay kaymayı engelle + yeni logo */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
.brand-mark, .uc-tool-mark { width: 28px; height: 28px; border: 0 !important; border-radius: 7px; background: url("../images/logo-mark.svg") center / contain no-repeat; }
.brand-mark::before, .brand-mark::after, .uc-tool-mark::before, .uc-tool-mark::after { display: none !important; content: none !important; }
:root[data-theme="dark"] .brand-mark, :root[data-theme="dark"] .uc-tool-mark { background-image: url("../images/logo-mark-dark.svg"); }

/* v3.1 — yatay kaymayı engelle, logo, daha aydınlık görseller */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
.brand-logo { width: 30px; height: 30px; flex: none; display: block; border-radius: 7px; }
.uc-tool-mark { display: none; }
.photo-hero.cine .shade { background: linear-gradient(180deg, rgba(5,10,20,.05) 0%, rgba(5,10,20,0) 40%, rgba(5,10,20,.5) 100%); }
.photo-hero.cine .slides img, .bento .bt img { filter: brightness(1.12) saturate(1.06); }
.bento .bt::after { background: linear-gradient(180deg, rgba(4,8,16,0) 45%, rgba(4,8,16,.35) 68%, rgba(4,8,16,.78) 100%); }
.photo-hero.render-bg .shade { background: linear-gradient(90deg, rgba(5,10,20,.62) 0%, rgba(5,10,20,.3) 45%, rgba(5,10,20,0) 100%); }

/* v5 — veri tablosu */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: color-mix(in srgb, var(--navy, #003366) 6%, transparent); font-size: .82rem; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }

/* ters tutulan iletişim bilgisi */
.rev{unicode-bidi:bidi-override!important;direction:rtl!important;display:inline-block}

/* yasal bağlantılar (footer) ve yasal sayfalar */
.footer-svc.footer-legal { margin-top: 0; padding-top: 12px; border-top: 0; }
.footer-note { grid-column: 1 / -1; margin: 0; color: #9aa6b4; font-size: .85rem; line-height: 1.6; }
.footer-note a { color: #c9d1db; text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--yellow); }
.legal-date { margin: 0 0 18px; color: var(--faint); font-size: .85rem; }
.article.legal ul { padding-left: 1.2em; }
.article.legal li { margin: .35em 0; }
