/* =========================================================
   Arjun Ajith — Personal Portfolio
   Nordic / Nature-tech aesthetic
   ========================================================= */

:root {
  /* Core palette */
  --ink: #0B2027;
  --ink-2: #0f2e35;
  --forest-dark: #14453D;
  --forest: #4A7C59;
  --forest-light: #6a9a76;
  --sand: #E8E4D9;
  --bg: #F5F3EE;
  --bg-2: #efece4;
  --white: #ffffff;
  --accent: #7FB2A5;   /* glacier teal */
  --accent-2: #D98E4A; /* warm amber for CTAs */
  --line: rgba(11, 32, 39, 0.10);
  --muted: #5c6b6a;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(11, 32, 39, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(11, 32, 39, 0.3);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { position: relative; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--forest); display: inline-block; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ink); }
.section-intro { max-width: 640px; color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.pad { padding: clamp(70px, 10vw, 130px) 0; }

/* =========================================================
   NAV
   ========================================================= */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 20px 0;
}
header.nav.scrolled {
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: var(--sand); display: grid; place-items: center; font-size: 0.95rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--ink); position: relative; transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--forest); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--sand) !important;
  font-weight: 500; transition: transform 0.25s var(--ease), background 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); background: var(--forest-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--sand); }
.hero .topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(74,124,89,0.28), transparent 55%),
              linear-gradient(180deg, rgba(11,32,39,0.15), rgba(11,32,39,0.75));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 3; padding-top: 90px; padding-bottom: 60px; }
.hero .status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 7px 15px; border: 1px solid rgba(232,228,217,0.25); border-radius: 999px; margin-bottom: 28px;
  background: rgba(232,228,217,0.06); color: var(--sand);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #7fe0a1; box-shadow: 0 0 0 4px rgba(127,224,161,0.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(127,224,161,0.18);} 50% { box-shadow: 0 0 0 8px rgba(127,224,161,0);} }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); color: var(--white); margin-bottom: 6px; }
.hero h1 .accentword { color: var(--accent); }
.hero .role { font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--sand); font-weight: 400; margin-bottom: 26px; }
.hero .lead { max-width: 600px; font-size: 1.12rem; color: rgba(232,228,217,0.86); margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; cursor: pointer; border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn-primary { background: var(--accent-2); color: #2a1a0a; box-shadow: 0 14px 34px -14px rgba(217,142,74,0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(217,142,74,0.8); }
.btn-ghost { background: rgba(232,228,217,0.08); color: var(--sand); border: 1px solid rgba(232,228,217,0.3); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(232,228,217,0.16); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 30px 44px; margin-top: 56px; }
.hero-facts .f .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--white); font-weight: 600; }
.hero-facts .f .l { font-size: 0.82rem; letter-spacing: 0.05em; color: rgba(232,228,217,0.7); text-transform: uppercase; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(232,228,217,0.6); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(232,228,217,0.5); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: rgba(232,228,217,0.7); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0);} 40% { opacity: 1;} 80% { opacity: 0; transform: translate(-50%, 10px);} 100% { opacity: 0; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
.about-body p { margin-bottom: 18px; color: #33403f; font-size: 1.08rem; }
.about-body p strong { color: var(--forest-dark); font-weight: 600; }
.about-card {
  background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 20px; color: var(--ink); }
.mini { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; }
.mini .ic { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--forest); }
.mini .t { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.mini .d { font-size: 0.9rem; color: var(--muted); }

/* value chips */
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 8px 15px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.88rem; font-family: var(--font-display); font-weight: 500; color: var(--forest-dark); transition: transform 0.2s var(--ease), background 0.2s; }
.chip:hover { transform: translateY(-2px); background: var(--forest); color: var(--sand); }

/* =========================================================
   STATS / IMPACT
   ========================================================= */
.impact { background: var(--ink); color: var(--sand); }
.impact .topo-band { position: absolute; inset: 0; opacity: 0.35; }
.impact-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: left; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--white); line-height: 1; }
.stat .num .suffix { color: var(--accent); }
.stat .cap { margin-top: 12px; font-size: 0.95rem; color: rgba(232,228,217,0.78); }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.bars .bar-row { margin-bottom: 22px; }
.bars .bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bars .bar-name { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; }
.bars .bar-val { font-size: 0.82rem; color: var(--muted); font-family: var(--font-display); }
.bars .track { height: 9px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bars .fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--forest), var(--accent)); transition: width 1.3s var(--ease); }
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.radar-wrap svg { max-width: 420px; width: 100%; }
.radar-caption { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* =========================================================
   WORKFLOW
   ========================================================= */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 20px; counter-reset: step; }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.flow-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.flow-step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--bg-2); }
.flow-step .ph { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px; }
.flow-step h4 { font-size: 1.15rem; margin-bottom: 10px; }
.flow-step p { font-size: 0.92rem; color: var(--muted); }
.flow-loop { text-align: center; margin-top: 26px; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.flow-loop b { color: var(--forest-dark); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { position: relative; margin-top: 30px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--forest), var(--line)); }
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--forest); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .when { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--forest); text-transform: uppercase; }
.tl-item h4 { font-size: 1.25rem; margin: 6px 0 3px; }
.tl-item .org { font-weight: 500; color: var(--ink); }
.tl-item .place { color: var(--muted); font-size: 0.9rem; }
.tl-item ul { list-style: none; margin-top: 12px; }
.tl-item li { position: relative; padding-left: 20px; margin-bottom: 8px; color: #33403f; font-size: 0.98rem; }
.tl-item li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.edu-tag { display: inline-block; margin-top: 4px; font-size: 0.82rem; color: var(--muted); }

/* =========================================================
   ADAPTABILITY / GLOBE
   ========================================================= */
.adapt { background: var(--forest-dark); color: var(--sand); }
.adapt .section-title { color: var(--white); }
.adapt .section-intro { color: rgba(232,228,217,0.8); }
.adapt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.geo-card { background: rgba(232,228,217,0.06); border: 1px solid rgba(232,228,217,0.16); border-radius: var(--radius); padding: 28px; transition: transform 0.3s var(--ease), background 0.3s; }
.geo-card:hover { transform: translateY(-6px); background: rgba(232,228,217,0.11); }
.geo-card .flag { font-size: 2rem; margin-bottom: 14px; }
.geo-card h4 { color: var(--white); font-size: 1.2rem; }
.geo-card .yrs { font-family: var(--font-display); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.05em; margin: 6px 0 12px; }
.geo-card p { font-size: 0.94rem; color: rgba(232,228,217,0.82); }

/* =========================================================
   KNOWLEDGE DB
   ========================================================= */
.kdb { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 40px; }
.kcat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow 0.3s; }
.kcat:hover { box-shadow: var(--shadow); }
.kcat h4 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink); }
.kcat h4 .k-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; color: var(--forest); flex: 0 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.82rem; padding: 6px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--forest-dark); font-weight: 500; transition: background 0.2s, color 0.2s; }
.tag:hover { background: var(--forest); color: var(--sand); }

/* =========================================================
   VIZ DEMO
   ========================================================= */
.viz { background: var(--ink); color: var(--sand); overflow: hidden; }
.viz .topo-band { position: absolute; inset: 0; opacity: 0.28; }
.viz .section-title { color: var(--white); }
.viz .section-intro { color: rgba(232,228,217,0.8); }
.viz-panel { position: relative; background: rgba(232,228,217,0.05); border: 1px solid rgba(232,228,217,0.15); border-radius: var(--radius); padding: 30px; margin-top: 40px; }
.viz-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.viz-tab { padding: 9px 18px; border-radius: 999px; background: rgba(232,228,217,0.07); border: 1px solid rgba(232,228,217,0.18); color: var(--sand); font-family: var(--font-display); font-size: 0.88rem; cursor: pointer; transition: 0.25s; }
.viz-tab.active { background: var(--accent); color: #08201c; border-color: var(--accent); }
.viz-canvas-wrap { min-height: 320px; display: flex; align-items: center; justify-content: center; }
.viz-note { margin-top: 20px; font-size: 0.86rem; color: rgba(232,228,217,0.65); text-align: center; }

/* donut + kpi grid inside viz */
.kpi-live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; }
.kpi-live .cell { background: rgba(232,228,217,0.05); border: 1px solid rgba(232,228,217,0.14); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.kpi-live .cell .v { font-family: var(--font-display); font-size: 1.9rem; color: var(--white); font-weight: 600; }
.kpi-live .cell .k { font-size: 0.78rem; color: rgba(232,228,217,0.7); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.kpi-live .cell .spark { margin-top: 12px; }

/* =========================================================
   ADVENTURE / BEYOND WORK
   ========================================================= */
.adventure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.adv-card { border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--sand); box-shadow: var(--shadow); transition: transform 0.35s var(--ease); }
.adv-card:hover { transform: translateY(-6px); }
.adv-card .badge { position: absolute; top: 22px; left: 22px; font-size: 1.6rem; }
.adv-card h4 { font-size: 1.45rem; color: var(--white); position: relative; z-index: 2; }
.adv-card p { font-size: 0.96rem; color: rgba(255,255,255,0.9); position: relative; z-index: 2; margin-top: 8px; }
.adv-card .cta-link { margin-top: 14px; font-family: var(--font-display); font-size: 0.86rem; font-weight: 500; color: var(--white); display: inline-flex; gap: 6px; align-items: center; position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,0.5); width: fit-content; padding-bottom: 2px; }
.adv-card .cta-link:hover { gap: 12px; }
.adv-1 { background: linear-gradient(150deg, #1c5c50, #0d3b34); }
.adv-2 { background: linear-gradient(150deg, #2b5c6e, #123241); }
.adv-3 { background: linear-gradient(150deg, #4a7c59, #274b30); }
.adv-4 { background: linear-gradient(150deg, #8a6d3b, #4a3a1e); }
.adv-card .bg-topo { position: absolute; inset: 0; opacity: 0.4; z-index: 1; }
.adv-wide { grid-column: span 2; min-height: 200px; }
.map-fact { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.map-fact .big { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 600; color: var(--white); line-height: 1; }

/* =========================================================
   STRENGTHS
   ========================================================= */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.str-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.str-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.str-card .s-ic { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--forest), var(--forest-dark)); color: var(--sand); display: grid; place-items: center; margin-bottom: 18px; }
.str-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.str-card p { font-size: 0.95rem; color: var(--muted); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--sand); }
.contact .topo-band { position: absolute; inset: 0; opacity: 0.35; }
.contact-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.contact .section-title { color: var(--white); }
.contact p.lead { color: rgba(232,228,217,0.85); font-size: 1.12rem; margin: 16px auto 34px; max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ref-note { font-size: 0.9rem; color: rgba(232,228,217,0.55); margin-top: 54px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer.foot { background: #071519; color: rgba(232,228,217,0.7); padding: 44px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-inner .brand { color: var(--sand); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 0.9rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: 0.82rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 22px; transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--sand); font-size: 1.15rem; }
  .nav-links a:hover { color: var(--accent); }
  .nav-toggle { display: block; z-index: 101; }
  .about-grid, .skills-grid { grid-template-columns: 1fr; gap: 40px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .adapt-grid, .strength-grid { grid-template-columns: 1fr; }
  .kpi-live { grid-template-columns: 1fr 1fr; }
  .adventure-grid { grid-template-columns: 1fr; }
  .adv-wide { grid-column: span 1; }
}
@media (max-width: 540px) {
  .flow { grid-template-columns: 1fr; }
  .impact-grid, .kpi-live { grid-template-columns: 1fr; }
  .hero-facts { gap: 22px 30px; }
  .wrap { padding: 0 20px; }
  .hero-inner { padding-top: 128px; }
  .hero .status { margin-bottom: 22px; }
}

/* =========================================================
   PHOTOS — hero portrait, about card, adventure cards
   ========================================================= */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-photo { position: relative; max-width: 400px; justify-self: end; }
.hero-photo img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid rgba(232,228,217,0.22);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 2px solid var(--forest); border-radius: var(--radius); z-index: -1;
}
.hero-photo::after {
  content: ""; position: absolute; right: -12px; bottom: -12px; width: 70px; height: 70px;
  border-right: 3px solid var(--accent-2); border-bottom: 3px solid var(--accent-2);
  border-radius: 0 0 var(--radius) 0;
}
.hp-badge {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 15px; border-radius: 999px;
  background: rgba(11,32,39,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(232,228,217,0.28); color: var(--sand);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
}
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; }
.proof span {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,228,217,0.62);
}
.proof i { color: var(--accent-2); font-style: normal; }

.ac-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 22px; display: block; }

.adv-card.has-photo { padding: 0; overflow: hidden; display: flex; min-height: 340px; }
.adv-card.has-photo .adv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.adv-card.has-photo:hover .adv-img { transform: scale(1.05); }
.adv-card.has-photo .adv-body {
  position: relative; margin-top: auto; width: 100%; padding: 24px 26px;
  background: linear-gradient(to top, rgba(11,32,39,0.94) 30%, rgba(11,32,39,0.6) 70%, transparent);
}
.adv-card.has-photo .badge { margin-bottom: 8px; }
.adv-card.has-photo h4, .adv-card.has-photo p { position: relative; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; max-width: 330px; }
}

/* =========================================================
   NAV — light-on-dark before scroll + language switch
   ========================================================= */
header.nav:not(.scrolled) .brand { color: var(--sand); }
header.nav:not(.scrolled) .nav-links a { color: var(--sand); }
header.nav:not(.scrolled) .nav-links a:hover { color: var(--accent); }
header.nav:not(.scrolled) .nav-links .nav-cta { background: rgba(232,228,217,0.12); border: 1px solid rgba(232,228,217,0.35); }
header.nav:not(.scrolled) .nav-links .nav-cta:hover { background: var(--forest); }

.lang-sw {
  display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 500;
}
.lang-sw a { padding: 4px 11px; border-radius: 999px; color: var(--muted); transition: 0.2s; }
.lang-sw a:hover { color: var(--forest-dark); }
.lang-sw a.active { background: var(--forest); color: var(--sand); }
header.nav:not(.scrolled) .lang-sw { border-color: rgba(232,228,217,0.3); }
header.nav:not(.scrolled) .lang-sw a { color: rgba(232,228,217,0.75); }
header.nav:not(.scrolled) .lang-sw a.active { color: var(--sand); }
@media (max-width: 900px) {
  .lang-sw { margin-left: auto; margin-right: 14px; }
}

/* =========================================================
   SYSTEMS MIND — interactive deep dives
   ========================================================= */
.mind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.mind-card {
  text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; cursor: pointer; font-family: var(--font-body); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.mind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--forest); }
.mind-card.active { border-color: var(--forest); box-shadow: var(--shadow); }
.mind-card.active::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--forest); }
.mind-card .m-ic { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.mind-card h4 { font-size: 1.08rem; margin-bottom: 4px; color: var(--ink); }
.mind-card p { font-size: 0.85rem; color: var(--muted); }
.mind-card .m-more { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: var(--forest); transition: letter-spacing 0.25s var(--ease); }
.mind-card:hover .m-more { letter-spacing: 0.06em; }

.mind-panel {
  margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px; position: relative;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 38px; align-items: center;
  animation: panelin 0.5s var(--ease);
}
@keyframes panelin { from { opacity: 0; transform: translateY(18px); } }
.mind-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.15rem;
  cursor: pointer; line-height: 1; transition: 0.2s;
}
.mind-close:hover { background: var(--ink); color: var(--sand); }
.mind-viz svg { width: 100%; height: auto; display: block; }
.mind-story h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 14px; }
.mind-story p { font-size: 0.96rem; color: #33403f; margin-bottom: 12px; }
.mind-story .m-key {
  margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--accent-2);
  background: var(--bg); border-radius: 0 10px 10px 0;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--forest-dark);
}

/* diagram draw-in animations */
.mind-viz .st { stroke-dasharray: 900; stroke-dashoffset: 900; animation: ddraw 1.3s ease forwards; }
.mind-viz .fd { opacity: 0; animation: dfade 0.6s ease forwards; }
@keyframes ddraw { to { stroke-dashoffset: 0; } }
@keyframes dfade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mind-viz .st { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .mind-viz .fd { opacity: 1; animation: none; }
}

@media (max-width: 900px) {
  .mind-grid { grid-template-columns: 1fr 1fr; }
  .mind-panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
}
@media (max-width: 540px) {
  .mind-grid { grid-template-columns: 1fr; }
}
