@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101411;
  --bg-soft: #151b17;
  --surface: #171e19;
  --surface-raised: #1c251f;
  --text: #edf3ed;
  --muted: #9aa89d;
  --subtle: #68766c;
  --line: rgba(211, 232, 215, .12);
  --accent: #c0f36b;
  --accent-dark: #10180b;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(rgba(193, 243, 107, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(193, 243, 107, .018) 1px, transparent 1px); background-size: 56px 56px; content: ''; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--accent-dark); background: var(--accent); }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; background: var(--accent); color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(192, 243, 107, .38); border-radius: 9px; background: rgba(192, 243, 107, .09); color: var(--accent); font-size: 15px; }
.brand-period, .footer-brand span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); margin-left: auto; }
.main-nav a, .text-link { color: var(--muted); font-size: 12px; font-weight: 600; transition: color .18s ease; }
.main-nav a:hover, .text-link:hover { color: var(--accent); }
.language-switch { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.language-button { min-width: 34px; padding: 6px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); cursor: pointer; font-family: var(--mono); font-size: 10px; transition: background .18s ease, color .18s ease; }
.language-button:hover { color: var(--text); }
.language-button.is-active { background: var(--accent); color: var(--accent-dark); font-weight: 500; }

.hero { position: relative; display: grid; min-height: 610px; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 8vw, 105px); padding-block: 88px 106px; }
.hero-copy { max-width: 620px; }
.eyebrow, .hero-kicker, .section-index, .project-overline, .terminal-label, .terminal-live, .terminal-foot, .scroll-cue, .project-stack, .visual-caption, .visual-version, .service-number { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 30px; padding: 8px 11px; border: 1px solid rgba(192, 243, 107, .2); border-radius: 99px; background: rgba(192, 243, 107, .055); color: #c4d2c4; font-size: 10px; letter-spacing: .025em; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(192, 243, 107, .58); }
.hero-kicker { margin: 0 0 13px; color: var(--accent); font-size: 11px; letter-spacing: .035em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 23px; font-size: clamp(42px, 6vw, 70px); font-weight: 700; letter-spacing: -.075em; line-height: 1.08; }
.accent-text { color: var(--accent); }
.hero-description { max-width: 510px; margin-bottom: 30px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 15px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-dark); }
.button-primary:hover { background: #d1ff83; }
.button-small { min-height: 37px; padding-inline: 13px; border-color: rgba(192, 243, 107, .35); background: rgba(192, 243, 107, .08); color: var(--accent); }
.button-small:hover { border-color: var(--accent); background: rgba(192, 243, 107, .14); }
.text-link { display: inline-flex; align-items: center; gap: 8px; }

.terminal-card { position: relative; overflow: hidden; border: 1px solid rgba(209, 232, 213, .16); border-radius: 12px; background: linear-gradient(145deg, rgba(28, 37, 31, .98), rgba(19, 25, 21, .98)); box-shadow: 0 30px 90px rgba(0, 0, 0, .28), 0 0 50px rgba(192, 243, 107, .04); transform: rotate(1deg); }
.terminal-card::after { position: absolute; right: -95px; bottom: -130px; width: 280px; height: 280px; border-radius: 50%; background: rgba(192, 243, 107, .045); content: ''; filter: blur(10px); pointer-events: none; }
.terminal-topbar { display: flex; height: 49px; align-items: center; justify-content: space-between; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #617066; }
.window-dots i:first-child { background: #d87566; }
.window-dots i:nth-child(2) { background: #d2ad5c; }
.window-dots i:nth-child(3) { background: #83ba70; }
.terminal-label { color: #8b9a8e; font-size: 9px; }
.terminal-live { display: inline-flex; align-items: center; gap: 6px; color: #b9c8bc; font-size: 9px; }
.terminal-live .status-dot { width: 5px; height: 5px; }
.terminal-body { min-height: 235px; padding: 25px 23px 16px; color: #dce7dc; font-family: var(--mono); font-size: 11px; line-height: 1.4; }
.terminal-body p { margin-bottom: 14px; }
.terminal-comment { color: #748478; }
.terminal-prompt { margin-right: 8px; color: var(--accent); }
.terminal-output { margin: 16px 0 19px 16px; color: #b5c2b7; }
.terminal-output p { margin-bottom: 9px; }
.terminal-dir { margin-right: 6px; color: var(--accent); }
.terminal-file { margin-right: 6px; color: #8aa1cf; }
.terminal-ready { display: flex; align-items: center; }
.cursor { display: inline-block; width: 6px; height: 13px; background: var(--accent); animation: blink 1.15s steps(2, start) infinite; }
.terminal-foot { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); color: #748478; font-size: 8px; }
.scroll-cue { position: absolute; bottom: 34px; left: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 9px; }
.scroll-line { width: 30px; height: 1px; background: var(--accent); }

.section { padding-block: 70px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-index { margin-bottom: 11px; color: var(--accent); font-size: 9px; letter-spacing: .1em; }
.section-heading h2, .about-copy h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.2; }
.section-aside { max-width: 250px; margin-bottom: 3px; color: var(--subtle); font-size: 11px; line-height: 1.7; text-align: right; }
.project-card { display: grid; grid-template-columns: 1fr 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(192, 243, 107, .36); }
.project-main { padding: 30px 30px 25px; }
.project-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.project-overline { margin-bottom: 8px; color: var(--subtle); font-size: 8px; letter-spacing: .14em; }
.project-overline span { margin-inline: 4px; color: var(--accent); }
.project-title-row h3 { margin: 0; font-size: 31px; letter-spacing: -.06em; }
.project-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; color: #bdc9bf; font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.project-status .status-dot { width: 5px; height: 5px; }
.project-description { max-width: 680px; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-description code { color: var(--accent); font-family: var(--mono); }
.project-tags, .skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span, .skill-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .018); color: #b4c0b6; font-family: var(--mono); font-size: 8px; }
.project-visual { position: relative; display: grid; min-height: 230px; place-items: center; overflow: hidden; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 52% 47%, rgba(192, 243, 107, .11), transparent 55%), #141b16; }
.project-visual::before, .project-visual::after { position: absolute; width: 165px; height: 165px; border: 1px solid rgba(192, 243, 107, .11); border-radius: 50%; content: ''; }
.project-visual::after { width: 215px; height: 215px; border-color: rgba(192, 243, 107, .055); }
.folder-icon { position: relative; z-index: 1; display: grid; width: 78px; height: 61px; align-content: center; gap: 7px; padding: 13px; border: 1px solid rgba(192, 243, 107, .46); border-radius: 8px; background: linear-gradient(145deg, rgba(192, 243, 107, .21), rgba(192, 243, 107, .06)); box-shadow: 0 0 38px rgba(192, 243, 107, .08); transform: rotate(-8deg); }
.folder-icon span { display: block; height: 3px; border-radius: 3px; background: var(--accent); opacity: .7; }
.folder-icon span:nth-child(2) { width: 73%; opacity: .42; }
.folder-icon span:nth-child(3) { width: 46%; opacity: .27; }
.visual-caption, .visual-version { position: absolute; z-index: 1; bottom: 17px; color: #728075; font-size: 8px; }
.visual-caption { left: 16px; }
.visual-version { right: 16px; color: var(--accent); }
.project-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 30px; border-top: 1px solid var(--line); }
.project-stack { display: flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 8px; }
.project-stack strong { color: var(--text); font-family: var(--sans); font-size: 10px; }

.services-section { padding-bottom: 76px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { position: relative; min-height: 218px; padding: 22px 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(23, 30, 25, .75); transition: border-color .2s ease, background .2s ease; }
.service-card:hover { border-color: rgba(192, 243, 107, .35); background: var(--surface); }
.service-number { position: absolute; top: 22px; right: 20px; color: #647168; font-size: 9px; }
.service-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 28px; border: 1px solid rgba(192, 243, 107, .19); border-radius: 8px; background: rgba(192, 243, 107, .07); color: var(--accent); font-family: var(--mono); font-size: 14px; }
.service-card h3 { margin-bottom: 9px; font-size: 13px; letter-spacing: -.025em; }
.service-card p { max-width: 270px; margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.service-line { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform .25s ease; }
.service-card:hover .service-line { transform: scaleX(1); }

.about-section { display: grid; grid-template-columns: 180px 1fr; gap: 55px; align-items: center; padding: 61px 0 72px; border-top: 1px solid var(--line); }
.about-mark { position: relative; display: grid; width: 155px; height: 155px; place-items: center; border: 1px solid rgba(192, 243, 107, .18); border-radius: 50%; background: radial-gradient(circle, rgba(192, 243, 107, .1), rgba(192, 243, 107, .015) 62%, transparent 63%); color: var(--text); font-size: 61px; font-weight: 800; letter-spacing: -.1em; }
.about-mark::before, .about-mark::after { position: absolute; inset: 12px; border: 1px dashed rgba(192, 243, 107, .17); border-radius: 50%; content: ''; }
.about-mark::after { inset: -8px; border-style: solid; border-color: rgba(192, 243, 107, .07); }
.about-mark span { color: var(--accent); }
.about-copy h2 { max-width: 610px; margin-bottom: 15px; }
.about-copy > p:not(.section-index) { max-width: 680px; margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.skill-list span { padding: 7px 10px; }

.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 70px; padding: 30px; border: 1px solid rgba(192, 243, 107, .2); border-radius: 10px; background: radial-gradient(ellipse at 100% 0%, rgba(192, 243, 107, .09), transparent 43%), var(--surface); }
.contact-section h2 { margin-bottom: 9px; }
.contact-copy { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.contact-button { flex: 0 0 auto; }
.site-footer { display: flex; min-height: 68px; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; }
.footer-brand { color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.site-footer > [data-i18n='footerNote'] { margin-right: auto; }
.back-top { color: var(--muted); transition: color .18s ease; }
.back-top:hover { color: var(--accent); }
.copyright { color: #68766c; font-family: var(--mono); }

@keyframes blink { to { visibility: hidden; } }

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 580px); }
  .site-header { min-height: 72px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding-top: 7px; }
  .main-nav a { font-size: 10px; }
  .language-switch { margin-left: auto; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 44px; padding-block: 72px 90px; }
  .hero-copy { max-width: 590px; }
  h1 { font-size: clamp(43px, 11vw, 62px); }
  .terminal-card { width: min(100%, 490px); margin-left: auto; transform: none; }
  .scroll-cue { bottom: 31px; }
  .section { padding-block: 55px; }
  .project-card { grid-template-columns: 1fr 175px; }
  .project-main { padding: 24px 22px; }
  .project-footer { padding-inline: 22px; }
  .project-status { white-space: normal; }
  .about-section { grid-template-columns: 125px 1fr; gap: 28px; }
  .about-mark { width: 120px; height: 120px; font-size: 48px; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 56px; }
  .eyebrow { margin-bottom: 23px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 17px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-aside { max-width: none; margin: 0; text-align: left; }
  .project-card { grid-template-columns: 1fr; }
  .project-main { padding: 22px 18px; }
  .project-title-row { flex-direction: column; }
  .project-title-row h3 { font-size: 28px; }
  .project-visual { min-height: 175px; border-top: 1px solid var(--line); border-left: 0; }
  .project-footer { padding: 14px 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 190px; }
  .service-icon { margin-bottom: 21px; }
  .about-section { grid-template-columns: 1fr; gap: 27px; }
  .about-mark { width: 96px; height: 96px; font-size: 39px; }
  .about-mark::before { inset: 8px; }
  .contact-section { align-items: start; flex-direction: column; padding: 24px 20px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding-block: 18px; }
  .site-footer > [data-i18n='footerNote'] { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
