/* Kadryon Studios — monochrome, editorial engineering system */
:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111113;
  --surface-raised: #171719;
  --surface-hover: #202022;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.22);
  --accent: #fff;
  --nav-bg: rgba(12,12,12,.84);
  --aura: #171717;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  --spring: cubic-bezier(.32,.72,0,1);
  --page-progress: 0;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #f4f4f4;
  --surface-raised: #fafafa;
  --surface-hover: #eaeaea;
  --text: #111;
  --muted: #626267;
  --line: rgba(0,0,0,.13);
  --line-strong: rgba(0,0,0,.22);
  --accent: #111;
  --nav-bg: rgba(255,255,255,.84);
  --aura: #ededed;
  --shadow: 0 24px 70px rgba(0,0,0,.09);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg); }
body { position: relative; isolation: isolate; min-width: 320px; margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .35s ease,color .35s ease; }
body::before { position: fixed; z-index: 0; inset: 0; pointer-events: none; content: ""; background: radial-gradient(ellipse 80% 46% at 50% 0%,var(--aura),transparent 78%); opacity: .8; }
::selection { color: var(--bg); background: var(--text); }
a { color: inherit; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1080px,calc(100% - 48px)); margin-inline: auto; }
main,footer { position: relative; z-index: 1; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 10px 15px; transform: translateY(-150%); border-radius: 999px; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; z-index: 120; top: 0; left: 0; width: calc(var(--page-progress)*100%); height: 2px; background: var(--text); transform-origin: left; pointer-events: none; }

/* Floating glass navigation */
.site-header { position: fixed; z-index: 100; top: 14px; right: 0; left: 0; width: min(calc(100% - 28px),1120px); margin-inline: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); transition: background .3s ease,border-color .3s ease,box-shadow .3s ease; }
.site-header .nav-wrap { width: 100%; max-width: none; margin: 0; }
.site-header.is-scrolled { box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.nav-wrap { display: flex; width: 100%; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px 8px 16px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.brand span { display: inline-flex; gap: 4px; }
.brand b { color: var(--muted); font-weight: 500; }
.brand-logo { display: block; flex: none; object-fit: cover; }
.brand-logo-round { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }
.brand-logo-square { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.primary-nav a { position: relative; padding: 9px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 550; transition: color .2s ease,background .2s ease,transform .25s var(--spring); }
.primary-nav a:hover,.primary-nav a[aria-current="location"] { color: var(--text); background: var(--line); }
.primary-nav a:hover { transform: translateY(-1px); }
.theme-toggle,.menu-toggle { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: transform .25s var(--spring),background .2s ease,border-color .2s ease; }
.theme-toggle { font-size: 14px; }
.theme-toggle:hover { transform: rotate(12deg); background: var(--surface-hover); }
.menu-toggle { display: none; position: relative; z-index: 125; padding: 0; }
.menu-toggle span { position: absolute; width: 15px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--spring),top .3s var(--spring); }
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 21px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; transition: transform .25s var(--spring),background .2s ease,color .2s ease,border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button-dark { border-color: var(--text); background: var(--text); color: var(--bg); }
.button-dark:hover { border-color: var(--muted); background: var(--muted); }
.button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-outline:hover { border-color: var(--text); background: var(--surface-hover); }
.nav-cta { min-height: 38px; padding-inline: 15px; font-size: 11px; }

/* Shared section language */
.section { padding: 100px 0; scroll-margin-top: 90px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--line); }
.section-heading h2,.skills-intro h2,.contact-copy h2 { max-width: 720px; margin: 0; font-size: clamp(38px,6vw,72px); font-weight: 650; line-height: .99; letter-spacing: -.065em; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.heading-note { max-width: 310px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }

/* Home hero: quiet, oversized, editorial */
.hero { position: relative; display: flex; min-height: min(920px,100svh); flex-direction: column; justify-content: center; padding: 122px 0 46px; }
.hero-grid { display: flex; width: min(950px,calc(100% - 48px)); flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-copy { display: flex; max-width: 920px; flex-direction: column; align-items: center; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 25px; }
.hero h1,.portfolio-heading h1 { max-width: 13ch; margin: 0 auto 22px; font-size: clamp(46px,8.2vw,106px); font-weight: 680; line-height: .98; letter-spacing: -.075em; }
.hero h1 span { display: block; color: var(--muted); }
.hero-lead { max-width: 47ch; margin: 0 auto; color: var(--muted); font-size: clamp(16px,2vw,20px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 27px; }
.hero-actions .button { min-height: 48px; padding-inline: 23px; font-size: 13px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 13px; margin-top: 23px; color: var(--muted); font: 10px var(--mono); }
.hero-meta span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.meta-divider { width: 1px; height: 13px; background: var(--line-strong); }
.hero-visual { position: relative; }
.hero-logo-card { display: flex; width: 100%; flex-direction: column; align-items: center; order: -1; border: 0; background: transparent; }
.visual-top,.visual-bottom { display: none; }
.hero-logo-stage { position: relative; display: grid; width: 152px; height: 152px; place-items: center; }
.hero-logo { position: relative; z-index: 1; display: block; width: 126px; height: 126px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); animation: logo-enter .85s var(--spring) both; }
.logo-orbit { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; animation: orbit-enter 1s var(--spring) both; }
.orbit-two { inset: 12px; opacity: .55; animation-delay: .08s; }
@keyframes logo-enter { from { opacity: 0; transform: scale(.88) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes orbit-enter { from { opacity: 0; transform: scale(.8); } to { opacity: .7; transform: none; } }
.hero-foot { display: flex; width: min(950px,calc(100% - 48px)); justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 27px; border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); letter-spacing: .06em; }

/* About */
.about { border-top: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.72fr); align-items: start; gap: clamp(42px,8vw,110px); }
.about-copy .section-heading h2 { max-width: 670px; }
.about-body { max-width: 660px; padding-top: 24px; color: var(--muted); }
.about-body p { margin: 0 0 15px; }
.about-body .large-copy { color: var(--text); font-size: 17px; line-height: 1.8; }
.large-copy strong { color: var(--text); font-weight: 650; }
.about-signature { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--text); }
.signature-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); font: 11px var(--mono); }
.about-signature span:last-child { display: grid; gap: 1px; }
.about-signature small { color: var(--muted); font-size: 11px; }
.about-profile-link { display: flex; width: fit-content; margin: 28px 0 0; clear: both; }
.about-summary { padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.about-summary .eyebrow { margin-bottom: 7px; }
.summary-row { display: grid; gap: 5px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.summary-row span { color: var(--muted); font: 9px var(--mono); letter-spacing: .07em; }
.summary-row b { font-size: 14px; font-weight: 550; }
.summary-foot { display: flex; align-items: center; gap: 9px; padding-top: 18px; color: var(--muted); font-size: 11px; }
.summary-foot i { color: var(--text); }

/* Service bento tiles */
.services { border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.service-card { position: relative; display: flex; min-height: 255px; flex-direction: column; align-items: flex-start; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); transition: transform .45s var(--spring),background .3s ease,border-color .3s ease; }
.service-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-raised); }
.card-index { align-self: flex-end; color: var(--muted); font: 10px var(--mono); }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 15px; }
.service-card h3 { max-width: 17ch; margin: 0 0 9px; font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.service-card>a { display: grid; width: 30px; height: 30px; place-items: center; align-self: flex-end; margin-top: auto; padding-top: 10px; color: var(--text); text-decoration: none; transition: transform .25s var(--spring); }
.service-card>a:hover { transform: translateX(4px); }

/* Skills */
.skills { border-top: 1px solid var(--line); }
.skills-layout { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(400px,1.2fr); align-items: start; gap: clamp(50px,10vw,140px); }
.skills-intro h2 { font-size: clamp(44px,6vw,76px); }
.skills-intro>p:not(.eyebrow) { max-width: 38ch; margin: 22px 0 0; color: var(--muted); }
.skill-note { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: var(--muted); font-size: 11px; }
.skill-note i { color: var(--text); }
.skill-list { display: grid; gap: 24px; padding-top: 8px; }
.skill-item>div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; font-size: 12px; font-weight: 550; }
.skill-item>div:first-child span:last-child { color: var(--muted); font: 11px var(--mono); }
.progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--text); transition: width 1.05s var(--spring); }
@supports (animation-timeline: view()) {
  .progress span { animation: skill-fill linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes skill-fill { from { width: 0; } to { width: var(--level); } }
}

/* Portfolio tiles */
.portfolio-page { min-height: 75vh; padding-top: 160px; }
.portfolio-heading { align-items: end; margin-bottom: 38px; }
.portfolio-heading h1 { max-width: 12ch; margin: 0; font-size: clamp(48px,8vw,88px); }
.portfolio-heading .heading-note { max-width: 34ch; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); transition: transform .45s var(--spring),border-color .3s ease,background .3s ease; }
.project-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-raised); }
.project-art { position: relative; display: grid; height: 205px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(145deg,var(--surface-raised),var(--bg)); color: var(--text); }
.project-art::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 50% 48%,rgba(255,255,255,.06),transparent 65%); }
.art-label,.art-caption { position: absolute; z-index: 1; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.art-label { top: 17px; left: 18px; }
.art-caption { right: 18px; bottom: 16px; }
.server-stack { position: relative; display: grid; width: 136px; gap: 8px; transform: perspective(400px) rotateX(8deg); }
.server-stack span { height: 33px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 7px 18px rgba(0,0,0,.15); }
.server-stack span::after { display: block; width: 5px; height: 5px; margin: 13px 0 0 13px; border-radius: 50%; background: var(--text); content: ""; }
.code-window { position: relative; display: flex; width: 154px; height: 106px; align-items: flex-start; gap: 5px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.code-window span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.code-window b { position: absolute; top: 42px; left: 0; width: 100%; color: var(--text); font: 24px var(--mono); text-align: center; }
.grid-cube { display: grid; width: 105px; height: 105px; place-items: center; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--surface); color: var(--text); font-size: 35px; transform: rotate(-8deg); transition: transform .45s var(--spring); }
.project-card:hover .grid-cube { transform: rotate(0) scale(1.04); }
.project-info { padding: 22px; }
.project-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.project-title .eyebrow { margin-bottom: 8px; font-size: 9px; }
.project-title h3 { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.04em; }
.project-title>a { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); text-decoration: none; transition: background .2s ease,transform .25s var(--spring); }
.project-title>a:hover { transform: translate(2px,-2px); background: var(--surface-hover); }
.project-info>p { min-height: 61px; margin: 15px 0 18px; color: var(--muted); font-size: 12px; }
.tags,.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span,.profile-tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 9px var(--mono); }
.portfolio-note { margin: 25px 0 0; color: var(--muted); font-size: 12px; }
.portfolio-note a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* Contact and footer */
.contact { border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); align-items: start; gap: clamp(48px,10vw,130px); }
.contact-copy h2 { max-width: 590px; }
.contact-copy>p:not(.eyebrow) { max-width: 42ch; margin: 20px 0; color: var(--muted); }
.email-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.contact-details { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); }
.contact-row { display: flex; min-height: 78px; align-items: center; gap: 13px; padding: 14px 18px; color: var(--text); text-decoration: none; transition: background .25s ease; }
a.contact-row:hover { background: var(--surface-hover); }
.contact-row+.contact-row { border-top: 1px solid var(--line); }
.contact-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); }
.contact-row>span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.contact-row small { color: var(--muted); font: 9px var(--mono); letter-spacing: .07em; }
.contact-row b { font-size: 12px; font-weight: 550; }
.row-arrow { margin-left: auto; color: var(--muted); font-size: 11px; }
.site-footer { padding: 30px 0 38px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { color: var(--text); font-size: 11px; }
.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-socials a { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); text-decoration: none; transition: color .2s ease,border-color .2s ease,background .2s ease; }
.footer-socials a:hover { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.footer-brand .brand-logo { width: 34px; height: 34px; border-radius: 50%; }

/* Profile page */
.profile-page { padding-top: 122px; }
.profile-hero { padding: 50px 0 38px; border-bottom: 1px solid var(--line); }
.profile-hero>.container>.eyebrow { margin-bottom: 26px; }
.profile-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.profile-heading h1 { margin: 18px 0 5px; font-size: clamp(58px,10vw,112px); font-weight: 670; line-height: .95; letter-spacing: -.075em; }
.profile-identity { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 9px var(--mono); letter-spacing: .06em; }
.profile-identity img { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.profile-role { margin: 0; color: var(--muted); font-size: 16px; }
.language-switch { display: flex; flex: none; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-button { padding: 9px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; transition: background .2s ease,color .2s ease; }
.language-button.is-active { background: var(--text); color: var(--bg); }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 11px; }
.profile-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color .2s ease; }
.profile-links a:hover { color: var(--text); }
.profile-content { padding-top: 72px; }
.profile-overview { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px,8vw,100px); align-items: start; }
.profile-overview h2 { max-width: 570px; margin: 0; font-size: clamp(31px,4.4vw,52px); font-weight: 630; line-height: 1.05; letter-spacing: -.06em; }
.profile-bio { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; }
.profile-facts { display: grid; grid-template-columns: repeat(3,1fr); margin: 37px 0 66px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-facts article { display: grid; gap: 6px; padding: 20px 23px; }
.profile-facts article+article { border-left: 1px solid var(--line); }
.profile-facts article span,.profile-block>.eyebrow { color: var(--muted); font: 9px var(--mono); letter-spacing: .07em; }
.profile-facts article b { font-size: 12px; font-weight: 550; }
.profile-columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: clamp(38px,8vw,100px); }
.profile-block { margin-bottom: 43px; }
.profile-block>.eyebrow { margin: 0 0 12px; }
.profile-block h2 { margin: 0 0 15px; font-size: clamp(22px,3vw,30px); font-weight: 620; line-height: 1.15; letter-spacing: -.045em; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 13px; padding: 19px 0 20px; border-top: 1px solid var(--line); }
.timeline-marker { width: 8px; height: 8px; margin-top: 7px; border: 1px solid var(--text); border-radius: 50%; }
.timeline-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.timeline-title h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.timeline-title>span { color: var(--muted); font: 9px var(--mono); white-space: nowrap; }
.timeline-place { margin: 3px 0 10px; color: var(--muted); font-size: 11px; }
.timeline-entry ul { display: grid; gap: 7px; margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.profile-side { padding-left: 25px; border-left: 1px solid var(--line); }
.profile-muted { margin: 0; color: var(--muted); font-size: 12px; }
.profile-tags { margin-top: 17px; }
.profile-detail { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.profile-detail span { color: var(--muted); }
.profile-detail b { text-align: right; font-weight: 550; }
.profile-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-contact p { margin: 0; color: var(--muted); }

/* Motion system */
.js-motion .reveal { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity .75s var(--spring),transform .75s var(--spring),filter .75s var(--spring); transition-delay: var(--reveal-delay,0ms); }
.js-motion .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.hero-copy>.eyebrow,.hero-copy>h1,.hero-copy>.hero-lead,.hero-copy>.hero-actions,.hero-copy>.hero-meta { animation: rise-in .8s var(--spring) both; }
.hero-copy>.eyebrow { animation-delay: .04s; }
.hero-copy>h1 { animation-delay: .12s; }
.hero-copy>.hero-lead { animation-delay: .2s; }
.hero-copy>.hero-actions { animation-delay: .28s; }
.hero-copy>.hero-meta { animation-delay: .36s; }
.hero-foot { animation: rise-in .8s .42s var(--spring) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; filter: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .container { width: min(100% - 40px,760px); }
  .site-header { width: min(calc(100% - 24px),820px); }
  .nav-wrap { gap: 8px; }
  .primary-nav a { padding-inline: 8px; font-size: 10px; }
  .nav-cta { padding-inline: 12px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-card { min-height: 225px; }
  .about-layout,.contact-layout { grid-template-columns: minmax(0,1fr) minmax(250px,.75fr); gap: 38px; }
  .skills-layout { grid-template-columns: minmax(230px,.75fr) minmax(320px,1.25fr); gap: 45px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; }
  .project-card:last-child .project-art { height: 100%; min-height: 220px; border-right: 1px solid var(--line); border-bottom: 0; }
}

/* Mobile: full-height drawer enters from the right */
@media (max-width: 740px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 36px); }
  .site-header { top: 10px; width: calc(100% - 20px); border-radius: 999px; }
  .nav-wrap { min-height: 56px; padding: 7px 8px 7px 13px; }
  .brand { font-size: 12px; }
  .brand-logo-round { width: 31px; height: 31px; }
  .menu-toggle { display: grid; margin-left: auto; }
  .theme-toggle { width: 36px; height: 36px; }
  .nav-cta { display: none; }
  .primary-nav { position: absolute; z-index: 110; top: -10px; right: auto; left: 50%; display: flex; width: 100vw; height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 94px clamp(28px,10vw,70px) 40px; overflow-y: auto; border: 0; border-radius: 0; background: var(--bg); opacity: 0; visibility: hidden; transform: translate(-50%,0) translateX(100%); transition: transform .48s var(--spring),opacity .3s ease,visibility .48s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translate(-50%,0); }
  .primary-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); font-size: clamp(25px,8vw,38px); font-weight: 600; letter-spacing: -.05em; }
  .primary-nav a:hover,.primary-nav a[aria-current="location"] { background: transparent; }
  .primary-nav a::after { display: none; }
  body.menu-open { overflow: hidden; }
  .hero { min-height: min(850px,100svh); padding: 105px 0 31px; }
  .hero-grid,.hero-foot { width: calc(100% - 36px); }
  .hero-grid { gap: 12px; }
  .hero-logo-stage { width: 126px; height: 126px; }
  .hero-logo { width: 104px; height: 104px; }
  .hero h1 { max-width: 12ch; font-size: clamp(42px,10vw,76px); }
  .hero-copy .eyebrow { font-size: 8px; }
  .hero-lead { max-width: 40ch; font-size: 15px; }
  .hero-meta { font-size: 9px; }
  .section { padding: 76px 0; }
  .about-layout,.contact-layout,.skills-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .about-summary { max-width: 600px; }
  .skills-layout { gap: 35px; }
  .skills-intro h2 { font-size: clamp(44px,11vw,68px); }
  .portfolio-page { padding-top: 120px; }
  .portfolio-heading { display: block; }
  .portfolio-heading .heading-note { margin-top: 15px; }
  .project-grid { grid-template-columns: minmax(0,1fr); }
  .project-card:last-child { display: block; grid-column: auto; }
  .project-card:last-child .project-art { height: 205px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-page { padding-top: 95px; }
  .profile-hero { padding: 38px 0 28px; }
  .profile-hero-row { align-items: flex-start; flex-direction: column; }
  .profile-heading h1 { font-size: clamp(57px,15vw,92px); }
  .profile-links { gap: 12px 17px; }
  .profile-content { padding-top: 50px; }
  .profile-overview,.profile-columns { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .profile-facts { margin: 30px 0 48px; }
  .profile-facts article { padding: 15px 12px; }
  .profile-facts article b { font-size: 10px; }
  .profile-side { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .profile-contact { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero { min-height: max(690px,100svh); }
  .hero-grid,.hero-foot { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(40px,11.5vw,58px); }
  .hero-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-foot { font-size: 8px; }
  .section { padding: 64px 0; }
  .section-heading h2,.contact-copy h2 { font-size: clamp(37px,10vw,49px); }
  .about-body { font-size: 14px; }
  .about-body .large-copy { font-size: 15px; }
  .service-grid { grid-template-columns: minmax(0,1fr); }
  .service-card { min-height: 210px; }
  .project-art { height: 190px; }
  .profile-overview h2 { font-size: 34px; }
  .profile-facts { grid-template-columns: minmax(0,1fr); }
  .profile-facts article+article { border-top: 1px solid var(--line); border-left: 0; }
  .timeline-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .footer-inner>span:nth-child(2) { display: none; }
  .footer-inner>span:last-child { width: 100%; }
}
