:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #dde3ea;
  --accent: #0a2a6b;
  --accent-soft: #e7edf8;
  --radius: 14px;
  --max: 1080px;
  --serif: "Times New Roman", Times, serif;
  --sans: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  text-decoration: none; letter-spacing: .02em; color: var(--accent);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .92rem; color: var(--ink-soft); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 6px 14px; border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; position: relative; }
.nav-toggle span {
  position: absolute; left: 6px; right: 6px; height: 2px; background: var(--ink);
  transition: transform .2s, top .2s;
}
.nav-toggle span:first-child { top: 11px; }
.nav-toggle span:last-child { top: 19px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 15px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 15px; transform: rotate(-45deg); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 40px; max-width: 22ch; }
h3 { font-size: 1.25rem; }
h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 24px 0 8px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: .95rem; }

.eyebrow, .section-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin-top: 24px; }

/* ---------- Buttons ---------- */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #071f52; }
.btn-ghost { border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 340px; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(26, 29, 31, .45);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stats strong {
  display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stats span { font-size: .9rem; color: var(--ink-soft); display: block; max-width: 22ch; }

/* ---------- Social ---------- */
.social { display: flex; gap: 20px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.social a:hover { color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #c8d3e2; text-decoration: none; }
.footer-links a:hover { color: #d4a72c; }

/* ---------- Seeking ---------- */
.seeking { margin-top: 28px; }
.seeking-label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.seeking .chips li { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }

/* ---------- Case study ---------- */
.section-dark { background: #0a1f4f; color: #eef2f7; }
.section-dark .section-label { color: #d4a72c; }
.section-dark .lede { color: #c8d3e2; }
.case-lede { margin-top: -16px; }
.case-stats { margin-top: 48px; border-top-color: #213f7e; }
.case-stats strong { color: #d4a72c; }
.case-stats span { color: #c8d3e2; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.case-item { background: #112b66; border: 1px solid #1d3b7a; border-radius: var(--radius); padding: 28px; }
.case-item h3 { margin: 8px 0 10px; color: #fff; }
.case-item p { color: #c8d3e2; font-size: .98rem; }
.case-num { font-family: var(--serif); color: #d4a72c; font-size: .95rem; }
.lab-strip { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.lab-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4a72c; margin-right: 8px; }
.lab-strip .lab-thumb { width: 84px; padding: 0; border: 1px solid #1d3b7a; border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; transition: transform .2s; }
.lab-strip .lab-thumb:hover, .lab-strip .lab-thumb:focus-visible { transform: translateY(-2px); box-shadow: none; }
.lab-strip .lab-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.case-gallery { margin-top: 56px; }
.case-gallery-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4a72c; margin-bottom: 16px; }
.case-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-photos figure { margin: 0; }
.case-photos img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 1px solid #1d3b7a; }
.case-photos figcaption { margin-top: 8px; font-size: .88rem; color: #c8d3e2; }
.case-gallery + .case-gallery { margin-top: 40px; }
.case-photos-wide { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
.case-photos-wide img { aspect-ratio: 4 / 3; }
.case-photos-wide .photo-lead { grid-row: span 2; display: flex; flex-direction: column; }
.case-photos-wide .photo-lead img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
.case-photos-wide figure:nth-child(4) { grid-column: 2 / 4; }
.case-photos-wide figure:nth-child(4) img { aspect-ratio: 8 / 3; object-position: center 72%; }
.card p + p { margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline > li {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.timeline > li:first-child { border-top: 0; padding-top: 0; }
.tl-meta { display: flex; flex-direction: column; gap: 4px; }
.tl-date { font-weight: 600; font-size: .92rem; }
.tl-place { color: var(--muted); font-size: .88rem; }
.tl-role { color: var(--accent); font-weight: 500; font-size: .95rem; margin: 6px 0 12px; }
.tl-body ul li, .edu-item ul li {
  position: relative; padding-left: 18px; color: var(--ink-soft); margin-bottom: 8px; font-size: .98rem;
}
.tl-body ul li::before, .edu-item ul li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

.lessons { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 20px 24px; }
.lessons-label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lessons ol { list-style: none; counter-reset: lesson; display: grid; gap: 12px; }
.lessons li { counter-increment: lesson; position: relative; padding-left: 34px; color: var(--ink-soft); font-size: .96rem; }
.lessons li::before {
  content: counter(lesson); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; display: grid; place-items: center;
}
.lessons li strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #c3cfdd; box-shadow: 0 10px 30px -18px rgba(10, 42, 107, .35); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tag, .card-date { white-space: nowrap; }
.tag {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
}
.card-date { font-size: .85rem; color: var(--muted); }
.card-feature { grid-column: 1 / -1; border-color: #cdd8e6; background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.card-feature h3 { font-size: 1.6rem; }
.card-role { margin: -4px 0 0; }
.card-feature .feature-body { columns: 2; column-gap: 32px; }
.card-venture { border-color: #cdd8e6; background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.feature-body p { break-inside: avoid; margin-bottom: 12px; }
.card .feature-body p + p { margin-top: 0; }
/* Live site preview */
.site-preview {
  display: block; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 40px -28px rgba(26, 29, 31, .45); transition: transform .2s;
}
.site-preview:hover { transform: translateY(-2px); }
.site-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: top; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d0da; }
.browser-url { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 999px; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Model findings */
.model-findings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.mf-stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; }
.mf-stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--accent); line-height: 1.1; margin-bottom: 8px; }
.mf-stat span { font-size: .9rem; color: var(--ink-soft); display: block; }
.samples-grid-one { grid-template-columns: minmax(0, 520px); }

/* Work samples */
.samples { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.samples-head h3 { margin-bottom: 6px; }
.samples-head p { max-width: 70ch; }
.samples-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.sample { margin: 0; }
.sample-open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: zoom-in; transition: transform .2s, box-shadow .2s;
}
.sample-open:hover, .sample-open:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(10, 42, 107, .5); }
.sample-open img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.sample figcaption { margin-top: 10px; display: flex; flex-direction: column; font-size: .88rem; }
.sample figcaption strong { font-weight: 600; }
.sample figcaption span, .sample figcaption a { color: var(--muted); text-decoration: none; }
.sample figcaption a { color: var(--accent); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 20, 22, .82); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 10px; }
.lightbox-caption { color: #eef2f7; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}

.tag-live { display: inline-flex; align-items: center; gap: 6px; }
.tag-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .tag-live .dot { animation: none; } }
.card-client { color: var(--muted); font-size: .9rem; margin-top: -4px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .chips { margin-top: auto; padding-top: 8px; }
.card-link { color: var(--accent); font-weight: 500; text-decoration: none; font-size: .95rem; }
.card-link:hover { text-decoration: underline; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .85rem; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line);
}

/* ---------- Education ---------- */
.edu { grid-template-columns: 1fr 1fr; }
.edu-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.edu-item ul { margin-top: 16px; }
.edu-stack { display: grid; gap: 24px; align-content: start; }
.edu-stack .edu-item h3 + ul { margin-top: 12px; }
.inline-link { color: var(--accent); font-weight: 500; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.skill-group h3 { margin-bottom: 16px; font-size: 1.1rem; }
.skill-group .chips li { background: #fff; }

/* ---------- Contact ---------- */
.contact { background: #081a42; color: #f3f5f8; }
.contact .section-label { color: #d4a72c; }
.contact h2 { margin-bottom: 0; }
.contact .lede { color: #c8d3e2; }
.contact .btn-primary { background: #d4a72c; color: var(--ink); }
.contact .btn-primary:hover { background: #e6bd45; }
.contact .btn-ghost { background: transparent; border-color: #2c4a75; color: #f3f5f8; }
.contact .btn-ghost:hover { border-color: #d4a72c; color: #d4a72c; }

.footer { background: #081a42; color: #9aa8bc; font-size: .85rem; padding: 24px 0 40px; border-top: 1px solid #1a3470; }

/* ---------- Reveal ---------- */
/* Content is always visible; no fade-in that could leave sections blank. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; max-width: 260px; order: -1; }
  .grid-2, .edu { grid-template-columns: 1fr; gap: 24px; }
  .cards, .skills, .case-grid { grid-template-columns: 1fr; }
  .feature-body { columns: 1; }
  .samples-grid { grid-template-columns: 1fr 1fr; }
  .model-findings { grid-template-columns: 1fr 1fr; }
  .samples-grid-one { grid-template-columns: 1fr; }
  .case-photos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .case-photos figcaption { font-size: .78rem; }
  .case-photos-wide { grid-template-columns: 1fr 1fr; }
  .case-photos-wide .photo-lead { grid-column: 1 / -1; grid-row: auto; }
  .case-photos-wide .photo-lead img { aspect-ratio: 4 / 3; height: auto; }
  .case-photos-wide figure:nth-child(4) { grid-column: 1 / -1; }
  .timeline > li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .nav-cta { border: 0; padding: 10px 0; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 72px 0; }
}

/* =========================================================
   Side menu layout
   ========================================================= */
:root { --side-w: 260px; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); z-index: 60;
  background: #081a42; color: #eef2f7; display: flex; flex-direction: column;
  padding: 32px 24px 24px; overflow-y: auto; border-right: 3px solid #d4a72c;
}
.site { margin-left: var(--side-w); }
.side-id { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-decoration: none; color: #fff; }
.side-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #d4a72c; }
.side-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.side-nav { display: flex; flex-direction: column; margin-top: 32px; gap: 2px; }
.side-nav a {
  color: #c8d3e2; text-decoration: none; font-size: 1rem; padding: 8px 12px; border-radius: 6px;
  border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.side-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side-nav a.active { color: #fff; background: rgba(212, 167, 44, .14); border-left-color: #d4a72c; }
.side-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.btn-side { background: #d4a72c; color: #081a42; text-align: center; font-weight: 600; }
.btn-side:hover { background: #e6bd45; }
.side-social { display: flex; gap: 14px; }
.side-social a { color: #c8d3e2; }
.side-social a:hover { color: #d4a72c; }
.side-social svg { width: 20px; height: 20px; fill: currentColor; }

.menu-btn {
  display: none; position: fixed; top: 14px; right: 14px; z-index: 70; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: #081a42; cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu-scrim { display: none; }

@media (max-width: 1024px) {
  .site { margin-left: 0; }
  .menu-btn { display: flex; }
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-open .sidebar { transform: none; }
  .menu-open .menu-scrim { display: block; position: fixed; inset: 0; background: rgba(8, 26, 66, .45); z-index: 55; cursor: pointer; }
  .hero { padding-top: 72px; }
}

/* ---------- Edit mode (only on your computer, ?edit) ---------- */
.ed-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #d4a72c; color: #0a1f4f; font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ed-fab:hover { background: #e6bb45; }
body.editing { padding-bottom: 64px; }
body.editing [data-edit] { outline: 1px dashed transparent; outline-offset: 2px; border-radius: 3px; cursor: text; min-width: 1.5em; }
body.editing [data-edit]:hover { outline-color: #d4a72c; }
body.editing [data-edit]:focus { outline: 2px solid #d4a72c; background: rgba(212,167,44,.08); }
body.editing [data-edit]:empty::before { content: attr(data-ph); color: #9aa3b5; font-style: italic; }
body.editing [data-edit]:empty { display: inline-block; }
body.editing p[data-edit]:empty, body.editing h2[data-edit]:empty, body.editing h3[data-edit]:empty { display: block; }
body.editing .ed-hidden { opacity: .45; outline: 2px dashed #b44; outline-offset: 4px; }
body.editing .ed-current { outline: 2px solid rgba(212,167,44,.7); outline-offset: 4px; }
body.editing img[data-img] { cursor: pointer; }
body.editing img[data-img]:hover { outline: 3px solid #d4a72c; }
body.editing img[data-img][src=""] { min-height: 110px; width: 100%; background: repeating-linear-gradient(45deg,#eef1f7,#eef1f7 10px,#e2e7f1 10px,#e2e7f1 20px); }
body.editing section[data-section] { position: relative; }
.ed-section-tools { position: absolute; top: 10px; right: 14px; z-index: 5; display: flex; gap: 6px; align-items: center; }
.ed-tools { position: absolute; z-index: 70; display: none; gap: 4px; align-items: center; background: #0a1f4f; padding: 4px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ed-tools button, .ed-section-tools button, .ed-bar button, .ed-dialog button { font: 600 13px/1 var(--sans); padding: 7px 10px; border-radius: 6px; border: 1px solid #c9cfdc; background: #fff; color: #0a2a6b; cursor: pointer; }
.ed-tools button { border-color: transparent; background: #1b3a7a; color: #fff; }
.ed-tools button:hover { background: #d4a72c; color: #0a1f4f; }
.ed-tools .ed-danger, .ed-dialog .ed-danger { background: #9b2c2c; color: #fff; }
.ed-kind { font: 600 12px/1 var(--sans); color: #d4a72c; padding: 0 6px; text-transform: capitalize; }
.ed-section-tools .ed-kind { background: #0a1f4f; padding: 7px 10px; border-radius: 6px; }
.ed-add { display: inline-block; margin: 8px 0; font: 600 14px/1 var(--sans); padding: 9px 14px; border-radius: 8px; border: 2px dashed #d4a72c; background: rgba(212,167,44,.1); color: #8a6a10; cursor: pointer; list-style: none; align-self: start; }
.section-dark .ed-add, .contact .ed-add { color: #f0cf6e; }
.ed-add:hover { background: #d4a72c; color: #0a1f4f; }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: #081a42; color: #fff; border-top: 3px solid #d4a72c; font: 15px var(--sans); }
.ed-bar .ed-title { color: #d4a72c; }
.ed-spacer { flex: 1; }
.ed-bar .ed-primary, .ed-dialog .ed-primary { background: #d4a72c; border-color: #d4a72c; color: #0a1f4f; }
.ed-bar button:disabled { opacity: .45; cursor: default; }
.ed-bar .ed-ok { border-color: #5fa36a; }
.ed-status { color: #c9d3ea; font-size: 14px; }
.ed-status.ed-warn { color: #f0cf6e; }
.ed-status.ed-ok { color: #8fd19e; }
.ed-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 90; background: #0a1f4f; color: #fff; padding: 10px 16px; border-radius: 8px; font: 15px var(--sans); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ed-dialog { width: min(640px, 94vw); max-height: 86vh; border: 0; border-radius: 12px; padding: 22px; font: 15px var(--sans); color: #1a2333; }
.ed-dialog::backdrop { background: rgba(8,26,66,.55); }
.ed-dialog h3 { margin: 0 0 14px; color: #0a2a6b; }
.ed-dialog-body { display: flex; flex-direction: column; gap: 10px; }
.ed-field { display: flex; flex-direction: column; gap: 4px; }
.ed-field span { font-weight: 600; font-size: 13px; color: #44506a; }
.ed-field input, .ed-field textarea { font: 15px var(--sans); padding: 8px; border: 1px solid #c9cfdc; border-radius: 6px; }
.ed-field button { align-self: start; }
.ed-dialog fieldset { border: 1px solid #dde2ec; border-radius: 8px; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; }
.ed-dialog legend { font-weight: 600; color: #0a2a6b; }
.ed-note { color: #6b7488; font-size: 13px; margin: 0; }
.ed-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ed-help li { margin-bottom: 8px; line-height: 1.45; }
.ed-hint { font-size: 14px; color: #8a93a8; }
@media print { .ed-fab, .ed-bar { display: none; } }
