@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Mono";
  src: url("assets/fonts/LiberationMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Mono";
  src: url("assets/fonts/LiberationMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f7f7f2;
  --paper-dark: #eeeeea;
  --ink: #1a1c18;
  --muted: #646961;
  --stroke: #d9ddd3;
  --lime: #d5f978;
  --white: #fffefa;
  --radius: 16px;
  --pad: clamp(24px, 5vw, 86px);
  --max: 1376px;
  --sans: "Portfolio Sans", sans-serif;
  --mono: "Portfolio Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.icon-library { display: none; }
.icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; flex: 0 0 14px; }
.icon-star { width: 14px; height: 14px; flex-basis: 14px; }
.location-pin .icon-star { width: 12px; height: 12px; }
.visual-sticker .icon-star { width: 42px; height: 42px; }
.small-ui-star .icon-star { width: 38px; height: 38px; }
.contact-asterisk .icon-star { width: 38px; height: 38px; }
.underlined-link .icon, .mock-pay .icon { align-self: center; }
button:focus-visible, a:focus-visible { outline: 3px solid #8dba27; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.container { max-width: var(--max); padding-inline: var(--pad); margin-inline: auto; }

/* Full-screen entry sequence. Diagonal gaps widen through the lime veil. */
@property --intro-band {
  syntax: "<length>";
  inherits: false;
  initial-value: 88px;
}
html.intro-ready { overflow: hidden; }
.site-intro { display: none; position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: #d5f978; color: #000; }
.intro-ready .site-intro { display: grid; place-items: center; }
.site-intro.is-opening {
  -webkit-mask-image: repeating-linear-gradient(45deg, #000 0, #000 var(--intro-band), transparent var(--intro-band), transparent 88px);
  mask-image: repeating-linear-gradient(45deg, #000 0, #000 var(--intro-band), transparent var(--intro-band), transparent 88px);
  animation: intro-stripe-reveal 1350ms linear forwards;
}
@keyframes intro-stripe-reveal {
  to { --intro-band: 0px; }
}
.intro-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 24px; transform: translateY(-2vh); transition: opacity 330ms ease, transform 330ms ease; }
.intro-mark { position: relative; width: min(70vw, 540px); aspect-ratio: 768 / 444; }
.intro-logo-fallback, #intro-logo-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#intro-logo-canvas { opacity: 0; }
.intro-mark.is-ascii-ready .intro-logo-fallback { opacity: 0; }
.intro-mark.is-ascii-ready #intro-logo-canvas { opacity: 1; }
.intro-line { display: flex; justify-content: center; align-items: center; min-height: 1.6em; margin: 12px 0 0; color: #000; font: 700 clamp(15px, 2.4vw, 24px)/1.5 var(--mono); letter-spacing: .015em; white-space: nowrap; }
.intro-prompt { margin-right: .6em; }
.intro-caret { margin-left: .45em; animation: intro-caret-blink .78s steps(1) infinite; }
@keyframes intro-caret-blink { 50% { opacity: 0; } }
.site-intro.is-vanishing .intro-content { opacity: 0; transform: translateY(-12px) scale(.97); }
@media (max-width: 630px) {
  .intro-mark { width: min(82vw, 420px); }
  .intro-line { font-size: clamp(14px, 3.7vw, 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none !important; }
}

/* Content becomes animated only after JavaScript marks it for observation. */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal].project-card { transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease, border-color .24s ease; transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].project-card.is-revealed:hover { transform: translateY(-5px); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 40; height: 78px; background: rgba(247,247,242,.94); border-bottom: 1px solid var(--stroke); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { position: relative; display: inline-flex; align-items: center; width: 66px; line-height: 0; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-motion { position: absolute; left: 50%; top: 50%; display: block; width: 118%; height: auto; aspect-ratio: 454 / 261; transform: translate(-50%, -50%); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.brand.is-playing .brand-logo { opacity: 0; }
.brand.is-playing .brand-motion { opacity: 1; }
.site-nav { display: flex; align-items: center; gap: clamp(26px, 3.5vw, 56px); font-weight: 600; font-size: 14px; }
.site-nav a { position: relative; padding-block: 10px; transition: color .2s ease; }
.site-nav a:not(:last-child)::after { content: ""; position: absolute; height: 1px; bottom: 5px; left: 0; right: 100%; background: var(--ink); transition: right .25s ease; }
.site-nav a:not(:last-child):hover::after { right: 0; }
.site-nav a:last-child { padding: 11px 17px; border: 1px solid var(--ink); border-radius: 30px; display: inline-flex; gap: 18px; align-items: center; }
.site-nav a:last-child:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; width: 40px; height: 40px; background: transparent; border: 1px solid var(--stroke); border-radius: 11px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle span { display: block; height: 2px; width: 18px; background: var(--ink); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(40px, 6.5vw, 110px); align-items: center; padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(66px, 8vw, 112px); }
.hero-copy { min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .035em; text-transform: uppercase; font-weight: 700; line-height: 1.6; }
.hero .eyebrow { margin: 0 0 27px; display: flex; align-items: center; gap: 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #9abe39; border-radius: 100%; flex: 0 0 auto; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(74px, 8.1vw, 128px); font-weight: 800; line-height: .91; letter-spacing: -.082em; }
h1 span { display: block; }
h1 .hey { font-size: clamp(36px, 3.7vw, 61px); font-weight: 600; letter-spacing: -.066em; margin-bottom: 16px; line-height: 1.04; }
h1 .name { white-space: nowrap; }
h1 .outlined-name { color: transparent; -webkit-text-stroke: 1.9px var(--ink); paint-order: stroke fill; white-space: nowrap; }
h1 .period { display: inline; -webkit-text-stroke: 0; color: #95b844; }
h1.is-typewriting .hey { min-height: 1.04em; }
h1.is-typewriting .name, h1.is-typewriting .outlined-name { min-height: .91em; }
h1 .period.is-hidden { display: none; }
h1 .is-typing::after { content: ""; display: inline-block; width: .055em; height: .74em; margin-left: .07em; background: #95b844; animation: typing-caret .65s steps(1) infinite; }
@keyframes typing-caret { 50% { opacity: 0; } }
/* Full-title glitch layers are inserted only after the typewriter completes. */
.glitch-ready { position: relative; isolation: isolate; }
.glitch-layer { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .glitch-ready:hover { animation: title-glitch .72s steps(1, end) infinite; }
  .glitch-ready:hover > .glitch-cyan { opacity: .9; filter: drop-shadow(3px 0 #00dfff); animation: glitch-slice-cyan .72s steps(1, end) infinite; }
  .glitch-ready:hover > .glitch-magenta { opacity: .9; filter: drop-shadow(-3px 0 #ff2b8a); animation: glitch-slice-magenta .72s steps(1, end) infinite; }
}
@keyframes title-glitch {
  0%, 12%, 18%, 34%, 42%, 59%, 68%, 100% { transform: translateX(0); filter: none; }
  13%, 16%, 60% { transform: translateX(-2px); filter: drop-shadow(3px 0 #00dfff) drop-shadow(-3px 0 #ff2b8a); }
  35%, 39%, 65% { transform: translateX(2px); filter: drop-shadow(-3px 0 #00dfff) drop-shadow(3px 0 #ff2b8a); }
}
@keyframes glitch-slice-cyan {
  0%, 12%, 18%, 34%, 42%, 59%, 68%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  13%, 16% { clip-path: inset(12% 0 68% 0); transform: translateX(6px); }
  35%, 39% { clip-path: inset(60% 0 18% 0); transform: translateX(-7px); }
  60%, 65% { clip-path: inset(35% 0 48% 0); transform: translateX(5px); }
}
@keyframes glitch-slice-magenta {
  0%, 12%, 18%, 34%, 42%, 59%, 68%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  13%, 16% { clip-path: inset(55% 0 24% 0); transform: translateX(-6px); }
  35%, 39% { clip-path: inset(23% 0 59% 0); transform: translateX(7px); }
  60%, 65% { clip-path: inset(72% 0 9% 0); transform: translateX(-5px); }
}
.hero-description { max-width: 530px; color: #41473f; font-size: clamp(16px, 1.23vw, 18px); line-height: 1.75; margin: 30px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; transition: transform .22s ease, background .22s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #3e4d2d; }
.coffee-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 11px 19px; border-radius: 16px; background: #ffdd00; color: #111; font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.coffee-button[data-reveal] { transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1), background .2s ease, box-shadow .2s ease; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms; }
.coffee-button:hover { background: #ffe746; transform: translateY(-3px); box-shadow: 0 7px 0 rgba(18, 20, 15, .13); }
.coffee-icon { display: block; flex: 0 0 21px; width: 21px; height: 21px; }
.hero-coffee { margin-top: 22px; }
.underlined-link { font-weight: 700; font-size: 14px; display: inline-flex; gap: 28px; border-bottom: 1px solid #aab3a5; padding-block: 9px; transition: border-color .2s ease; }
.underlined-link:hover { border-color: var(--ink); }
.location-line { margin: 50px 0 0; font-size: 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.hero-coffee + .location-line { margin-top: 30px; }
.location-pin { font-size: 16px; color: #7a9c2b; }
.hero-visual { min-width: 0; position: relative; border: 1px solid #c9d1c3; background: #eef2e8; border-radius: var(--radius); aspect-ratio: 1.06; display: flex; flex-direction: column; box-shadow: 14px 16px 0 #e7ebdf; isolation: isolate; }
.visual-bar { display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding: 20px 21px; font-size: 11px; color: #465644; font-family: var(--mono); border-bottom: 1px solid #d8dfd3; }
.visual-index { color: #75866d; }
.visual-canvas-wrap { position: relative; flex: 1; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at center, rgba(214,249,163,.27), transparent 75%); }
#ascii-canvas { width: 100%; height: 100%; display: block; }
.visual-corner { position: absolute; inset: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; color: #bcc9b1; font-family: var(--mono); }
.visual-centerpiece { position: absolute; top: 50%; left: 50%; width: min(72%, 420px); aspect-ratio: 1.45; transform: translate(-50%, -50%); pointer-events: none; }
.visual-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .25s ease; }
.visual-logo { display: block; width: 82%; height: auto; }
.visual-slogan { margin: 14px 0 0; color: #364b35; font: 600 clamp(10px, 1.15vw, 13px)/1.5 var(--mono); white-space: nowrap; }
#ascii-mark { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; }
.visual-centerpiece.is-ascii-ready .visual-fallback { opacity: 0; }
.visual-centerpiece.is-ascii-ready #ascii-mark { opacity: 1; }
.visual-sticker { position: absolute; right: -20px; bottom: 49px; display: grid; place-items: center; width: clamp(55px, 6vw, 85px); aspect-ratio: 1; background: var(--lime); border-radius: 100%; font-size: clamp(29px, 4vw, 55px); transform: rotate(-15deg); animation: sticker-float 5s ease-in-out infinite; }
@keyframes sticker-float { 0%, 100% { transform: translateY(0) rotate(-15deg) scale(1); } 50% { transform: translateY(-7px) rotate(13deg) scale(1.06); } }
.thin-divider { padding-block: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--stroke); color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .015em; font-size: 10px; }
.thin-divider b { color: #84a728; }
.thin-divider > span:last-child { color: var(--ink); }

/* Work */
.section { padding-block: clamp(78px, 9vw, 122px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-head > p { color: var(--muted); width: 310px; max-width: 42%; font-size: 15px; line-height: 1.75; margin-bottom: 7px; }
.eyebrow-section { color: #6c7465; margin-bottom: 18px; }
h2 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.069em; font-weight: 750; margin-bottom: 0; }
h2 em { font-style: normal; font-weight: 750; }
h2.has-typewriter { position: relative; }
h2 .title-ghost { display: block; visibility: hidden; }
h2 .title-typed { position: absolute; inset: 0; display: block; }
.title-caret { display: inline-block; position: relative; width: 0; height: .72em; }
.title-caret::after { content: ""; position: absolute; left: .06em; bottom: 0; width: .045em; height: .72em; background: #95b844; animation: typing-caret .65s steps(1) infinite; }
#work-title em, #ai-title em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project-card { min-width: 0; border: 1px solid var(--stroke); border-radius: 13px; background: var(--white); overflow: hidden; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.project-card:hover { transform: translateY(-5px); border-color: #bbc7b4; box-shadow: 0 16px 36px rgba(21,32,19,.065); }
.project-art { height: 240px; position: relative; overflow: hidden; border-bottom: 1px solid var(--stroke); }
.project-content { padding: 24px 23px 25px; }
.project-category { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #68872a; display: flex; gap: 12px; text-transform: uppercase; }
.project-category span { color: var(--muted); font-weight: 500; }
.project-content h3 { font-size: clamp(21px, 1.85vw, 26px); letter-spacing: -.045em; margin: 17px 0 10px; line-height: 1.2; }
.project-content > p { min-height: 75px; color: #61675e; font-size: 14px; line-height: 1.7; margin-bottom: 21px; }
.tech-line { padding-top: 17px; border-top: 1px solid #e3e5de; color: #495345; font-size: 12px; font-weight: 600; line-height: 1.5; }
.tech-line span { color: #9aac8c; padding-inline: 5px; }
.section-footnote { color: #858b81; font-size: 11px; margin: 16px 0 0; }

/* In-card micro interfaces */
.plan-art { background: #e8eedf; padding: 15px 20px; }
.art-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 11px; font-weight: 700; }
.sample-tag { font-family: var(--mono); color: #718064; font-size: 8px; letter-spacing: .015em; }
.floor-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 0 5px; font-size: 11px; color: #606d58; }
.floor-buttons { display: flex; align-items: center; gap: 6px; }
.floor-button { font-family: var(--mono); border: 1px solid #bdc8b1; padding: 5px 11px; border-radius: 6px; font-size: 11px; background: rgba(255,255,255,.5); color: #3c4934; }
.floor-button.is-selected { background: var(--ink); border-color: var(--ink); color: white; }
.mini-plan { display: block; width: min(300px, 100%); height: 126px; margin: 0 auto; overflow: visible; }
.plan-hall { fill: #d6dfcc; }
.plan-hall-label { fill: #78866d; font: 6px var(--mono); letter-spacing: 1.5px; }
.unit { cursor: pointer; outline: none; }
.unit-outline { fill: #f5f7f0; stroke: #aabb99; stroke-width: 1.25; stroke-linejoin: round; transition: fill .2s ease, stroke .2s ease; }
.unit-rooms { fill: none; stroke: #b9c6ac; stroke-width: 1; pointer-events: none; }
.unit text { fill: #60724f; font: 9px var(--mono); pointer-events: none; }
.unit:hover .unit-outline { fill: #e2edcf; stroke: #779747; }
.unit.selected .unit-outline { fill: var(--lime); stroke: #749b33; stroke-width: 2; }
.unit.selected .unit-rooms { stroke: #aacb69; }
.unit.selected text { fill: #304219; font-weight: 700; }
.unit:focus-visible .unit-outline { stroke: #293a1b; stroke-width: 3; stroke-dasharray: 4 2; }
.plan-status { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #52654a; margin-top: 10px; padding-top: 9px; border-top: 1px solid #d3ddc8; white-space: nowrap; }
.plan-status strong { font-family: var(--mono); font-size: 10px; }
.plan-availability { margin-left: auto; font-size: 8px; color: #607d3a; }
.tiny-live-dot { width: 5px; height: 5px; background: #6e9934; border-radius: 100%; }
.checkout-art { background: #eae8e2; display: flex; align-items: center; justify-content: center; }
.checkout-mock { position: relative; background: #fffefa; width: min(248px,75%); border-radius: 9px; padding: 14px 17px 12px; box-shadow: 8px 10px 0 rgba(31,35,27,.08); font-size: 10px; }
.mock-header { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid #eaede5; }
.mock-ellipsis { letter-spacing: .06em; }
.mock-item { display: flex; gap: 10px; align-items: center; padding-block: 9px; }
.mock-product { width: 32px; height: 36px; background: #d8e1cc; border-radius: 5px; flex-shrink: 0; }
.mock-desc { flex: 1; display: grid; gap: 6px; }
.mock-desc span { display: block; background: #e0e5dc; height: 5px; border-radius: 10px; }
.mock-desc span:last-child { width: 60%; }
.mock-item strong { font-size: 9px; }
.mock-row { border-top: 1px solid #eaede5; display: flex; justify-content: space-between; padding-block: 5px; color: #8a9184; }
.mock-row strong { color: #343a30; font-weight: 500; }
.mock-total { color: #293025; font-weight: 700; }
.mock-total strong { font-weight: 700; }
.mock-pay { width: 100%; border: 0; color: var(--ink); text-align: left; margin-top: 5px; padding: 8px; background: var(--lime); font-weight: 700; display: flex; justify-content: space-between; align-items: center; border-radius: 4px; }
.mock-pay:hover { background: #c3ee60; }
.checkout-success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: #fffefa; border-radius: inherit; color: #477b29; text-align: center; }
.checkout-success[hidden] { display: none; }
.checkout-success strong { font-size: 13px; line-height: 1.4; }
.success-check { display: block; width: 52px; height: 52px; flex: none; fill: none; stroke: #629635; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { fill: #edf5e3; }
.checkout-success:not([hidden]) .success-check { animation: order-pop .45s ease-out both; }
.checkout-success:not([hidden]) .success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: order-check .45s .2s ease-out forwards; }
@keyframes order-pop { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes order-check { to { stroke-dashoffset: 0; } }
.small-ui-star { position: absolute; color: #afb8a4; font-size: 48px; right: 20px; top: 16px; transform: rotate(15deg); }
.dashboard-art { background: #e6e9e2; display: grid; place-items: center; }
.dashboard-mock { background: #fbfcf7; width: min(267px,82%); padding: 16px; border: 1px solid #d6dbd2; border-radius: 9px; transform: rotate(2deg); box-shadow: -7px 8px 0 #d5dace; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.dashboard-top span:last-child { font-size: 8px; color: #8fa473; font-weight: 500; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.dashboard-stat { display: flex; flex-direction: column; align-items: flex-start; }
.dashboard-stat small { font-size: 9px; color: #8a9683; }
.dashboard-stat strong { font-variant-numeric: tabular-nums; font-size: 41px; letter-spacing: -.08em; margin: 3px 0 0; }
.dashboard-stat span { font-size: 9px; color: #6f922e; }
.dashboard-chart { display: flex; gap: 5px; align-items: flex-end; height: 70px; border-bottom: 1px solid #d6ded2; }
.dashboard-chart span { background: #abd06a; flex: 1; height: var(--h); border-radius: 2px 2px 0 0; }
.dashboard-chart span { transform-origin: bottom; animation: workflow-bar 4s ease-in-out infinite; animation-play-state: paused; }
.dashboard-mock.is-running .dashboard-chart span { animation-play-state: running; }
.dashboard-chart span:nth-child(1) { --h: 35%; }
.dashboard-chart span:nth-child(2) { --h: 60%; animation-delay: -.7s; }
.dashboard-chart span:nth-child(3) { --h: 48%; animation-delay: -2.1s; }
.dashboard-chart span:nth-child(4) { --h: 81%; animation-delay: -1.3s; }
.dashboard-chart span:nth-child(5) { --h: 64%; animation-delay: -3.2s; }
.dashboard-chart span:nth-child(6) { --h: 94%; animation-delay: -2.6s; }
@keyframes workflow-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
@media (prefers-reduced-motion: reduce) {
  .dashboard-chart span { animation: none; }
  .checkout-success:not([hidden]) .success-check { animation: none; }
  .checkout-success:not([hidden]) .success-check path { animation: none; stroke-dashoffset: 0; }
}
.dashboard-chart span:nth-child(2n) { background: #3f5340; }
.dashboard-bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 17px; }
.dashboard-bottom i { width: 85%; height: 5px; border-radius: 10px; background: #e0e6db; }
.dashboard-bottom i:nth-child(2) { width: 60%; }
.dashboard-bottom i:nth-child(3) { width: 73%; }

/* About */
.about-section { background: #efefe9; border-top: 1px solid #e6e7e0; border-bottom: 1px solid #e3e5de; }
.about-heading { margin-bottom: 42px; }
.about-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(45px, 8vw, 138px); align-items: start; }
.about-copy > p { max-width: 510px; font-size: 16px; line-height: 1.85; color: #50574e; margin-bottom: 20px; }
.about-copy > p:first-child { font-size: 18px; color: var(--ink); line-height: 1.75; }
.about-copy strong { color: var(--ink); }
.languages { display: flex; gap: 15px; align-items: baseline; justify-content: space-between; padding: 21px 0; border-top: 1px solid #d9dbd3; margin-top: 35px; font-size: 12px; }
.languages span:first-child { font-weight: 700; }
.languages span:last-child { color: #646b60; text-align: right; }
.journey { border-top: 1px solid #cdd1c8; }
.journey-item { border-bottom: 1px solid #cdd1c8; padding: 23px 0; display: grid; grid-template-columns: 110px 1fr; gap: 24px; }
.journey-item > span { font-size: 11px; color: #718066; padding-top: 5px; font-family: var(--mono); }
.journey h3 { font-size: 17px; margin: 0 0 7px; letter-spacing: -.026em; }
.journey p { font-size: 13px; color: #646b61; line-height: 1.55; margin: 0; }
.stack-block { border-top: 1px solid #cdd1c8; margin-top: 86px; padding-top: 23px; }
.stack-label { font-family: var(--mono); text-transform: uppercase; font-size: 11px; font-weight: 700; margin-bottom: 30px; }
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; }
.stack-grid > div { padding-right: 14px; }
.stack-grid h3 { font-size: 16px; letter-spacing: -.02em; margin-bottom: 12px; }
.stack-grid p { color: #6a7067; line-height: 1.65; font-size: 13px; margin: 0; }

/* AI systems and the small local companion animation. */
.ai-section { padding-bottom: 0; }
.ai-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 86px); align-items: center; }
.ai-copy .eyebrow { margin-bottom: 25px; }
.ai-description { max-width: 510px; font-size: 17px; line-height: 1.8; color: #50574e; margin: 28px 0 23px; }
.ai-note { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #68735d; margin: 0; }
.ai-note .status-dot { width: 6px; height: 6px; }
.ai-studio { border: 1px solid #d4ddca; border-radius: 16px; background: #eef2e8; box-shadow: 10px 12px 0 #e6ebdf; overflow: hidden; }
.ai-studio-bar { display: flex; align-items: center; justify-content: flex-end; padding: 18px 20px; border-bottom: 1px solid #dce3d5; color: #7b8971; font: 8px var(--mono); }
.robot-scene { position: relative; display: grid; place-items: center; min-height: 265px; background: radial-gradient(circle, #ced9bf .7px, transparent .9px) center / 20px 20px; }
.robot-button { display: block; width: min(320px, 100%); padding: 0; border: 0; border-radius: 30px; background: transparent; line-height: 0; z-index: 1; }
.robot-button:focus-visible { outline-offset: -8px; }
.ai-robot { display: block; width: 100%; height: auto; overflow: visible; }
.robot-shadow { fill: #ced8c1; opacity: .6; }
.robot-body { animation: robot-bob 6s ease-in-out infinite; animation-play-state: paused; }
.robot-shell { fill: #f7f8ef; stroke: #a3b28f; stroke-width: 1.5; }
.robot-ear, .robot-foot, .robot-neck { fill: #becaa9; stroke: #9eaf88; stroke-width: 1.5; }
.robot-screen { fill: #20291d; stroke: #414e35; stroke-width: 2; }
.robot-antenna, .robot-arm { fill: none; stroke: #91a379; stroke-width: 5; stroke-linecap: round; }
.robot-seam, .robot-vents { fill: none; stroke: #bcc9aa; stroke-width: 2; stroke-linecap: round; }
.robot-signal, .robot-chest-light { fill: #b5d967; stroke: #87a943; stroke-width: 1.5; }
.robot-open-eyes { fill: var(--lime); }
.robot-eyes { transform-box: fill-box; transform-origin: center; animation: robot-blink 5.6s infinite; animation-play-state: paused; }
.robot-happy-eyes { opacity: 0; fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.robot-mouth { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; }
.ai-studio[data-expression="happy"] .robot-open-eyes { opacity: 0; }
.ai-studio[data-expression="happy"] .robot-happy-eyes { opacity: 1; }
.ai-studio[data-expression="curious"] .robot-right-eye { transform: translateY(-4px); }
.robot-wave { transform-origin: 210px 177px; }
.ai-studio[data-behavior="look"] .robot-look { animation: robot-look 4.8s ease-in-out infinite; }
.ai-studio[data-behavior="walk"] .robot-traveler { animation: robot-walk 4.8s ease-in-out infinite; }
.ai-studio[data-behavior="walk"] .robot-foot-left { animation: robot-step .32s ease-in-out infinite alternate; }
.ai-studio[data-behavior="walk"] .robot-foot-right { animation: robot-step .32s -.32s ease-in-out infinite alternate; }
.ai-studio[data-behavior="wave"] .robot-wave { animation: robot-wave 4.8s ease-in-out infinite; }
.ai-studio[data-behavior="hop"] .robot-body { transform-origin: 160px 220px; animation: robot-hop 4.8s ease-in-out infinite; }
.ai-studio[data-behavior="chat"] .robot-mouth { transform-box: fill-box; transform-origin: center; animation: robot-talk .44s ease-in-out infinite; }
.ai-studio[data-behavior="doze"] .robot-eyes { animation: robot-doze 4.8s ease-in-out infinite; }
.robot-speech { position: absolute; top: 10px; right: 18px; z-index: 2; padding: 10px 13px; border: 1px solid #bdcda5; border-radius: 10px 10px 10px 2px; background: #f7faef; color: #51683a; font: 11px var(--mono); letter-spacing: 1px; pointer-events: none; }
.robot-speech[hidden] { display: none; }
.ai-studio[data-behavior] .robot-body, .ai-studio[data-behavior] .robot-eyes, .ai-studio[data-behavior] .robot-wave, .ai-studio[data-behavior] .robot-look, .ai-studio[data-behavior] .robot-traveler, .ai-studio[data-behavior] .robot-foot, .ai-studio[data-behavior] .robot-mouth { animation-play-state: paused; }
.ai-studio.is-running .robot-body, .ai-studio.is-running .robot-eyes, .ai-studio.is-running .robot-wave, .ai-studio.is-running .robot-look, .ai-studio.is-running .robot-traveler, .ai-studio.is-running .robot-foot, .ai-studio.is-running .robot-mouth { animation-play-state: running; }
.robot-orbit { position: absolute; color: #9bad83; font: 18px var(--mono); pointer-events: none; }
.orbit-one { top: 25%; left: 13%; }
.orbit-two { bottom: 22%; right: 12%; font-size: 12px; }
.ai-studio-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #dce3d5; padding: 14px 20px; font-size: 10px; color: #6b785f; }
.ai-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 70px; }
.ai-capability { display: flex; flex-direction: column; border-top: 1px solid #cdd6c1; padding-top: 24px; }
.ai-capability-index { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #5b6652; margin-bottom: 23px; }
.ai-capability-index span { color: #74943f; margin-right: 7px; }
.ai-capability h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.045em; margin-bottom: 14px; }
.ai-capability > p:not(.ai-capability-index) { color: #646d5e; font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.ai-tools { margin-top: auto; font-size: 11px; color: #526246; }
.ai-tools span { padding-inline: 6px; color: #97aa82; }
@keyframes robot-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes robot-blink { 0%, 42%, 46%, 72%, 76%, 100% { transform: scaleY(1); } 44%, 74% { transform: scaleY(.08); } }
@keyframes robot-wave { 0%, 15%, 85%, 100% { transform: rotate(0); } 25%, 45%, 65% { transform: rotate(-22deg); } 35%, 55%, 75% { transform: rotate(7deg); } }
@keyframes robot-look { 0%, 100% { transform: translate(0, 0); } 20%, 35% { transform: translate(-5px, -2px); } 60%, 75% { transform: translate(5px, 2px); } }
@keyframes robot-walk { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(30px); } 75% { transform: translateX(-30px); } }
@keyframes robot-step { from { transform: translateY(0) rotate(0); } to { transform: translateY(-5px); } }
@keyframes robot-hop { 0%, 20%, 55%, 100% { transform: translateY(0) scale(1); } 26%, 61% { transform: translateY(2px) scale(1.025, .97); } 37%, 72% { transform: translateY(-13px) scale(.98, 1.02); } 46%, 81% { transform: translateY(0) scale(1.02, .98); } }
@keyframes robot-talk { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes robot-doze { 0%, 100% { transform: scaleY(1); } 20%, 80% { transform: scaleY(.12); } }
@media (max-width: 820px) {
  .ai-intro { grid-template-columns: 1fr; gap: 38px; }
  .ai-studio { width: 100%; max-width: 600px; }
  .ai-description { max-width: 600px; }
  .ai-capabilities { gap: 24px; margin-top: 50px; }
}
@media (max-width: 630px) {
  .ai-capabilities { grid-template-columns: 1fr; gap: 30px; }
  .ai-capability-index { margin-bottom: 15px; }
  .ai-capability > p:not(.ai-capability-index) { margin-bottom: 18px; }
  .ai-studio-bar, .ai-studio-footer { padding-inline: 14px; }
  .ai-studio-bar { font-size: 7px; }
  .ai-studio-footer { font-size: 9px; gap: 8px; }
  .robot-scene { min-height: 240px; }
  .ai-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-studio[data-behavior] .ai-robot * { animation: none; }
}

/* Contact */
.contact-section { padding-block: clamp(85px, 10vw, 150px); }
.contact-card { background: #1b201a; color: #f7f7f2; border-radius: 18px; padding: clamp(30px, 5vw, 74px); position: relative; overflow: hidden; isolation: isolate; }
.contact-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -185px; top: -170px; background: rgba(213,249,120,.065); border-radius: 50%; z-index: -1; }
.contact-eyebrow { color: #c1dd8d; display: flex; align-items: center; gap: 9px; margin-bottom: clamp(40px, 5vw, 72px); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; }
.contact-grid h2 { font-size: clamp(43px, 5.5vw, 81px); max-width: 730px; }
.contact-grid h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #e9f0e1; }
.contact-grid p { color: #b4beb0; max-width: 500px; font-size: 15px; line-height: 1.8; margin: 27px 0 0; }
.contact-links { padding-bottom: 4px; display: flex; flex-direction: column; gap: 17px; align-items: flex-start; }
.contact-email { font-size: clamp(17px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.045em; white-space: nowrap; padding-bottom: 10px; border-bottom: 1px solid #a0ac96; }
.contact-email .icon { margin-left: 9px; color: var(--lime); }
.contact-links button { color: #b4beb0; font-size: 12px; padding: 3px 0; border: none; background: transparent; }
.contact-links button:hover { color: white; text-decoration: underline; }
.contact-links button .icon { margin-left: 5px; }
.contact-links .coffee-button { margin-top: 8px; }
.contact-asterisk { position: absolute; right: 30px; top: 18px; font-size: 46px; color: var(--lime); animation: asterisk-turn 14s ease-in-out infinite; }
@keyframes asterisk-turn { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(35deg) scale(1.12); } }
.footer { border-top: 1px solid var(--stroke); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; font-size: 12px; color: #72796e; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%,20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; padding: 12px 18px; font-size: 13px; background: #293629; color: white; border-radius: 6px; z-index: 90; }
.toast.is-visible { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 1140px) {
  .hero { gap: 46px; }
  h1 { font-size: clamp(64px, 8vw, 105px); }
  .hero-visual { aspect-ratio: .89; }
  .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .projects .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .projects .project-card:last-child .project-art { height: auto; min-height: 260px; border-bottom: none; border-right: 1px solid var(--stroke); }
  .projects .project-card:last-child .project-content { align-self: center; }
  .project-content > p { min-height: unset; }
  .contact-grid { gap: 22px; }
}
@media (max-width: 820px) {
  .site-header { height: 70px; }
  .hero { grid-template-columns: 1fr; padding-top: 84px; gap: 58px; }
  .hero-copy { max-width: 650px; }
  h1 { font-size: clamp(80px, 12vw, 122px); }
  h1 .hey { font-size: clamp(39px, 6vw, 60px); }
  .hero-description { max-width: 590px; }
  .location-line { margin-top: 32px; }
  .hero-visual { width: min(100%, 650px); aspect-ratio: 1.6; box-shadow: 10px 12px 0 #e7ebdf; }
  .visual-sticker { right: -14px; }
  .section-head { align-items: start; }
  .section-head > p { margin-top: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  .about-copy > p { max-width: 700px; }
  .languages { max-width: 700px; margin-top: 20px; }
  .stack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 34px; }
  .stack-block { margin-top: 58px; }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-links { align-items: flex-start; }
  .contact-card { padding-bottom: 55px; }
}
@media (max-width: 630px) {
  :root { --pad: 22px; }
  .site-header { height: 65px; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; display: none; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--stroke); flex-direction: column; align-items: stretch; gap: 0; padding: 11px var(--pad) 22px; box-shadow: 0 12px 24px rgba(20,25,15,.05); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 4px; font-size: 17px; }
  .site-nav a:not(:last-child) { border-bottom: 1px solid var(--stroke); }
  .site-nav a:not(:last-child)::after { display: none; }
  .site-nav a:last-child { align-self: flex-start; margin-top: 15px; padding: 11px 20px; font-size: 15px; }
  .site-nav a[data-reveal] { opacity: 1; transform: none; }
  .hero { padding-top: 70px; padding-bottom: 65px; gap: 48px; }
  h1 { font-size: clamp(61px, 15vw, 98px); }
  h1 .hey { font-size: clamp(33px, 8.5vw, 50px); margin-bottom: 12px; }
  h1 .outlined-name { -webkit-text-stroke: 1.4px var(--ink); }
  .hero-description { margin-top: 26px; font-size: 16px; line-height: 1.7; }
  .hero-visual { aspect-ratio: 1.13; }
  .visual-bar { padding: 16px; }
  .thin-divider { font-size: 9px; }
  .thin-divider > span:last-child { display: none; }
  .section { padding-block: 76px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head > p { max-width: 450px; width: auto; margin-top: 20px; font-size: 14px; }
  h2 { font-size: clamp(41px, 11vw, 64px); }
  .projects { grid-template-columns: 1fr; gap: 18px; }
  .projects .project-card:last-child { grid-column: auto; display: block; }
  .projects .project-card:last-child .project-art { height: 240px; border-bottom: 1px solid var(--stroke); border-right: 0; }
  .project-content { padding: 23px 22px 24px; }
  .project-content > p { margin-bottom: 20px; }
  .journey-item { grid-template-columns: 1fr; gap: 8px; padding-block: 20px; }
  .journey-item > span { padding-top: 0; }
  .contact-section { padding-block: 75px; }
  .contact-card { border-radius: 13px; }
  .contact-grid h2 em { -webkit-text-stroke: 1px #e9f0e1; }
  .contact-asterisk { right: 20px; top: 14px; font-size: 30px; }
  .contact-asterisk .icon-star { width: 26px; height: 26px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner span:nth-child(2) { display: none; }
}
@media (max-width: 390px) {
  :root { --pad: 18px; }
  h1 { font-size: clamp(58px, 15.5vw, 68px); }
  h1 .hey { font-size: 33px; }
  .hero-actions { gap: 20px; }
  .button { padding-inline: 16px; }
  .underlined-link { gap: 10px; }
  .visual-bar { font-size: 9px; }
  .stack-grid { grid-template-columns: 1fr; gap: 23px; }
  .stack-grid > div { border-top: 1px solid #d7dad1; padding-top: 16px; }
  .stack-grid h3 { margin-bottom: 5px; }
  .contact-email { font-size: 17px; letter-spacing: -.04em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .brand-motion { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  h2 .title-ghost { visibility: visible; }
  h2 .title-typed { display: none; }
}
/* Keep the playful sticker inside the viewport on very small phones. */
@media (max-width: 430px) {
  .visual-sticker { right: -7px; }
}
@supports not (-webkit-text-stroke: 1px black) {
  h1 .outlined-name, #work-title em, #ai-title em { color: #f7f7f2; text-shadow: -1px -1px 0 #1a1c18, 1px -1px 0 #1a1c18, -1px 1px 0 #1a1c18, 1px 1px 0 #1a1c18; }
  .contact-grid h2 em { color: #1b201a; text-shadow: -1px -1px 0 #e9f0e1, 1px -1px 0 #e9f0e1, -1px 1px 0 #e9f0e1, 1px 1px 0 #e9f0e1; }
}
