:root {
  --ink: #2e2e77;
  --body: #62728a;
  --muted: #7f8ca0;
  --accent: #7579e7;
  --accent-soft: #f0f1ff;
  --line: #dce4ed;
  --paper: #f7f9fb;
  --white: #ffffff;
  --max: 1180px;
  --gutter: 1.25rem;
  --serifless: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: "Plus Jakarta Sans", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { min-height: 100vh; overflow: clip; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; padding: 1rem max(var(--gutter), calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(220, 228, 237, 0.9); background: rgba(247, 249, 251, 0.92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand-mark { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid #d9dcff; border-radius: 50%; background: #eef0ff; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; font-weight: 600; }
.brand-text { display: grid; gap: 0.05rem; line-height: 1.2; }
.brand-text strong { font-size: 0.94rem; }
.brand-text small { color: var(--muted); font-size: 0.7rem; }
.topnav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.topnav > a, .nav-dropdown-trigger { position: relative; padding: 0.45rem 0; }
.topnav > a::after, .nav-dropdown-trigger::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.topnav > a:hover::after, .nav-dropdown-trigger:hover::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger span { display: inline-block; margin-left: 0.2rem; color: var(--accent); transition: transform 180ms ease; }
.nav-dropdown::after { position: absolute; top: 100%; right: 0; left: 0; height: 0.8rem; content: ""; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 0.1rem); right: 0; display: grid; min-width: 17rem; gap: 0.1rem; padding: 0.65rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 34px rgba(46, 46, 119, 0.1); opacity: 0; pointer-events: none; transform: translateY(-0.35rem); transition: opacity 180ms ease, transform 180ms ease; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown:hover .nav-dropdown-trigger span, .nav-dropdown:focus-within .nav-dropdown-trigger span { transform: rotate(180deg); }
.nav-dropdown-menu a { padding: 0.45rem 0.55rem; color: var(--ink); font-size: 0.72rem; line-height: 1.35; }
.nav-dropdown-menu a:hover { background: var(--accent-soft); color: #626299; }
.nav-menu-label { padding: 0.35rem 0.55rem 0.45rem; border-bottom: 1px solid var(--line); color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.hero { padding-top: clamp(5rem, 11vw, 9rem); }
.eyebrow { margin: 0; color: #7579e7; font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr); align-items: end; gap: clamp(2rem, 8vw, 8rem); margin-top: 1.15rem; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serifless); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 5.2vw, 5.5rem); }
h2 { max-width: 40rem; font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.hero-summary { max-width: 43rem; margin: 1.5rem 0 0; color: #7579e7; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: 0.7rem 1rem; border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--white); }
.button-primary:hover { border-color: #626299; background: #626299; }
.button-secondary:hover { border-color: #7579e7; background: #f0f1ff; color: var(--ink); }
.hero-note { max-width: 18rem; padding-top: 1rem; border-top: 2px solid var(--accent); }
.hero-note p:last-child { margin: 0.7rem 0 0; font-size: 0.9rem; }
.section-intro { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-intro h2 { max-width: 47rem; }
.selected-work { border-top: 1px solid var(--line); }
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); transition: padding 180ms ease, color 180ms ease; }
.work-row:hover { padding-right: 0.5rem; padding-left: 0.5rem; background: rgba(255,255,255,0.55); color: var(--ink); }
.work-row-index { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.05em; }
.work-row-main { display: grid; gap: 0.2rem; }
.work-row-main strong { color: var(--ink); font-family: var(--serifless); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.025em; }
.work-row-main span { max-width: 55rem; font-size: 0.86rem; }
.work-row-arrow { color: #7579e7; font-size: 1.2rem; }
.experience-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; max-width: 52rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.experience-summary p { max-width: 42rem; margin: 0; }
.text-link, .back-link { color: #626299; font-size: 0.8rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(117,121,231,0.45); text-underline-offset: 0.25rem; }
.about { border-top: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr); gap: clamp(2rem, 7vw, 7rem); }
.about-layout p { max-width: 48rem; margin: 0 0 1.1rem; }
.about-facts { display: grid; align-content: start; gap: 1rem; }
.about-facts div { display: grid; gap: 0.15rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.about-facts span { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.about-facts strong { color: var(--ink); font-family: var(--serifless); font-size: 1.05rem; }
.contact { border-top: 1px solid var(--line); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.contact-line a { color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.contact-line a:hover { color: #626299; }
.footer { display: flex; justify-content: space-between; gap: 1rem; width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin: 0 auto; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--ink); }
.company-hero { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.company-hero .back-link { display: inline-block; margin-bottom: 2rem; }
.company-hero h1 { max-width: 15ch; margin-top: 0.8rem; }
.company-summary { max-width: 46rem; margin: 1.4rem 0 0; color: #7579e7; font-size: 1.05rem; }
.company-cases { padding-top: 0; }
.case-project { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.case-project-heading { display: grid; gap: 0.5rem; margin-bottom: 2rem; }
.case-project-heading h2 { max-width: 45rem; }
.case-project-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.6fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.case-project-layout--full { grid-template-columns: minmax(0, 1fr); }
.case-project-copy { max-width: 44rem; }
.case-project-copy section { padding: 1rem 0; border-top: 1px solid var(--line); }
.case-project-copy section:first-child { padding-top: 0; border-top: 0; }
.case-project-copy h3 { margin-bottom: 0.35rem; color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.case-project-copy p { margin: 0; font-size: 0.92rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; margin: 0; padding: 0; list-style: none; }
.tech-list li { color: var(--ink); font-size: 0.85rem; }
.tech-list li:not(:last-child)::after { margin-left: 0.8rem; color: var(--accent); content: "/"; }
.case-project-image { position: sticky; top: 7rem; margin: 0; padding: 0.75rem; border: 1px solid var(--line); background: var(--white); }
.case-project-image img { display: block; width: 100%; max-height: 25rem; object-fit: contain; background: #f2f5f8; }
.case-project-image figcaption { padding: 0.7rem 0 0.1rem; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; line-height: 1.45; }
.case-back-link { display: inline-block; margin-top: 1.3rem; }
.company-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; padding-top: 0; }
@media (max-width: 800px) { .topbar { align-items: flex-start; flex-direction: column; gap: 0.75rem; } .topnav { width: 100%; justify-content: space-between; gap: 0.6rem; font-size: 0.74rem; } .nav-dropdown-menu { left: 0; right: auto; } .hero-grid, .about-layout, .case-project-layout { grid-template-columns: 1fr; } .hero-note { max-width: 32rem; } .case-project-image { position: static; max-width: 32rem; } }
@media (max-width: 560px) { .topnav { flex-wrap: wrap; justify-content: flex-start; } .nav-dropdown-menu { position: fixed; top: 7rem; left: var(--gutter); right: var(--gutter); width: auto; } h1 { font-size: clamp(2.25rem, 12vw, 3.7rem); } .work-row { grid-template-columns: 1fr auto; gap: 0.8rem; } .work-row-index { grid-column: 1 / -1; } .experience-summary { grid-template-columns: 1fr; } .footer { align-items: flex-start; flex-direction: column; } }
.case-project-layout--full { grid-template-columns: minmax(0, 1fr); }
.phone-button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.9rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--white) !important; }
.phone-button svg { width: 1rem; height: 1rem; fill: currentColor; }
.phone-button:hover { border-color: #626299; background: #626299; color: var(--white) !important; }