:root {
  --bg: #071611;
  --surface: #0d2119;
  --surface-2: #102b20;
  --text: #eff8f2;
  --muted: #9fb5a8;
  --line: rgba(211, 239, 222, .15);
  --accent: #c8f06a;
  --accent-2: #54d6a1;
  --header: rgba(7, 22, 17, .78);
  --shadow: 0 30px 70px rgba(0, 0, 0, .25);
  --radius: 24px;
  --max: 1180px;
}

[data-theme="light"] {
  --bg: #f1f4ed;
  --surface: #ffffff;
  --surface-2: #e6ede4;
  --text: #10241b;
  --muted: #596d61;
  --line: rgba(16, 36, 27, .14);
  --accent: #8db928;
  --accent-2: #149466;
  --header: rgba(241, 244, 237, .82);
  --shadow: 0 30px 70px rgba(28, 55, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; padding: 10px 14px; background: var(--accent); color: #13200f; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .14; z-index: -1; }
.ambient-one { width: 460px; height: 460px; background: var(--accent); top: -140px; right: -120px; }
.ambient-two { width: 360px; height: 360px; background: var(--accent-2); bottom: 10%; left: -220px; }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1240px, calc(100% - 28px)); margin: 12px auto 0; padding: 12px 16px;
  background: var(--header); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #14210f; font-size: 12px; font-weight: 900; letter-spacing: -.06em; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 8px; }
.text-button, .icon-button { height: 34px; min-width: 34px; border: 1px solid var(--line); color: var(--text); background: transparent; border-radius: 9px; cursor: pointer; }
.text-button { padding-inline: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.icon-button { display: grid; place-items: center; }
.icon-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.hero { min-height: 780px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; padding-block: 86px 100px; }
.eyebrow, .section-index, .case-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-size: clamp(52px, 7vw, 96px); line-height: .95; letter-spacing: -.067em; font-weight: 680; }
.gradient-text { color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); background-clip: text; -webkit-background-clip: text; }
.hero-lede { max-width: 670px; margin-bottom: 36px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #12200e; font-weight: 750; }
.button-secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button-secondary:hover { border-color: var(--muted); }

.hero-panel { position: relative; min-height: 520px; padding: 22px; overflow: hidden; background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; }
.panel-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.signal-map { position: absolute; inset: 52px 20px 110px; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%, -50%); }
.orbit-one { width: 150px; height: 150px; }
.orbit-two { width: 260px; height: 260px; }
.orbit-three { width: 370px; height: 370px; }
.signal-node { position: absolute; display: grid; place-items: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 8px 30px rgba(0,0,0,.14); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 700; }
.node-core { width: 88px; height: 88px; left: 50%; top: 48%; transform: translate(-50%, -50%); background: var(--accent); color: #14210f; border: none; font-size: 22px; }
.node-cloud { width: 62px; height: 62px; left: 5%; top: 22%; }
.node-ai { width: 54px; height: 54px; right: 9%; top: 18%; }
.node-product { width: 72px; height: 72px; right: 2%; bottom: 3%; }
.panel-statement { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; color: var(--muted); }
.marquee-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 32s linear infinite; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.profile, .experience, .work, .contact { padding-block: 140px; }
.section-heading { display: grid; grid-template-columns: .42fr 1fr; gap: 40px; align-items: start; margin-bottom: 74px; }
.section-heading h2, .contact h2 { max-width: 850px; margin-bottom: 0; font-size: clamp(40px, 5.5vw, 70px); line-height: 1.03; letter-spacing: -.055em; font-weight: 620; }
.section-index { margin: 9px 0 0; color: var(--accent-2); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.profile-copy p { color: var(--muted); }
.profile-copy .large-copy { color: var(--text); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.42; letter-spacing: -.02em; }
.principles article { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles article:last-child { border-bottom: 1px solid var(--line); }
.principles article > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.principles h3 { margin-bottom: 4px; font-size: 18px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }

.experience { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: .42fr 1fr; gap: 40px; padding: 38px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; }
.timeline-meta span:last-child { color: var(--accent-2); font-weight: 750; }
.timeline-content h3 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.timeline-content p { max-width: 720px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag-list span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.career-archive { border-top: 1px solid var(--line); }
.career-archive summary { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; color: var(--text); cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
.career-archive summary::-webkit-details-marker { display: none; }
.career-archive[open] summary span:last-child { transform: rotate(45deg); }
.career-archive summary span:last-child { color: var(--accent); font-size: 22px; transition: transform .2s; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 38px; border: 1px solid var(--line); background: var(--line); border-radius: 16px; overflow: hidden; }
.archive-grid article { padding: 24px; background: var(--bg); }
.archive-grid span { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.archive-grid h3 { margin: 12px 0 8px; font-size: 17px; }
.archive-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.work { border-top: 1px solid var(--line); }
.featured-case { position: relative; display: grid; grid-template-columns: 50px 1.1fr .9fr; gap: 34px; min-height: 540px; padding: 34px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case-number { color: var(--accent); font-size: 12px; font-weight: 800; }
.case-copy { padding-top: 36px; }
.case-copy h3 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.case-copy > p:not(.case-kicker) { max-width: 660px; color: var(--muted); font-size: 17px; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-columns h4 { color: var(--accent-2); font-size: 10px; letter-spacing: .12em; }
.case-columns p { margin: 0; color: var(--muted); font-size: 13px; }
.case-visual { display: grid; place-items: center; min-height: 420px; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 55%); }
.device { width: 250px; padding: 11px 12px 20px; transform: rotate(4deg); border: 2px solid color-mix(in srgb, var(--text) 58%, transparent); border-radius: 22px; background: #eaf0e6; color: #162219; box-shadow: 22px 28px 70px rgba(0,0,0,.3); }
.device-bar { display: flex; justify-content: space-between; padding: 2px 5px 12px; font-size: 8px; }
.device-bar span:first-child { width: 36px; height: 5px; border-radius: 10px; background: #162219; opacity: .3; }
.device-greeting { padding: 24px 15px; border-radius: 12px; background: #dce7d7; font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.device-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: #c8f06a; font-size: 26px; }
.device-grid span:nth-child(2) { background: #79d6ac; }
.device-grid span:nth-child(3) { background: #f2d777; }
.device-grid span:nth-child(4) { background: #bfd2f2; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.capability { min-height: 310px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.capability-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 60px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.capability h3 { margin: 8px 0 12px; font-size: 24px; letter-spacing: -.03em; }
.capability > p:last-child { color: var(--muted); font-size: 14px; }

.contact { border-top: 1px solid var(--line); }
.contact-content { max-width: 950px; margin: 70px auto 0; text-align: center; }
.contact-content h2 { margin-inline: auto; }
.contact-content > p { max-width: 620px; margin: 26px auto 34px; color: var(--muted); font-size: 18px; }
.contact-actions { justify-content: center; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; min-height: auto; padding-top: 100px; }
  .hero-panel { min-height: 450px; }
  .section-heading, .timeline-item { grid-template-columns: 1fr; gap: 18px; }
  .profile-grid { grid-template-columns: 1fr; gap: 56px; }
  .featured-case { grid-template-columns: 36px 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .case-visual { grid-column: 1 / -1; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: auto; }
  .capability-icon { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .section-shell { width: min(100% - 28px, var(--max)); }
  .site-header { width: calc(100% - 16px); margin-top: 8px; }
  .brand-name { display: none; }
  .hero { padding-block: 76px 72px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-actions .button { width: 100%; }
  .hero-panel { min-height: 390px; }
  .orbit-three { width: 310px; height: 310px; }
  .profile, .experience, .work, .contact { padding-block: 92px; }
  .section-heading { margin-bottom: 52px; }
  .featured-case { display: block; padding: 24px; }
  .case-copy { padding-top: 26px; }
  .case-columns { grid-template-columns: 1fr; }
  .case-visual { min-height: 360px; margin-top: 28px; }
  .device { width: 218px; }
  .site-footer { flex-wrap: wrap; gap: 12px; }
  .site-footer p:nth-child(2) { display: none; }
}

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

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --text: #111; --muted: #444; --line: #ddd; --accent: #6e911d; --accent-2: #176c4d; }
  .site-header, .ambient, .marquee, .hero-panel, .case-visual, .contact-actions, .site-footer { display: none !important; }
  .hero { min-height: auto; display: block; padding-block: 30px; }
  .profile, .experience, .work, .contact { padding-block: 36px; }
  .section-heading { margin-bottom: 28px; }
  .featured-case { display: block; min-height: auto; padding: 22px; }
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .capability { min-height: auto; }
  .capability-icon { margin-bottom: 14px; }
  .reveal { opacity: 1; transform: none; }
}
