/* Terrell Francis portfolio, static, no build step */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0E2238;
  --ink-2: #1F3A5F;
  --text: #22324A;
  --muted: #5A6B82;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --accent: #2563A6;
  --accent-ink: #1B4F87;
  --accent-soft: #E8F0FA;
  --gold: #E9A93B;
  --green: #1E9E6A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 56, .06), 0 1px 3px rgba(14, 34, 56, .05);
  --shadow: 0 10px 30px -12px rgba(14, 34, 56, .18), 0 2px 6px rgba(14, 34, 56, .05);
  --shadow-lg: 0 30px 60px -20px rgba(14, 34, 56, .28);
  --container: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 650; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1;
  padding: 14px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 34, 56, .55); }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #C9D3E0; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.muted-inline { color: var(--muted); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 34, 56, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%); color: #fff; font-size: 14px; font-weight: 750; letter-spacing: .02em;
}
.brand-name { font-size: 16.5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active:not(.btn) { color: var(--ink); background: var(--accent-soft); }
.nav-links li:last-child { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s; content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(37, 99, 166, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(233, 169, 59, .10), transparent 60%),
    linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14, 34, 56, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 34, 56, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); padding: 7px 14px 7px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(30, 158, 106, .5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 158, 106, .45); } 70% { box-shadow: 0 0 0 8px rgba(30, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 106, 0); } }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.65rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 22px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; font-size: 1.12em; line-height: 0.9; }
.lead { font-size: 1.14rem; color: var(--text); max-width: 600px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--accent); }

.hero-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgba(37, 99, 166, .35), rgba(233, 169, 59, .25) 60%, transparent);
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill-live { background: #E7F6EF; color: #136B47; }
.phase-list { position: relative; display: grid; gap: 4px; counter-reset: phase; }
.phase-list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--accent), var(--green)); opacity: .35; border-radius: 2px; }
.phase-list li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 9px 10px 9px 0; border-radius: 12px; }
.phase-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); margin-top: 2px; display: grid; place-items: center; }
.phase-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.phase-list li:last-child .phase-dot { border-color: var(--green); }
.phase-list li:last-child .phase-dot::after { background: var(--green); }
.phase-list strong { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.phase-list span:not(.phase-dot) { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hero-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); }
.hero-card-foot div { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.hero-card-foot dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-card-foot dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ---------- Impact strip ---------- */
.impact { background: var(--ink); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.impact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 10% 0%, rgba(37, 99, 166, .45), transparent 60%), radial-gradient(600px 260px at 100% 100%, rgba(233, 169, 59, .14), transparent 60%); pointer-events: none; }
.metrics { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.metric { display: flex; flex-direction: column; padding: 6px 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-num { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.metric-label { margin-top: 10px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .78); flex: 1; }
.metric-src { margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--gold); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 750; letter-spacing: -0.03em; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { margin: 14px 0 0; color: var(--muted); font-size: 1.04rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.about-body p { font-size: 1.06rem; }
.about-body p:last-child { margin-bottom: 0; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.principle { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, box-shadow .25s ease, background-color .25s; }
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.principle-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.principle h3 { font-size: 1.12rem; margin-bottom: 8px; }
.principle p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* Case studies */
.work { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.case + .case { margin-top: 24px; }
.case:hover { box-shadow: var(--shadow); }
.case-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.case-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--accent); opacity: .85; padding-top: 2px; }
.case-meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.case h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.case-stat { margin: 0; min-width: 170px; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.35; max-width: 200px; }
.case-stat span { display: block; font-size: 2.2rem; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.case-stat .case-stat-icon { color: var(--green); }
.par { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.par-col p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; }
.par-tag { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.par-p { background: #FDF1E7; color: #9A4B12; }
.par-a { background: var(--accent-soft); color: var(--accent-ink); }
.par-r { background: #E7F6EF; color: #136B47; }

/* Products (TK Hub LLC) */
.owned { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 36px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.owned li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.owned-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.owned strong { display: block; font-size: 15px; line-height: 1.3; }
.owned li span:not(.owned-icon) { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { --c: var(--accent); position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.product::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); opacity: .85; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D5DDE8; }
.product-feature { grid-column: span 2; background: linear-gradient(180deg, #fff 0%, #FAFBFD 100%); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.product-logo { display: block; width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex: none; background: var(--c); box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .08); }
.product-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.3; }
.product h3 { font-size: 1.12rem; margin-bottom: 8px; }
.product-feature h3 { font-size: 1.3rem; }
.product p { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.product-link { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid #C8DAF0; padding-bottom: 1px; word-break: break-word; }
.product-link:hover { color: var(--accent); border-bottom-color: currentColor; }
.products-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #D3E2F4; }
.products-note p { margin: 0; font-size: 15.5px; max-width: 820px; }
.products-note .btn { flex: none; }
.tl-co a { color: inherit; text-decoration: underline; text-decoration-color: rgba(27, 79, 135, .35); }
.tl-co a:hover { text-decoration-color: currentColor; }
.tl-body li a { color: var(--accent-ink); }
.products + .experience { border-top: 1px solid var(--line); }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 228px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 222px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 5px #fff; }
.tl-when { text-align: right; padding-top: 1px; }
.tl-when span { display: block; font-weight: 650; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.tl-when .tl-where { font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 2px; }
.tl-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.tl-co { display: block; font-size: 15px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0; margin-top: 3px; }
.tl-body ul { display: grid; gap: 8px; }
.tl-body li { position: relative; padding-left: 20px; font-size: 15.5px; }
.tl-body li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .55; transform: rotate(45deg); }

/* Skills */
.skills { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; }
.skill-card h3 { font-size: 1.08rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skill-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--gold)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; line-height: 1.4; transition: background-color .2s, border-color .2s; }
.chips li:hover { background: var(--accent-soft); border-color: #C8DAF0; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.edu-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edu-badge { align-self: flex-start; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin-bottom: 16px; }
.badge-progress { background: #FFF4E0; color: #8A5500; }
.badge-upcoming { background: var(--accent-soft); color: var(--accent-ink); }
.badge-done { background: #E7F6EF; color: #136B47; }
.edu-card h3 { font-size: 1.04rem; line-height: 1.35; margin-bottom: 10px; }
.edu-org { font-size: 14.5px; color: var(--text); margin-bottom: 6px; flex: 1; }
.edu-date { font-size: 13.5px; color: var(--muted); margin: 0; font-weight: 500; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 100px 0; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 90% 10%, rgba(37, 99, 166, .5), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(233, 169, 59, .14), transparent 60%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 18px; }
.contact-sub { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 560px; margin-bottom: 28px; }
.contact-list { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 8px 24px; backdrop-filter: blur(6px); }
.contact-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-list li:last-child { border-bottom: 0; }
.cl-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact-list a, .contact-list span:not(.cl-label):not(.sr-only) { color: #fff; font-weight: 550; font-size: 16px; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; color: #fff; }

/* Footer */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; outline: none; }
.site-footer { background: #0A1A2B; color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.site-footer .footer-top { padding-top: 44px; padding-bottom: 36px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; border-radius: 12px; }
.footer-logo img { width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(46, 230, 255, .28); background: #010101; }
.footer-logo-text { display: grid; gap: 2px; }
.footer-logo-text strong { color: #fff; font-size: 16px; }
.footer-logo-text span { color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.footer-logo:hover .footer-logo-text strong { text-decoration: underline; }
.footer-nav { display: grid; grid-template-columns: auto minmax(0, 340px); gap: 48px; }
.footer-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav ul.footer-apps { grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 28px; }
.footer-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .footer-inner { padding-top: 20px; padding-bottom: 22px; }
.site-footer p { margin: 0; }
.to-top { color: rgba(255, 255, 255, .75); text-decoration: none; }
.to-top:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gold); }

/* Floating back-to-top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: 0 12px 24px -10px rgba(14, 34, 56, .6); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s, background-color .2s; }
.back-to-top:hover { background: var(--ink-2); color: #fff; }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 50%; }

/* ---------- Reveal animation (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .metric:nth-child(4) { border-left: 0; padding-left: 0; }
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: 0 20px 30px -20px rgba(14, 34, 56, .3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 12px; }
  .nav-links li:last-child { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 560px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .principles { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .par { grid-template-columns: 1fr; gap: 20px; }
  .case-head { grid-template-columns: auto minmax(0, 1fr); }
  .case-stat { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; max-width: none; min-width: 0; background: var(--bg-soft); border-radius: 12px; padding: 12px 16px; }
  .case-stat span { display: inline; font-size: 1.6rem; margin: 0; }
  .skill-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .products-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .metric { padding: 0 0 0 18px; }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 18px; }
  .impact { padding: 44px 0; }
  .case { padding: 24px 20px; border-radius: 16px; }
  .case-head { gap: 14px; padding-bottom: 20px; margin-bottom: 20px; }
  .case-num { font-size: 1.9rem; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; padding-bottom: 36px; }
  .tl-item::before { left: 0; top: 4px; }
  .tl-when { text-align: left; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .tl-when .tl-where { margin: 0; }
  .edu-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-card { padding: 22px 18px 18px; }
  .hero-card-foot { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .contact { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 6px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-feature { grid-column: auto; }
  .owned { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .footer-top { padding-top: 36px; padding-bottom: 28px; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 440px) {
  .status { font-size: 12.5px; padding: 6px 12px 6px 10px; gap: 8px; }
  .chips { gap: 6px; }
  .chips li { font-size: 13px; padding: 5px 10px; }
  .skill-card { padding: 22px 18px 22px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.05rem; }
  .metric-num { font-size: 1.8rem; }
}

@media print {
  .site-header, .nav-toggle, .hero-bg, .cta-row, .to-top, .back-to-top { display: none !important; }
  .impact, .contact { background: #fff; color: #000; }
  .metric-num, .metric-label, .contact h2, .contact-sub, .contact-list a, .contact-list span { color: #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .section { padding: 32px 0; }
}

/* =====================================================================
   Motion & polish layer (2026-10 redesign). Additive; content unchanged.
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Frosted nav + animated active underline */
.site-header.scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(190%) blur(18px); -webkit-backdrop-filter: saturate(190%) blur(18px); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.brand-mark { transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

/* Reading progress bar */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--gold)); pointer-events: none; }

/* Hero: drifting light field (no filter blur; transform-only animation) */
.hero-bg { overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(34% 44% at 78% 18%, rgba(37, 99, 166, .22), transparent 70%),
    radial-gradient(30% 40% at 12% 30%, rgba(233, 169, 59, .16), transparent 70%),
    radial-gradient(32% 42% at 55% 88%, rgba(37, 99, 166, .10), transparent 70%);
  will-change: transform;
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}
.hero h1 em { background: linear-gradient(100deg, var(--accent) 10%, var(--gold) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* Hero headline: staggered word reveal */
.js .hero h1.split.reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > * { display: inline-block; }
.js .split .w > * { transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.js .split.in .w > * { transform: none; }

/* Hero card lift */
.hero-card { transition: transform .4s var(--ease), box-shadow .4s ease; }
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Impact metrics */
.metric { transition: transform .3s var(--ease); }
.metric:hover { transform: translateY(-4px); }
.metric-num { transition: text-shadow .3s ease; }
.metric:hover .metric-num { text-shadow: 0 0 24px rgba(233, 169, 59, .45); }

/* Cards: lift + cursor-follow glow */
.case, .principle, .product, .edu-card { position: relative; }
.case::after, .principle::after, .product::after, .edu-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 166, .10), transparent 45%);
  transition: opacity .35s ease;
}
.case:hover::after, .principle:hover::after, .product:hover::after, .edu-card:hover::after { opacity: 1; }
.case { transition: box-shadow .35s ease, transform .35s var(--ease), border-color .35s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #D5DDE8; }
.principle:hover, .edu-card:hover { transform: translateY(-5px); }

/* App cards: accent glow, animated top bar, logo tilt */
.product { transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s; }
.product::before { transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease), opacity .3s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(14, 34, 56, .35), var(--shadow-sm); border-color: #D5DDE8; }
.product:hover::before { transform: scaleX(1); opacity: 1; }
.product-logo { transition: transform .4s var(--ease); }
.product:hover .product-logo { transform: scale(1.08) rotate(-4deg); }

.chips li:hover { background: var(--accent-soft); border-color: #C8DAF0; }
.btn:hover { transform: translateY(-2px); }

/* Timeline: scroll-linked fill + hover dot */
.tl-progress { position: absolute; left: 228px; top: 8px; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(var(--gold), var(--accent)); z-index: 0; pointer-events: none; }
.tl-item::before { z-index: 1; transition: background-color .3s, transform .3s var(--ease), border-color .3s; }
.tl-item:hover::before { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }
.tl-body { transition: transform .3s var(--ease); }
.tl-item:hover .tl-body { transform: translateX(4px); }
@media (max-width: 720px) { .tl-progress { left: 6px; } }

.back-to-top:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .js .split .w > * { transform: none !important; }
  .hero-bg::before { animation: none !important; }
  .scroll-progress { display: none; }
}
@media print { .scroll-progress, .tl-progress { display: none !important; } }

/* ---------- Redesign extras: hero orbs, phase walk-through, app-card glow ---------- */
.hero { isolation: isolate; }
/* Two soft orbs: radial gradients moved by transform only (no filter/blur) */
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero-orb-a { width: 420px; height: 420px; right: -80px; top: 40px; background: radial-gradient(circle, rgba(37, 99, 166, .16), transparent 68%); animation: orbA 18s ease-in-out infinite alternate; }
.hero-orb-b { width: 300px; height: 300px; left: 30%; bottom: -120px; background: radial-gradient(circle, rgba(233, 169, 59, .16), transparent 68%); animation: orbB 22s ease-in-out infinite alternate; }
@keyframes orbA { to { transform: translate3d(-60px, 50px, 0) scale(1.1); } }
@keyframes orbB { to { transform: translate3d(70px, -40px, 0) scale(.92); } }
.hero h1 em { background-size: 200% 100%; animation: emSheen 8s ease-in-out infinite alternate; background-image: linear-gradient(100deg, var(--accent) 0%, var(--gold) 50%, var(--accent) 100%); }
@keyframes emSheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Hero card: phases light up in order on load */
.phase-anim li { opacity: .45; transition: opacity .5s ease, background-color .5s ease; }
.phase-anim .phase-dot { transition: transform .5s var(--ease), box-shadow .5s ease; }
.phase-anim.go li { opacity: 1; }
.phase-anim.go li:nth-child(1) { transition-delay: .5s; } .phase-anim.go li:nth-child(1) .phase-dot { transition-delay: .5s; }
.phase-anim.go li:nth-child(2) { transition-delay: .8s; } .phase-anim.go li:nth-child(2) .phase-dot { transition-delay: .8s; }
.phase-anim.go li:nth-child(3) { transition-delay: 1.1s; } .phase-anim.go li:nth-child(3) .phase-dot { transition-delay: 1.1s; }
.phase-anim.go li:nth-child(4) { transition-delay: 1.4s; } .phase-anim.go li:nth-child(4) .phase-dot { transition-delay: 1.4s; }
.phase-anim.go li:nth-child(5) { transition-delay: 1.7s; } .phase-anim.go li:nth-child(5) .phase-dot { transition-delay: 1.7s; }
.phase-list li:hover { background: var(--bg-soft); }
.phase-list li:hover .phase-dot { transform: scale(1.12); box-shadow: 0 0 0 5px var(--accent-soft); }

/* App cards: brand-tinted glow, tinted logo halo */
.product:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 24px 44px -24px color-mix(in srgb, var(--c) 55%, transparent), var(--shadow-sm); }
.product::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 12%, transparent), transparent 50%); }
.product-logo { box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 6px 16px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.product-link { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .hero-orb-a { width: 280px; height: 280px; right: -120px; top: 0; }
  .hero-orb-b { width: 220px; height: 220px; left: -60px; bottom: -80px; }
}
@media (hover: none) {
  .product:hover, .case:hover, .principle:hover, .edu-card:hover, .metric:hover, .hero-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero h1 em { animation: none !important; }
  .phase-anim li { opacity: 1 !important; }
}
@media print { .hero-orb { display: none !important; } }
