:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #fff;
  --ink: #19223a;
  --ink-soft: #34405a;
  --muted: #59647a;
  --line: #dce0e9;
  --blue: #3356ba;
  --blue-deep: #263f8c;
  --orange: #b34d2b;
  --pale-blue: #edf1fc;
  --navy: #121d38;
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 47rem 38rem at 90% 3%, #e7ebff 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; border-radius: 3px; }
::selection { color: #fff; background: var(--blue); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.052em; }
.site-shell { max-width: 1320px; padding: 0 clamp(24px, 6vw, 88px); margin: 0 auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 13px 18px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 97px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; white-space: nowrap; font-size: 1.35rem; font-weight: 850; letter-spacing: -.07em; }
.brand-dot { color: var(--orange); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 4px; transform: rotate(-9deg); }
.brand-mark span { background: var(--blue); }
.brand-mark span:nth-child(2) { opacity: .38; }
.brand-mark span:nth-child(3) { background: var(--orange); }
.site-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(18px, 2.7vw, 38px); }
.site-nav a { font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cv { padding: 11px 14px; color: var(--blue-deep); border: 1px solid #bfcaf0; background: rgba(255,255,255,.45); }
.site-nav .nav-cv:hover { background: var(--pale-blue); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(36px, 5vw, 80px); padding: clamp(75px, 9vw, 130px) 0 95px; }
.eyebrow, .section-index, .project-meta, .aside-label, .visual-toolbar, .visual-kicker, .node-num, .visual-console, .preview-browser, .preview-caption, .catch-kicker, .catch-status, .hero-footnote, .aside-foot { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--blue); font-size: .73rem; font-weight: 750; letter-spacing: .12em; }
.eyebrow-rule { height: 2px; width: 28px; background: var(--orange); flex: 0 0 auto; }
.hero h1 { max-width: 710px; margin: 27px 0 29px; font-size: clamp(3.25rem, 5.6vw, 6rem); font-weight: 850; letter-spacing: -.077em; line-height: 1.06; }
.hero h1 span { color: var(--blue); }
.hero-description { color: var(--muted); font-size: 1.11rem; max-width: 590px; line-height: 1.83; }
.hero-description strong { color: var(--ink); font-weight: 750; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 35px 0 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 760; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-deep); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { border-color: var(--blue); }
.hero-footnote { color: #5e6680; font-size: .73rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-footnote-line { width: 24px; height: 1px; background: var(--orange); }
.hero-visual { position: relative; background: #14203d; color: #f0f3ff; min-height: 510px; border: 1px solid #0c1531; box-shadow: 19px 19px 0 rgba(48, 80, 155, .1); overflow: hidden; isolation: isolate; }
.hero-visual::before { position: absolute; content: ""; inset: 44px 0 0; z-index: -1; opacity: .38; background-image: linear-gradient(rgba(116,143,215,.12) 1px,transparent 1px), linear-gradient(90deg,rgba(116,143,215,.12) 1px,transparent 1px); background-size: 26px 26px; }
.hero-visual::after { content: ""; width: 280px; height: 280px; position: absolute; z-index: -1; top: 60px; right: -110px; background: radial-gradient(circle,#485ec060,transparent 70%); }
.visual-toolbar { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border-bottom: 1px solid #2b3857; background: #101a32; font-size: .68rem; color: #aebce7; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { display: block; width: 7px; height: 7px; border: 1px solid #8492bb; border-radius: 50%; }
.window-dots i:first-child { background: #df866d; border-color: #df866d; }
.window-dots i:nth-child(2) { background: #e5ba7d; border-color: #e5ba7d; }
.visual-version { margin-left: auto; color: #8193c3; }
.visual-content { padding: clamp(28px, 3vw, 42px); }
.visual-kicker { color: #e9aa8e; font-size: .68rem; font-weight: 750; letter-spacing: .17em; margin-bottom: 23px; }
.flow-diagram { padding-left: 15px; border-left: 1px dashed #465c92; }
.flow-node { position: relative; display: flex; flex-direction: column; gap: 3px; max-width: 340px; margin-left: 14px; padding: 15px 18px; background: #202f56; border: 1px solid #42557f; box-shadow: 5px 5px 0 #0e1831; }
.flow-node::before { content: ""; position: absolute; width: 11px; height: 11px; left: -35px; top: 22px; background: #e6ae8d; border: 3px solid #14203d; border-radius: 50%; box-sizing: content-box; }
.node-num { font-size: .65rem; color: #a7baff; letter-spacing: .08em; }
.flow-node strong { font-size: 1.08rem; letter-spacing: -.025em; }
.flow-node > span:last-child { color: #b5c1df; font-size: .76rem; }
.flow-connector { height: 26px; margin-left: 25px; display: flex; align-items: center; color: #88a7ec; font-size: .8rem; }
.visual-console { display: flex; gap: 12px; margin-top: 30px; color: #c5d0eb; font-size: .7rem; align-items: center; }
.visual-console > span:first-child { color: #e4a386; font-size: 1.4rem; }
.console-cursor { width: 5px; height: 12px; background: #d9b39c; animation: cursor-blink 1.15s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.visual-corner { position: absolute; right: 12px; bottom: 10px; font: 600 .65rem var(--mono); color: #6479ad; }
.expertise-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 28px; padding: 22px 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #586179; font-size: .76rem; font-weight: 740; letter-spacing: .02em; }
.expertise-strip span::before { content: "+"; color: var(--orange); font-weight: 900; margin-right: 11px; }
.section { padding: clamp(86px, 9vw, 130px) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading > div { max-width: 770px; }
.section-heading.compact { margin-bottom: 38px; }
.section-index { color: var(--orange); font-size: .73rem; letter-spacing: .14em; font-weight: 800; }
h2 { font-size: clamp(2.45rem, 4.65vw, 4.55rem); font-weight: 820; letter-spacing: -.068em; margin-top: 14px; }
h2 em { font-style: normal; color: var(--blue); }
.section-lead { max-width: 620px; margin-top: 21px; font-size: 1.01rem; color: var(--muted); line-height: 1.78; }
.text-link { font-size: .9rem; font-weight: 760; white-space: nowrap; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid #9eadd9; color: var(--blue-deep); }
.text-link:hover { color: var(--orange); border-bottom-color: var(--orange); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.project-card { min-width: 0; min-height: 335px; padding: clamp(26px, 3vw, 37px); display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); border-color: #b9c5ea; box-shadow: 0 15px 36px rgba(30,49,85,.06); }
.project-meta { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #65718b; font-weight: 720; font-size: .68rem; letter-spacing: .05em; }
.project-state { color: var(--orange); }
.project-card h3 { font-size: clamp(1.5rem, 2vw, 1.95rem); margin: 17px 0 13px; }
.project-card p { font-size: .95rem; color: var(--muted); line-height: 1.77; max-width: 570px; }
.card-symbol { display: grid; place-items: center; min-width: 51px; height: 51px; margin-top: 29px; padding: 0 5px; background: #edf1fe; border: 1px solid #d9e1fd; color: var(--blue); font: 800 1.35rem var(--mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 22px; padding: 0; list-style: none; }
.tag-list li { font: 620 .72rem var(--mono); color: #485773; padding: 7px 9px; background: #f3f5f9; border: 1px solid #e8ebf3; }
.project-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; font-size: .9rem; font-weight: 750; text-decoration: none; color: var(--blue); }
.project-link:hover { color: var(--orange); }
.project-card-featured { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 35px; padding: 0; overflow: hidden; background: #eef1fc; border-color: #d3dcf4; }
.project-card-featured .project-card-main { flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.3vw, 45px); }
.project-title-row { display: flex; gap: 15px; align-items: center; margin: 24px 0 13px; }
.project-title-row h3 { margin: 0; font-size: clamp(2.1rem, 3vw, 3.3rem); }
.project-monogram { padding: 11px; display: grid; place-items: center; color: #fff; background: var(--blue); font: 780 1.1rem var(--mono); }
.project-card-featured p { font-size: 1rem; }
.project-card-featured .tag-list li { background: #fff; border-color: #dce4f6; }
.project-preview { position: relative; flex: 0 1 40%; min-width: 265px; display: flex; flex-direction: column; justify-content: center; padding: 39px 28px; background: linear-gradient(144deg, #243e8d, #1a2a59 80%); overflow: hidden; color: #e8edff; }
.project-preview::before { content: ""; position: absolute; width: 310px; height: 310px; left: -145px; bottom: -135px; border: 1px solid #718ad343; border-radius: 50%; box-shadow: 0 0 0 37px #718ad316, 0 0 0 80px #718ad310; }
.preview-browser { position: relative; display: flex; align-items: center; gap: 5px; z-index: 1; background: #e4e8f4; padding: 11px 13px; border-radius: 7px 7px 0 0; color: #67738f; }
.preview-browser span { width: 6px; height: 6px; background: #8190b6; border-radius: 50%; }
.preview-browser span:first-child { background: #c87970; }
.preview-browser i { font: 550 .6rem var(--mono); margin-left: auto; font-style: normal; }
.preview-content { position: relative; z-index: 1; background: #fff; min-height: 192px; padding: 16px; border-radius: 0 0 7px 7px; box-shadow: 10px 15px 0 #121c4260; }
.preview-head { height: 10px; width: 45%; background: #a9b8ea; border-radius: 3px; margin-bottom: 13px; }
.preview-map { height: 90px; position: relative; background: #e8edf8; background-image: linear-gradient(35deg, transparent 45%, #bbc8e4 45%, #bbc8e4 49%, transparent 49%),linear-gradient(120deg, transparent 54%, #bbc8e4 54%, #bbc8e4 59%, transparent 59%); border-radius: 3px; }
.map-pin { width: 13px; height: 13px; background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 5px #2f427a44; transform: rotate(-45deg); border-radius: 50% 50% 50% 0; position: absolute; }
.pin-one { top: 23px; left: 27%; }.pin-two { top: 55px; left: 58%; }.pin-three { top: 17px; right: 20%; }
.preview-items { display: flex; gap: 8px; margin-top: 13px; }
.preview-items i { height: 23px; flex: 1; background: #edf0f8; border-radius: 2px; }
.preview-caption { position: relative; z-index: 1; color: #aebce9; margin-top: 29px; text-align: right; font-size: .66rem; letter-spacing: .13em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: clamp(45px, 9vw, 130px); align-items: start; }
.about-prose p { max-width: 675px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.9; }
.about-prose p + p { margin-top: 23px; }
.about-aside { padding: 29px 32px; background: #eceff7; border-top: 3px solid var(--blue); }
.aside-label { font-size: .71rem; letter-spacing: .08em; color: var(--blue-deep); font-weight: 780; margin-bottom: 13px; }
.stack-list { margin: 0; }
.stack-list div { display: grid; grid-template-columns: 85px 1fr; gap: 16px; border-bottom: 1px solid #d2d9e8; padding: 15px 0; }
.stack-list dt { font-size: .84rem; color: #2e416d; font-weight: 770; }
.stack-list dd { margin: 0; color: #4a5872; font-size: .83rem; line-height: 1.55; }
.aside-foot { display: block; margin-top: 25px; font-size: .66rem; letter-spacing: .06em; color: #69758c; }
.workshop-section { margin: 0 calc(-1 * clamp(24px, 6vw, 88px)); padding: clamp(60px, 8vw, 98px) clamp(24px, 6vw, 88px); background: #17223e; color: #f4f6ff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 65px; }
.workshop-section .section-index { color: #eab28e; }
.workshop-section h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.workshop-section h2 em { color: #b7c7ff; }
.workshop-section p:not(.section-index) { margin-top: 20px; color: #c1cbdf; max-width: 590px; line-height: 1.84; }
.workshop-diagram { display: flex; flex-direction: column; align-items: center; width: 100%; }
.workshop-device { position: relative; border: 1px solid #6478a4; background: #243658; width: 80%; max-width: 330px; padding: 17px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 7px 7px 0 #10182d; }
.workshop-device strong { font: 730 .84rem var(--mono); letter-spacing: .06em; }
.workshop-device small { color: #b0c4e9; font: 500 .73rem var(--mono); }
.device-light { position: absolute; top: 23px; right: 22px; width: 7px; height: 7px; background: #e3b38c; border-radius: 50%; }
.workshop-link { height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #c0cdf4; font: 620 .62rem var(--mono); letter-spacing: .12em; }
.workshop-link i { width: 1px; height: 15px; background: #7088c3; }
.catch-section { padding-bottom: 95px; }
.catch-panel { background: #17211b; color: #f5f2e6; display: grid; grid-template-columns: 1.3fr .7fr; min-height: 370px; overflow: hidden; }
.catch-copy { padding: clamp(32px, 5vw, 65px); align-self: center; }
.catch-kicker { color: #ebbc8d; font-weight: 770; letter-spacing: .1em; font-size: .72rem; }
.catch-panel h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); margin-top: 17px; }
.catch-panel h2 em { color: #d7aa7b; }
.catch-panel p:not(.catch-kicker) { margin-top: 20px; max-width: 600px; color: #c6d0c2; line-height: 1.78; }
.catch-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 29px; color: #e3d4b8; font-size: .72rem; overflow-wrap: anywhere; }
.catch-status strong { font-weight: 780; }
.catch-status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; background: #e8ae7a; border-radius: 50%; }
.catch-visual { min-height: 320px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 65% 24%, #4e6f51 0%, #304c39 23%, #1d3227 66%, #16271d); }
.catch-sun { position: absolute; top: 58px; right: 27%; width: 87px; height: 87px; border-radius: 50%; background: #edc88d; box-shadow: 0 0 0 17px #edc88d13, 0 0 0 40px #edc88d09; }
.pixel-track { position: absolute; left: 0; right: 0; bottom: 55px; height: 24px; border-top: 7px solid #8d9e6d; background: #503e31; box-shadow: 0 54px 0 #3c3029; }
.pixel-paper { position: absolute; top: 44%; left: 47%; background: #fbf2d9; border: 4px solid #dac5a0; width: 42px; height: 48px; display: grid; place-items: center; transform: rotate(-12deg); color: #564c40; font: 830 .9rem var(--mono); box-shadow: 5px 5px 0 #07120b44; }
.pixel-person { position: absolute; bottom: 81px; left: 22%; width: 32px; height: 73px; background: linear-gradient(#d0a280 0 24%, #243e52 24% 68%, #2c2f40 68%); border: 3px solid #15251d; box-shadow: 5px 0 0 #254054; }
.pixel-person::before { content: ""; position: absolute; left: 1px; right: 1px; top: -12px; height: 15px; background: #332c2b; }
.pixel-person span { position: absolute; bottom: -18px; left: 1px; width: 9px; height: 19px; background: #3a3533; box-shadow: 16px 0 #3a3533; }
.pixel-dog { position: absolute; bottom: 81px; right: 16%; width: 54px; height: 35px; background: #a8a598; border: 3px solid #3b4036; }
.pixel-dog::before { content: ""; position: absolute; left: -8px; top: -14px; width: 23px; height: 26px; background: #a8a598; border: 3px solid #3b4036; }
.pixel-dog::after { content: ""; position: absolute; right: -15px; top: -13px; width: 16px; height: 6px; background: #bfc6ae; transform: rotate(25deg); }
.pixel-dog span { position: absolute; left: 8px; bottom: -14px; height: 14px; width: 7px; background: #d6d5c6; box-shadow: 26px 0 #d6d5c6; }
.catch-decor { position: absolute; top: 21px; left: 23px; font: 830 1.1rem var(--mono); color: #9fb88b; letter-spacing: 15px; }
.contact-layout { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact-layout h2 { max-width: 750px; }
.contact-layout p { max-width: 590px; color: var(--muted); margin-top: 18px; line-height: 1.75; }
.contact-actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 220px; }
.contact-actions .button { width: 100%; justify-content: space-between; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 25px; padding: 31px 0 43px; font-size: .78rem; color: #68748b; }
.site-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(315px, .9fr); gap: 30px; }
  .hero h1 { font-size: clamp(3rem, 5.4vw, 4.6rem); }
  .workshop-section { gap: 35px; }
  .contact-layout { align-items: start; }
}
@media (max-width: 820px) {
  .site-header { min-height: 84px; }
  .hero { grid-template-columns: 1fr; padding: 75px 0; gap: 52px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(3.3rem, 8.5vw, 5.5rem); }
  .hero-visual { min-height: initial; }
  .visual-content { padding: 31px; }
  .flow-node { max-width: 100%; }
  .expertise-strip { justify-content: flex-start; }
  .about-grid { gap: 35px; grid-template-columns: 1fr; }
  .workshop-section { grid-template-columns: 1fr; }
  .workshop-diagram { flex-direction: row; align-items: center; }
  .workshop-device { width: 43%; }
  .workshop-link { width: 14%; height: auto; }
  .workshop-link i { height: 1px; width: 100%; }
  .contact-layout { flex-direction: column; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 2rem; }
  .site-header { align-items: flex-start; padding: 23px 0; gap: 17px; flex-direction: column; }
  .site-nav { width: 100%; gap: 15px; flex-wrap: wrap; justify-content: flex-start; }
  .site-nav a { font-size: .79rem; }
  .site-nav .nav-cv { padding: 6px 9px; margin-left: auto; }
  .hero { padding: 65px 0; }
  .eyebrow { font-size: .64rem; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(2.9rem, 12vw, 4.1rem); line-height: 1.08; }
  .hero-description { font-size: 1rem; }
  .hero-actions { margin: 29px 0; }
  .button { width: 100%; justify-content: space-between; }
  .hero-visual { box-shadow: 9px 9px 0 rgba(48, 80, 155, .1); }
  .visual-content { padding: 26px 21px; }
  .visual-console { font-size: .65rem; }
  .section { padding: 75px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-lead { margin-top: 17px; }
  h2 { font-size: clamp(2.3rem, 10vw, 3.3rem); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { flex-direction: column; }
  .project-card-featured .project-card-main { width: 100%; }
  .project-preview { width: 100%; min-width: 0; min-height: 320px; }
  .project-card { min-height: 0; }
  .about-aside { padding: 23px; }
  .stack-list div { grid-template-columns: 80px 1fr; gap: 8px; }
  .workshop-section { padding-top: 70px; padding-bottom: 70px; }
  .workshop-diagram { align-items: center; flex-direction: column; }
  .workshop-device { width: 88%; }
  .workshop-link { height: 65px; width: auto; }
  .workshop-link i { height: 13px; width: 1px; }
  .catch-panel { grid-template-columns: 1fr; }
  .catch-visual { min-height: 285px; }
  .catch-section { padding-bottom: 75px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 410px) {
  .site-nav .nav-cv { margin-left: 0; }
  .hero h1 { font-size: 2.73rem; }
  .hero-footnote { gap: 7px; }
  .visual-toolbar { gap: 10px; }
  .visual-toolbar span { font-size: .61rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
