/* ============================================================
   Simanto Mitro: founder portfolio
   Design system: deep navy + teal, quiet, premium, fast.
   ============================================================ */

:root {
  --bg: #070d17;
  --bg-2: #0a1826;
  --panel: #0c1d30;
  --panel-2: #0e2238;
  --ink: #eaf2f8;
  --muted: #9db2c6;
  --faint: #6e87a0;
  --teal: #12b8b0;
  --teal-dark: #0d8f89;
  --line: rgba(157, 178, 198, 0.16);
  --line-soft: rgba(157, 178, 198, 0.09);
  --radius: 18px;
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: #04211f; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 13, 23, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.wordmark .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--teal), #0a5e73);
  display: grid; place-items: center; color: #eafffd; font-size: 13px; letter-spacing: 0.04em;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a.nav-item {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease; position: relative; padding: 6px 0;
}
.main-nav a.nav-item:hover, .main-nav a.nav-item.active { color: var(--ink); }
.main-nav a.nav-item.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); border-radius: 2px;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #03211f; }
.btn-primary:hover { background: #2bc9c1; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-small { padding: 11px 20px; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  place-items: center; cursor: pointer; flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ---------- Shared section furniture ---------- */
main { display: block; }
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-title {
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.14; font-weight: 700;
  letter-spacing: -0.02em; max-width: 720px;
}
.section-title em, .hero-title em, .page-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal);
  letter-spacing: 0;
}
.section-lede { color: var(--muted); font-size: 18.5px; max-width: 680px; margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; padding: 178px 0 96px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(18, 184, 176, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(20, 90, 140, 0.14), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero-title {
  font-size: clamp(42px, 6.4vw, 68px); line-height: 1.06; font-weight: 800;
  letter-spacing: -0.028em; margin-top: 28px;
}
.hero-sub { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 560px; margin-top: 24px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 52px; padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.hero-proof .proof-item { max-width: 300px; }
.proof-item .proof-top { font-weight: 700; font-size: 15.5px; }
.proof-item .proof-sub { color: var(--faint); font-size: 13.5px; margin-top: 2px; }
.hero-portrait { position: relative; justify-self: end; }
.hero-portrait .frame {
  width: min(360px, 78vw); aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.hero-portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .badge {
  position: absolute; left: -22px; bottom: 26px;
  background: rgba(10, 24, 38, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px;
  font-size: 13.5px; line-height: 1.45;
}
.hero-portrait .badge b { display: block; font-size: 14.5px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; margin-top: 52px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(18, 184, 176, 0.45); transform: translateY(-3px); }
.card .card-num { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--teal); }
.card h3 { font-size: 20.5px; font-weight: 700; letter-spacing: -0.01em; margin-top: 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 9px; }

/* ---------- Work list ---------- */
.work-list { margin-top: 54px; border-top: 1px solid var(--line-soft); }
.work-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 40px;
  padding: 38px 6px; border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s ease; border-radius: 4px;
}
.work-item:hover { background: rgba(255, 255, 255, 0.015); }
.work-item .work-role { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.work-item h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.015em; margin-top: 8px; }
.work-item h3 a:hover { color: var(--teal); }
.work-item .work-desc { color: var(--muted); max-width: 720px; margin-top: 10px; font-size: 16.5px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  background: rgba(255, 255, 255, 0.02);
}
.work-link {
  align-self: start; font-size: 14px; font-weight: 600; color: var(--teal);
  display: inline-flex; gap: 7px; align-items: center; padding-top: 34px; white-space: nowrap;
}
.work-link svg { width: 15px; height: 15px; }
.quiet-line { color: var(--faint); font-size: 15px; margin-top: 30px; max-width: 720px; }
.quiet-line a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Split / about strip ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prose p { color: var(--muted); font-size: 17.5px; margin-bottom: 20px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose p:first-child { font-size: 19.5px; color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { margin-top: 48px; border-left: 2px solid var(--line-soft); }
.tl-item { position: relative; padding: 0 0 34px 34px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--teal);
}
.tl-year { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--teal); text-transform: uppercase; }
.tl-item h3 { font-size: 19px; font-weight: 700; margin-top: 5px; }
.tl-item p { color: var(--muted); font-size: 15.5px; margin-top: 4px; max-width: 640px; }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.cred {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 28px; background: rgba(255, 255, 255, 0.015);
}
.cred .cred-mark {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: rgba(18, 184, 176, 0.12); color: var(--teal);
  display: grid; place-items: center;
}
.cred .cred-mark svg { width: 22px; height: 22px; }
.cred h3 { font-size: 17.5px; font-weight: 700; }
.cred p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

/* ---------- Contact band ---------- */
.contact-band {
  border: 1px solid var(--line-soft); border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(18, 184, 176, 0.12), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: clamp(38px, 6vw, 64px); text-align: left;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center;
}
.contact-band h2 { font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -0.02em; line-height: 1.16; }
.contact-band p { color: var(--muted); margin-top: 14px; max-width: 520px; }
.contact-rows { display: grid; gap: 12px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  font-weight: 600; font-size: 15.5px; background: rgba(7, 13, 23, 0.5);
  transition: border-color 0.2s ease;
}
.contact-row:hover { border-color: var(--teal); }
.contact-row small { display: block; font-weight: 500; color: var(--faint); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-row svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 46px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.footer-note { color: var(--faint); font-size: 14px; }
.footer-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.footer-links a:hover { color: var(--teal); }

/* ---------- About page ---------- */
.page-hero { padding: 168px 0 70px; position: relative;
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(18, 184, 176, 0.12), transparent 60%),
    var(--bg);
}
.page-title { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.026em; max-width: 860px; }
.page-lede { color: var(--muted); font-size: 19.5px; max-width: 700px; margin-top: 24px; line-height: 1.7; }
.about-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about-portrait { justify-self: end; position: relative; }
.about-portrait .frame {
  width: min(320px, 76vw); aspect-ratio: 1; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45);
}
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .badge {
  position: absolute; left: -18px; bottom: 22px;
  background: rgba(10, 24, 38, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 17px; font-size: 13.5px; line-height: 1.45;
}
.about-portrait .badge b { display: block; font-size: 14.5px; }

.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.fact-strip .fact {
  border-top: 2px solid var(--teal); padding-top: 16px;
}
.fact .fact-top { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.fact .fact-sub { color: var(--faint); font-size: 14px; margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-hero-grid, .split, .contact-band { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-portrait, .about-portrait { justify-self: start; }
  .hero-portrait .badge, .about-portrait .badge { left: auto; right: -8px; }
  .cards-3, .cards-2, .cred-grid { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; gap: 22px; }
  .work-item { grid-template-columns: 1fr; }
  .work-link { padding-top: 2px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 59;
    background: rgba(7, 13, 23, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-item { padding: 13px 2px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .main-nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: grid; }
  .wrap { width: calc(100% - 40px); }
}
