:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #111111;
  --muted: #686868;
  --accent: #111111;
  --accent-soft: #f5f5f7;
  --green: #111111;
  --line: rgba(17, 17, 17, 0.11);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: rgba(28, 28, 30, 0.72);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #f5f5f7;
    --accent-soft: #1c1c1e;
    --green: #f5f5f7;
    --line: rgba(255, 255, 255, 0.13);
    --glass: rgba(28, 28, 30, 0.62);
    --glass-strong: rgba(28, 28, 30, 0.82);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: -.01em;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: #fff; background: #000; border-radius: 999px; transform: translateY(-140%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
button, a { touch-action: manipulation; }
.ambient-light {
  position: fixed; z-index: -1; pointer-events: none; width: 46vw; height: 46vw;
  border-radius: 50%; filter: blur(80px); opacity: .28; transform: translateZ(0);
}
.ambient-one { top: -20vw; right: -12vw; background: radial-gradient(circle, rgba(0,113,227,.32), transparent 66%); }
.ambient-two { top: 42vh; left: -24vw; background: radial-gradient(circle, rgba(174,174,178,.32), transparent 66%); }
.liquid-glass, .liquid-control { position: relative; isolation: isolate; }
.liquid-glass::after, .liquid-control::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.1), inset 1px 0 0 rgba(255,255,255,.14), 0 1px 1px rgba(0,0,0,.04);
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  width: min(1120px, calc(100% - 28px));
  min-height: 52px; margin: max(10px, env(safe-area-inset-top)) auto 0; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--glass) 46%, transparent);
  -webkit-backdrop-filter: saturate(190%) contrast(108%) blur(22px);
  backdrop-filter: saturate(190%) contrast(108%) blur(22px);
  border: 1px solid color-mix(in srgb, var(--glass-border) 78%, transparent);
  border-radius: 19px;
  box-shadow: 0 12px 38px rgba(0,0,0,.10), inset 0 0 0 .5px rgba(255,255,255,.22);
}
.logo {
  display: grid; place-items: center; width: 72px; height: 38px;
  border: 0; border-radius: 0;
  font-weight: 650; text-decoration: none; font-size: .78rem; letter-spacing: -.03em;
}
.logo picture { display: contents; }
.logo img { display: block; width: 68px; height: 36px; object-fit: contain; }
nav { display: flex; gap: 34px; }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; }
nav a:hover, footer a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-toggle {
  border: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent); background: color-mix(in srgb, var(--glass) 38%, transparent); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.language-toggle { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
main { width: min(1120px, calc(100% - 40px)); margin: auto; }
.hero {
  min-height: calc(100dvh - 64px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 58px; padding: 90px 0 120px; text-align: center;
}
.hero-copy { max-width: 980px; }
.eyebrow { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .2em; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; }
h1 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", sans-serif; font-size: clamp(3.5rem, 8vw, 7.2rem); font-weight: 700; font-style: normal; letter-spacing: -.065em; margin-bottom: 30px; }
h1 span { color: var(--muted); font-weight: 700; font-style: normal; }
.intro { max-width: 700px; margin-inline: auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }
.button:hover, .language-toggle:hover { transform: scale(1.035); }
.button:active, .language-toggle:active { transform: scale(.965); }
.button.primary { background: color-mix(in srgb, #0071e3 76%, transparent); color: #ffffff; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 5px 18px rgba(0,113,227,.24); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.button.primary:hover { background: #0077ed; }
.button.secondary { color: #0071e3; background: color-mix(in srgb, var(--glass) 32%, transparent); border: 1px solid color-mix(in srgb, #0071e3 52%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.portrait-card { position: relative; min-height: 280px; width: 100%; display: grid; place-items: center; }
.portrait-placeholder {
  position: relative; z-index: 2; width: min(720px, 92vw); height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 72%, var(--bg)));
  border: 1px solid var(--line); border-radius: 32px; box-shadow: none; overflow: hidden;
}
.portrait-placeholder::after { display: none; }
.memoji { display: block; width: auto; height: 118%; max-width: 86%; object-fit: contain; object-position: center bottom; transform: translateY(8%); filter: drop-shadow(0 18px 28px rgba(0,0,0,.12)); }
.orbit { display: none; }
.orbit-one { width: 410px; height: 410px; }
.orbit-two { width: 480px; height: 310px; transform: rotate(40deg); }
.section { padding: 150px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 55px; }
h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", sans-serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; font-style: normal; letter-spacing: -.055em; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; }
.about-lead { font-size: clamp(1.8rem, 3.3vw, 3rem); font-weight: 600; line-height: 1.16; letter-spacing: -.04em; margin: 0; }
.about-details { color: var(--muted); font-size: 1.05rem; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.skills span { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: none; }
.project-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr .75fr; }
.project-visual { min-height: 280px; display: grid; place-items: center; }
.featured .project-visual { min-height: 420px; }
.project-visual span { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; font-size: 5rem; font-weight: 700; font-style: normal; letter-spacing: -.06em; color: rgba(255,255,255,.82); }
.visual-one { background: #181818; }
.visual-two { background: #777777; }
.visual-three { background: #d2d2d7; }
.project-info { padding: 32px; }
.featured .project-info { display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.project-type { color: var(--accent); font-size: .78rem; letter-spacing: .1em; }
.project-info h3 { font-size: 1.8rem; font-weight: 650; letter-spacing: -.035em; }
.project-info p { color: var(--muted); }
.project-info a { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 600; }
.coming-soon { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.contact-card { padding: clamp(55px, 9vw, 110px); color: #ffffff; background: #000000; border: 1px solid rgba(255,255,255,.14); border-radius: 32px; text-align: center; box-shadow: none; }
.contact-card h2 { margin-bottom: 20px; }
.contact-card > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 28px; opacity: .75; }
.email-link { display: inline-block; font-size: clamp(1.4rem, 4vw, 3rem); font-weight: 600; font-style: normal; letter-spacing: -.04em; color: #ffffff; text-decoration-color: #86868b; text-underline-offset: 8px; }
.social-links { display: flex; justify-content: center; gap: 28px; margin-top: 40px; }
.social-links a { color: #2997ff; text-decoration: none; opacity: 1; }
footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 28px 0 45px; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.reveal { opacity: 1; transform: none; transition: opacity .36s ease, transform .36s ease; }
.js .reveal { opacity: 0; transform: translateY(12px); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 820px) {
  nav { display: none; }
  .hero { padding-top: 65px; }
  .portrait-card { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .project-card.featured { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  main, .site-header, footer { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .featured .project-visual { min-height: 300px; }
  .featured .project-info { padding: 32px; }
  .portrait-placeholder { height: 250px; border-radius: 24px; }
  .memoji { height: 112%; max-width: 94%; }
  .social-links { flex-wrap: wrap; }
  footer { gap: 20px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .js .reveal, .reveal { opacity: 1; transform: none; transition: none; } .button:hover, .language-toggle:hover, .button:active, .language-toggle:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) {
  .site-header, .portrait-placeholder, .liquid-control { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .contact-card { background: #000000; }
}
