/* Fineas Havran — Portfolio. CSS puro, diseño mobile-first y sin dependencias externas. */
:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --bg-2: #101625;
  --surface: #151c2c;
  --surface-2: #1a2437;
  --text: #f1f4fb;
  --muted: #a4b0c5;
  --subtle: #8291ac;
  --border: #303b50;
  --border-soft: #273246;
  --blue: #709eff;
  --blue-strong: #5689ff;
  --violet: #ad93ff;
  --selection: #b8cafa;
  --font-main: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --page-width: 1240px;
  --easing: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; font-family: var(--font-main); font-size: 16px; line-height: 1.65; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
::selection { color: #09101e; background: var(--selection); }
img, svg { max-width: 100%; }
img { display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8faeff; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; }
.container { width: min(var(--page-width), calc(100% - 72px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; background: #b5caff; color: #111626; padding: 12px 18px; font-weight: 700; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.site-frame { z-index: 101; position: fixed; inset: 0; border: 8px solid var(--bg); pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(120,143,180,.18); background: rgba(11,15,25,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 89px; }
.brand { display: inline-flex; gap: 17px; align-items: center; flex: none; }
.brand-symbol { font: 900 30px/.9 var(--font-display); letter-spacing: -4px; }
.brand-symbol span { font-weight: 550; }
.brand-symbol b, .footer-brand span { color: var(--blue); }
.brand-separator { height: 31px; width: 1px; background: var(--border); }
.brand-label { font: 750 9px/1.35 var(--font-main); letter-spacing: 2px; color: #c9d4e6; }
.site-nav { display: flex; gap: clamp(15px,2.1vw,31px); align-items: center; margin-left: auto; }
.nav-link { position: relative; padding: 10px 0; color: #a7b5cd; font-size: 12px; font-weight: 650; transition: color .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #f5f7fc; }
.nav-link::after { position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--blue); content: ''; transition: right .2s var(--easing); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-cv { display: inline-flex; align-items: center; gap: 14px; border: 1px solid #657ea5; border-radius: 7px; padding: 9px 13px; font-size: 11px; font-weight: 700; }
.nav-cv:hover { background: var(--blue); color: #0b0f19; }
.menu-toggle { display: none; width: 45px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 8px; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; transition: transform .24s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Shared editorial language */
.section { padding: 128px 0; scroll-margin-top: 80px; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--border); padding-top: 23px; margin-bottom: 76px; }
.section-number, .section-sidenote { margin: 0; font: 760 11px/1.5 var(--font-mono); letter-spacing: .09em; }
.section-number { color: var(--blue); }
.section-number span { color: #72809a; margin: 0 10px; }
.section-sidenote { color: var(--subtle); text-align: right; }
.section h2 { font-family: var(--font-display); font-size: clamp(46px,5.6vw,85px); font-weight: 790; line-height: 1.02; letter-spacing: -.07em; }
.section h2 em { color: var(--blue); font-weight: 670; font-style: normal; }
.section-split-title { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 48px; }
.section-split-title h2 { margin: 0; }
.section-split-title > p { margin: 0 0 6px; max-width: 352px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.small-meta { color: var(--blue); font: 650 10px/1.5 var(--font-mono); letter-spacing: .12em; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 32px; padding: 14px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 740; transition: transform .22s var(--easing), background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button-primary { background: #739fff; border-color: #739fff; color: #081022; }
.button-primary:hover { background: #aac5ff; border-color: #aac5ff; }
.button-outline { border-color: #4d5b73; background: rgba(19,28,44,.15); color: var(--text); }
.button-outline:hover { border-color: var(--blue); background: rgba(86,137,255,.09); }
.button-arrow { font-size: 20px; font-weight: 450; line-height: 1; }

/* Hero */
.hero { position: relative; min-height: min(820px, calc(100svh - 89px)); overflow: hidden; background: radial-gradient(ellipse 800px 600px at 75% 32%, rgba(70,86,147,.08), transparent 75%), var(--bg); }
.hero::after { content: ''; position: absolute; right: -200px; top: 0; width: 55vw; height: 760px; background: radial-gradient(circle, rgba(78,110,202,.1), transparent 70%); pointer-events: none; }
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-backdrop span { position: absolute; top: 20px; left: 53%; font-family: var(--font-display); font-weight: 900; line-height: .9; font-size: min(42vw, 640px); letter-spacing: -.13em; color: transparent; -webkit-text-stroke: 1px rgba(118,141,182,.085); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.09fr .91fr; gap: 52px; align-items: center; padding-top: 91px; padding-bottom: 69px; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 41px; color: #b1c7f4; font: 700 10px var(--font-mono); letter-spacing: .13em; }
.eyebrow-line { display: block; width: 29px; height: 2px; background: var(--blue); }
.eyebrow-year { color: #6f7c94; }
.intro-line { margin: 0 0 3px; color: #c5d0df; font-size: clamp(17px,1.5vw,20px); letter-spacing: -.02em; }
.hero h1 { margin: 0 0 23px; font-family: var(--font-display); font-size: clamp(73px,8.7vw,134px); letter-spacing: -.093em; line-height: .93; font-weight: 850; }
.hero h1 > span { color: #d6e2fb; }
.title-dot { color: var(--blue); }
.hero-position { font-size: clamp(15px,1.55vw,20px); color: #eef3ff; font-weight: 650; letter-spacing: -.03em; line-height: 1.5; margin-bottom: 20px; }
.hero-position span { color: var(--blue); padding: 0 7px; }
.hero-description { color: #a9b8cf; max-width: 572px; line-height: 1.8; font-size: 14px; margin-bottom: 31px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-footnotes { display: flex; align-items: center; gap: 12px; margin-top: 68px; color: #8c9bb2; font: 700 10px var(--font-mono); letter-spacing: .02em; }
.footnote-index { color: #b9c7df; }
.footnote-bar { width: 35px; height: 1px; background: #576681; }
.hero-art { position: relative; min-height: 565px; min-width: 0; display: flex; align-items: center; }
.art-grid { position: absolute; inset: 6% -10% 6% 0; background-image: linear-gradient(rgba(121,145,184,.11) 1px,transparent 1px), linear-gradient(90deg,rgba(121,145,184,.11) 1px,transparent 1px); background-size: 43px 43px; mask-image: radial-gradient(ellipse at center,#000 12%,transparent 70%); }
.art-orbit { position: absolute; width: 510px; height: 510px; border: 1px solid rgba(114,142,218,.15); border-radius: 50%; left: 5%; }
.orbit-two { width: 380px; height: 380px; left: 17%; border-color: rgba(173,147,255,.12); }
.art-coordinates { position: absolute; z-index: 1; right: -10px; top: 60px; color: #6d81a2; font: 700 10px/1.8 var(--font-mono); letter-spacing: .09em; text-align: right; }
.editor-window { position: relative; z-index: 2; width: 100%; min-width: 0; margin: 0 14px 0 3px; overflow: hidden; border: 1px solid #41516c; border-radius: 13px; background: #111a2a; box-shadow: 0 35px 82px rgba(0,0,0,.42), 0 0 90px rgba(78,108,210,.09); transform: rotate(2.5deg); }
.editor-toolbar { display: flex; height: 43px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; border-bottom: 1px solid #303f58; background: #1c2940; color: #a8b7ce; font: 700 10px var(--font-mono); }
.editor-dots { display: flex; gap: 6px; }
.editor-dots i { display: block; width: 9px; height: 9px; border-radius: 100%; background: #e97c8d; }
.editor-dots i:nth-child(2) { background: #dfb979; }
.editor-dots i:nth-child(3) { background: #7dccb8; }
.editor-menu { color: #8291a9; letter-spacing: 3px; }
.editor-tab { display: flex; align-items: center; gap: 9px; height: 37px; border-bottom: 1px solid #28354a; padding: 0 17px; color: #d1ddf2; font: 11px var(--font-mono); }
.tab-icon { color: #111625; background: #d4ba74; font: 800 8px var(--font-main); border-radius: 2px; padding: 2px 3px; }
.tab-cross { margin-left: auto; color: #8796ad; }
.editor-code { padding: 22px 16px 22px; color: #b5c6e3; font: 11px/2.25 var(--font-mono); white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.editor-spacer { height: 17px; }
.line-no { display: inline-block; min-width: 39px; color: #637690; user-select: none; }
.token-violet { color: #c2a1fb; }
.token-white { color: #f1f5ff; }
.token-green { color: #94dfc1; }
.token-gold { color: #eacb92; }
.token-comment { color: #7897b7; }
.type-caret { color: #a8c7ff; animation: caret-blink .85s steps(2) infinite; }
.editor-status { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; background: #23416e; color: #d7e7ff; font: 10px var(--font-mono); }
.editor-status span:first-child { display: flex; align-items: center; gap: 8px; }
.editor-status i { width: 7px; height: 7px; border-radius: 50%; background: #7be6cb; }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #e5ebfc; background: #202c43; border: 1px solid #4c6185; border-radius: 8px; font: 700 10px var(--font-mono); white-space: nowrap; box-shadow: 0 15px 35px rgba(0,0,0,.26); }
.chip-top { right: -18px; top: 52px; transform: rotate(-3deg); }
.chip-spark { color: #9fb9ff; font-size: 22px; }
.chip-bottom { bottom: 45px; left: -26px; transform: rotate(-4deg); }
.chip-bottom > span:last-child { margin-left: 9px; color: var(--blue); font-size: 15px; }
.chip-square { width: 8px; height: 8px; background: #81b2ff; }
.hero-bottom { display: flex; align-items: center; gap: 13px; justify-content: space-between; padding-bottom: 25px; position: relative; z-index: 1; border-bottom: 1px solid var(--border-soft); color: #8190a8; font: 750 10px var(--font-mono); letter-spacing: .07em; }
.scroll-arrow { margin-right: auto; font-size: 17px; color: var(--blue); }

/* About */
.about-section { background: #101625; }
.about-grid { display: grid; grid-template-columns: 1fr .88fr; align-items: start; gap: 100px; }
.about-heading h2 { margin: 0; }
.about-mark { position: relative; display: flex; margin-top: 29px; align-items: flex-end; font: 850 77px/.9 var(--font-display); letter-spacing: -.14em; color: #28344b; }
.about-mark span { font-size: 32px; letter-spacing: 0; color: var(--blue); margin-bottom: 3px; margin-left: 20px; }
.about-text .lead { color: #ebf2ff; font-size: clamp(18px,2vw,23px); line-height: 1.6; letter-spacing: -.025em; margin-bottom: 24px; }
.about-text strong { color: #fff; }
.about-text > p:not(.lead) { color: var(--muted); line-height: 1.9; font-size: 15px; max-width: 535px; margin-bottom: 19px; }
.about-details { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 20px; }
.about-details > span { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid #3a4a63; border-radius: 100px; color: #d4dff2; font-size: 11px; }
.detail-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8eb4ff; }
.values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 83px; border: 1px solid var(--border); }
.value-item { padding: 30px 30px 33px; min-height: 220px; }
.value-item + .value-item { border-left: 1px solid var(--border); }
.value-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 35px; color: var(--blue); font: 700 13px var(--font-mono); }
.value-top span:last-child { font-size: 23px; font-weight: 400; }
.value-item h3 { font-size: 19px; margin-bottom: 11px; letter-spacing: -.03em; }
.value-item p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0; }

/* Skills */
.skills-section { background: var(--bg); }
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.skill-group { background: #121a2a; border: 1px solid var(--border); border-radius: 11px; padding: 27px 29px 29px; min-height: 218px; transition: border-color .25s, transform .25s; }
.skill-group:hover { border-color: #637cae; transform: translateY(-3px); }
.skill-header { display: flex; align-items: center; gap: 17px; padding-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.skill-cat-icon { display: grid; place-items: center; width: 55px; height: 55px; flex: none; border-radius: 9px; background: #243654; color: #99b8ff; font: 700 19px var(--font-mono); }
.skill-header h3 { font-size: 23px; letter-spacing: -.04em; margin: 2px 0 0; }
.skill-items { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 22px; }
.skill-tag { display: inline-flex; gap: 9px; align-items: center; border: 1px solid #465873; background: #1b273b; padding: 9px 12px; border-radius: 7px; color: #e4eeff; font-size: 12px; font-weight: 650; }
.skill-logo { display: block; width: 23px; height: 23px; object-fit: contain; flex: none; }
.skill-tag-icon { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border-radius: 4px; padding: 0 3px; background: #2c456c; color: #c5d8ff; font: 800 9px var(--font-mono); }
.skill-empty { color: #9fadbf; font-size: 12px; line-height: 1.7; max-width: 390px; margin: 0; }
.skills-note { display: flex; gap: 15px; align-items: flex-start; margin-top: 26px; padding: 16px 19px; border: 1px solid #33425d; border-radius: 8px; background: rgba(64,90,147,.07); }
.note-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: #0b0f19; border-radius: 50%; background: #8aaefd; font: 800 13px var(--font-main); }
.skills-note p { margin: 0; color: #aebed6; font-size: 12px; line-height: 1.8; }
.skills-note strong { color: #e7edfa; }

/* Projects */
.projects-section { background: #101625; }
.featured-project { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid #34425a; border-radius: 13px; overflow: hidden; background: #111a2a; }
.project-preview { min-width: 0; position: relative; overflow: hidden; background: #111725; min-height: 490px; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--easing); }
.featured-project:hover .project-preview img { transform: scale(1.04); }
.preview-caption { position: absolute; left: 19px; bottom: 19px; border: 1px solid #495d7d; color: #cadcf8; background: rgba(13,22,38,.9); border-radius: 4px; padding: 6px 8px; font: 650 9px var(--font-mono); letter-spacing: .07em; }
.project-content { min-width: 0; padding: 33px clamp(25px,3.5vw,49px) 34px; display: flex; flex-direction: column; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-index { color: #90a4c5; font: 700 10px var(--font-mono); letter-spacing: .08em; }
.status-pill { display: inline-flex; gap: 7px; align-items: center; flex: none; border: 1px solid #5a6385; padding: 5px 10px; border-radius: 50px; color: #d6d9ff; font-size: 10px; }
.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: #c2abff; }
.project-main { margin-top: 65px; }
.project-kind { font: 700 11px var(--font-mono); letter-spacing: .08em; color: var(--blue); margin-bottom: 10px; }
.project-main h3 { font-size: clamp(43px,5vw,72px); letter-spacing: -.08em; margin: 0 0 21px; }
.project-main h3 span { color: var(--blue); }
.project-summary { font-size: 14px; line-height: 1.85; color: #adbbd1; margin-bottom: 23px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0 0 22px; }
.project-tags li { border: 1px solid #465773; color: #bacbe5; padding: 5px 10px; border-radius: 4px; font: 650 10px var(--font-mono); }
.project-details { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 19px; }
.project-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 1px; list-style: none; cursor: pointer; font-weight: 700; color: #d5e4ff; font-size: 12px; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary span { color: var(--blue); font-size: 19px; transition: transform .2s; }
.project-details[open] summary span { transform: rotate(45deg); }
.project-detail-text { padding: 2px 0 15px; }
.project-detail-text p { margin: 0 0 10px; color: #aebcd3; font-size: 12px; line-height: 1.8; }
.project-detail-text strong { color: #edf3ff; }
.project-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; align-items: center; }
.project-action { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #607bae; padding: 9px 13px; border-radius: 6px; color: #dbe8ff; font-size: 11px; font-weight: 750; }
.project-action:hover { background: #2a4167; }
.link-unavailable { color: #96a7c3; font-size: 11px; line-height: 1.7; }
.future-projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; margin-top: 18px; }
.future-project { display: flex; flex-direction: column; justify-content: space-between; min-height: 268px; padding: 24px 27px; background: #131c2e; border: 1px solid var(--border); border-radius: 10px; }
.future-alt { background: #16192b; }
.future-head { display: flex; justify-content: space-between; color: #8c9cba; font: 730 12px var(--font-mono); }
.future-head span:last-child { color: #8297c0; font-size: 20px; }
.future-project h3 { font-size: 23px; letter-spacing: -.05em; margin: 9px 0 7px; }
.future-project p { color: var(--muted); max-width: 380px; font-size: 12px; line-height: 1.8; margin: 0; }
.future-foot { color: #8190aa; font: 650 10px var(--font-mono); letter-spacing: .13em; margin-top: 20px; }

/* Education */
.education-section { background: #0b0f19; }
.education-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 105px; }
.education-aside h2 { margin-bottom: 27px; }
.education-aside > p { max-width: 310px; color: var(--muted); line-height: 1.8; }
.timeline { padding: 5px 0 0 25px; position: relative; }
.timeline-line { position: absolute; top: 19px; bottom: 28px; left: 0; width: 1px; background: linear-gradient(var(--blue),#39445e); }
.timeline-entry { position: relative; padding-bottom: 66px; }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-node { position: absolute; top: 10px; left: -30px; height: 11px; width: 11px; border: 3px solid var(--blue); border-radius: 50%; background: var(--bg); }
.timeline-entry-secondary .timeline-node { border-color: #7185ad; }
.timeline-overline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; color: var(--blue); font: 650 10px var(--font-mono); letter-spacing: .08em; }
.date-placeholder { color: #a6b0c2; font-size: 9px; }
.timeline-entry h3 { font-size: clamp(21px,2.6vw,34px); margin: 0 0 9px; letter-spacing: -.04em; line-height: 1.22; }
.timeline-subtitle { display: block; margin-bottom: 15px; color: #c1cfe5; font-size: 12px; font-weight: 650; }
.timeline-entry p { color: #aab9d0; font-size: 13px; line-height: 1.9; max-width: 580px; margin-bottom: 20px; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 11px; }
.timeline-meta span { border: 1px solid #3c4d68; background: #131d2c; padding: 8px 11px; color: #aabbcf; font-size: 11px; border-radius: 5px; }
.timeline-meta strong { color: #e0e8f8; }
.timeline-entry-secondary { border-top: 1px solid #263149; padding-top: 33px; }
.timeline-entry-secondary .timeline-node { top: 41px; }

/* Contact */
.contact-section { background: #101625; padding-bottom: 112px; }
.contact-shell { display: grid; grid-template-columns: 1fr .9fr; gap: 0; min-height: 580px; border: 1px solid #3a4e70; overflow: hidden; border-radius: 13px; background: #141f34; }
.contact-info { position: relative; padding: 52px clamp(28px,5vw,65px); overflow: hidden; background: radial-gradient(circle at 10% 100%,rgba(88,114,226,.2),transparent 46%),linear-gradient(140deg,#192940,#111a2c); }
.contact-info::after { position: absolute; content: 'F'; right: -45px; bottom: -150px; font: 900 500px/.9 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(117,148,218,.1); pointer-events: none; }
.contact-asterisk { display: inline-block; color: var(--blue); font-size: 49px; line-height: 1; margin-bottom: 77px; }
.contact-intro { color: #b0c9f8; font: 700 10px var(--font-mono); letter-spacing: .14em; }
.contact-info h2 { position: relative; z-index: 1; font-size: clamp(43px,4.6vw,66px); margin-bottom: 26px; }
.contact-info > p:not(.contact-intro) { position: relative; z-index: 1; color: #b6c6e0; max-width: 430px; font-size: 14px; line-height: 1.9; }
.contact-social { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.social-link { display: inline-flex; gap: 9px; align-items: center; padding: 9px 11px; border: 1px solid #57729e; border-radius: 6px; color: #d9e8ff; font-size: 11px; font-weight: 700; transition: background .2s; }
.social-link:hover { background: #28466c; }
.contact-form { padding: 45px clamp(24px,4vw,59px); background: #141c2c; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #384760; color: #e4efff; font: 750 11px var(--font-mono); letter-spacing: .1em; }
.form-heading span:last-child { color: var(--blue); font-size: 22px; }
.form-help { color: #a2b4ce; font-size: 12px; line-height: 1.7; margin: 19px 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #e5eeff; }
.field label span { color: #a7c5ff; }
.field input, .field textarea { display: block; width: 100%; resize: vertical; background: #0e1625; border: 1px solid #44536c; color: #f1f5ff; border-radius: 7px; padding: 12px 14px; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: #8b9aaf; }
.field input:hover, .field textarea:hover { border-color: #728ab2; }
.field input:focus, .field textarea:focus { border-color: #8bafff; box-shadow: 0 0 0 3px rgba(104,154,255,.1); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e99da5; }
.field-error { color: #ffbfc2; font-size: 11px; margin: 4px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-submit { width: 100%; justify-content: space-between; }
.form-message { color: #c2d3ec; font-size: 12px; line-height: 1.65; margin: 12px 0 0; }
.form-message:empty { display: none; }
.form-message.is-error { color: #ffbfc2; }
.form-message.is-info { color: #b5cffc; }
.form-legal { color: #98a9bf; font-size: 10px; line-height: 1.8; margin: 13px 0 0; }
.form-legal code { font: 10px var(--font-mono); color: #b6cdf9; }

/* Footer */
.site-footer { background: #080c14; }
.footer-top { display: grid; grid-template-columns: .6fr 1fr auto; gap: 30px; align-items: start; padding-top: 58px; padding-bottom: 67px; }
.footer-brand { font: 850 55px/.9 var(--font-display); letter-spacing: -.1em; }
.footer-top p { color: #aab9d1; font-size: 14px; line-height: 1.75; margin: 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 19px; }
.footer-top nav a { color: #b4c4dc; font-size: 12px; }
.footer-top nav a:hover, .footer-bottom a:hover { color: #b5ccff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-top: 1px solid #273348; padding-top: 21px; padding-bottom: 29px; color: #97a8c1; font: 700 9px var(--font-mono); letter-spacing: .06em; }

/* Reveal / motion: content is always visible when JavaScript or IntersectionObserver is absent */
.motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .65s var(--easing), transform .65s var(--easing); }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%,100% { opacity: 0; } }

@media (max-width: 1100px) {
  .container { width: min(var(--page-width), calc(100% - 52px)); }
  .hero-grid { gap: 25px; }
  .hero h1 { font-size: clamp(70px,9.3vw,110px); }
  .hero-art { min-height: 475px; }
  .editor-code { font-size: 10px; }
  .floating-chip { font-size: 9px; }
  .about-grid { gap: 55px; }
  .education-grid { gap: 65px; }
  .project-main { margin-top: 42px; }
}
@media (max-width: 920px) {
  .header-inner { min-height: 77px; }
  .menu-toggle { display: flex; position: relative; z-index: 44; }
  .site-nav { position: absolute; z-index: 43; top: 76px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px max(26px,calc((100vw - 1240px)/2)) 25px; background: #10192b; border-bottom: 1px solid #34435c; box-shadow: 0 30px 40px rgba(0,0,0,.3); max-height: calc(100svh - 77px); overflow-y: auto; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
  .nav-link { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid #243047; }
  .nav-link::after { bottom: 0; }
  .nav-cv { margin-top: 15px; justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 5px; padding-top: 75px; }
  .hero h1 { font-size: clamp(63px,9.7vw,93px); }
  .hero-description { font-size: 13px; }
  .hero-art { min-height: 430px; }
  .editor-code { font-size: 9px; padding: 17px 8px; }
  .line-no { min-width: 27px; }
  .chip-top { right: -8px; top: 28px; }
  .chip-bottom { bottom: 22px; left: -12px; }
  .section { padding: 92px 0; }
  .section-row { margin-bottom: 56px; }
  .about-grid { gap: 35px; }
  .values-grid { margin-top: 60px; }
  .value-item { padding: 24px 18px 26px; }
  .featured-project { grid-template-columns: 1fr; }
  .project-preview { min-height: 350px; max-height: 455px; }
  .project-content { padding: 32px; }
  .project-main { margin-top: 28px; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-info { padding: 37px 43px; }
  .contact-asterisk { margin-bottom: 33px; }
  .contact-info h2 { font-size: clamp(44px,7vw,72px); }
  .contact-form { padding: 40px 43px; }
  .footer-top { grid-template-columns: auto 1fr; }
  .footer-top nav { grid-column: 2; }
}
@media (max-width: 650px) {
  body { min-width: 320px; }
  .site-frame { border-width: 4px; }
  .container { width: calc(100% - 38px); }
  .brand-symbol { font-size: 27px; }
  .brand-label { font-size: 8px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 7px; padding-top: 61px; padding-bottom: 31px; }
  .eyebrow { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(72px,16vw,116px); }
  .hero-position { font-size: 15px; }
  .hero-description { max-width: 560px; font-size: 14px; }
  .hero-footnotes { margin-top: 38px; }
  .hero-art { min-height: 405px; margin-top: 20px; max-width: 510px; width: 100%; justify-self: center; }
  .editor-window { max-width: 470px; margin-inline: 12px; }
  .editor-code { font-size: clamp(9px,2.35vw,11px); }
  .art-orbit { left: 0; width: 450px; height: 450px; }
  .orbit-two { width: 340px; height: 340px; left: 13%; }
  .art-coordinates { right: 0; top: 5px; }
  .chip-top { right: -6px; top: 10px; }
  .chip-bottom { left: -5px; bottom: 8px; }
  .hero-bottom { font-size: 8px; padding-bottom: 19px; }
  .section { padding: 76px 0; }
  .section-row { margin-bottom: 44px; padding-top: 18px; }
  .section-sidenote { display: none; }
  .section h2 { font-size: clamp(48px,12vw,72px); }
  .section-split-title { display: block; margin-bottom: 29px; }
  .section-split-title p { margin-top: 18px; font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 37px; }
  .about-mark { display: none; }
  .about-text .lead { font-size: 20px; }
  .values-grid { grid-template-columns: 1fr; border-bottom: 0; margin-top: 48px; }
  .value-item { min-height: 0; padding: 23px 24px 27px; border-bottom: 1px solid var(--border); }
  .value-item + .value-item { border-left: 0; }
  .value-top { margin-bottom: 19px; }
  .skills-layout { grid-template-columns: 1fr; gap: 12px; }
  .skill-group { min-height: 0; padding: 23px; }
  .skills-note { gap: 11px; }
  .featured-project { border-radius: 9px; }
  .project-preview { min-height: 265px; max-height: 360px; }
  .project-content { padding: 23px; }
  .project-top { flex-wrap: wrap; gap: 10px; }
  .project-main { margin-top: 27px; }
  .project-main h3 { font-size: 52px; }
  .future-projects { grid-template-columns: 1fr; gap: 12px; }
  .future-project { min-height: 232px; }
  .education-grid { grid-template-columns: 1fr; gap: 46px; }
  .education-aside > p { max-width: 480px; }
  .contact-info { padding: 32px 24px; }
  .contact-form { padding: 28px 22px 32px; }
  .contact-asterisk { margin-bottom: 23px; }
  .contact-info h2 { font-size: clamp(43px,9vw,66px); }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 35px; gap: 20px; }
  .footer-top nav { grid-column: auto; }
  .footer-bottom { font-size: 9px; }
}
@media (max-width: 390px) {
  .brand { gap: 11px; }
  .hero h1 { font-size: 70px; }
  .button { gap: 13px; font-size: 12px; padding: 11px 14px; min-height: 50px; }
  .hero-art { min-height: 345px; }
  .editor-code { font-size: 8px; }
  .editor-window { margin-inline: 2px; }
  .floating-chip { font-size: 8px; padding: 7px 9px; }
  .chip-top { top: 7px; }
  .chip-bottom { bottom: 7px; }
  .project-preview { min-height: 240px; }
  .section h2 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
