:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --text: #111111;
  --muted: #666666;
  --muted-light: #888888;
  --border: #e8e8e8;
  --border-dark: #d7d7d7;
  --black: #111111;
  --accent: #111111;
  --radius: 8px;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Remove the previous cinematic overlays for a clean editorial portfolio. */
#mouse-light, .grid, .h-bg-orbs, .h-orb, .h-ring, .av-orbit, .sec-dots, .float-cta, .mq-sec { display: none !important; }

#progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 2px;
  background: var(--black);
  z-index: 9999;
}

/* Navigation */
header { position: relative; z-index: 100; }
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 clamp(20px, 7.2vw, 116px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s ease;
}
#nav.on { box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.n-logo {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.45px;
  white-space: nowrap;
}
.n-logo .dot { color: inherit; }
.n-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.n-links a {
  position: relative;
  padding: 8px 0;
  color: #262626;
  font-size: 12px;
  font-weight: 500;
  transition: color .2s ease;
}
.n-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width .25s ease;
}
.n-links a:hover::after, .n-links a.act::after { width: 100%; }
.n-right { display: flex; align-items: center; gap: 22px; }
.n-avail { display: none; }
.ham { display: none; }
.mob-menu { display: none; }

/* Shared sections */
section { position: relative; z-index: 1; background: #fff; }
.inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 74px 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #777;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: none; }
.s-title {
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 750;
  letter-spacing: -1.25px;
  line-height: 1.1;
}
.s-title .t, .s-title .p, .s-title .v { color: inherit; }
.rv, .rl, .rr { opacity: 1; transform: none; }
.line-reveal, .line-reveal-inner { overflow: visible; transform: none; }

/* Hero */
#hero {
  min-height: 570px;
  padding: 132px clamp(28px, 7.2vw, 116px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 52px;
  border-bottom: 1px solid var(--border);
}
.h-content { max-width: 510px; }
.h-name-wrap { margin-bottom: 18px; }
.h-name {
  display: block;
  color: var(--text);
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 780;
  letter-spacing: -2.3px;
  line-height: 1.05;
}
.h-r2 { display: none; }
.h-name .hc-word { display: inline-block; }
.h-sub {
  max-width: 470px;
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.mbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--black);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -.1px;
  text-transform: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mbtn:hover { transform: translateY(-1px); }
.mbtn-p { background: var(--black); color: #fff; }
.mbtn-p:hover { background: #333; }
.mbtn-o { background: #fff; color: var(--black); border-color: #bdbdbd; }
.mbtn-o:hover { background: #f6f6f6; }
.mbtn::before { display: none; }
.h-stats { display: flex; gap: 28px; }
.h-stat { display: flex; flex-direction: column; gap: 0; }
.h-stat + .h-stat { padding-left: 28px; border-left: 1px solid var(--border); }
.h-stat-n { font-size: 25px; font-weight: 750; letter-spacing: -.7px; line-height: 1.2; }
.h-stat-n em { font-style: normal; }
.h-stat-l { color: #777; font-size: 11px; }
.h-decor { position: relative; min-height: 340px; display: flex; align-items: end; justify-content: center; }
.h-my-img {
  display: block;
  width: min(100%, 470px);
  height: 350px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.08));
}
.h-scroll { display: none; }

/* About */
#about { border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 72px; align-items: center; }
.about-left .s-title { margin-bottom: 24px; }
.about-body { max-width: 600px; }
.about-body p { margin-bottom: 14px; color: #656565; font-size: 14px; line-height: 1.8; }
.about-body strong { color: var(--text); font-weight: 650; }
.a-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.a-tag { padding: 5px 11px; border: 1px solid var(--border-dark); border-radius: 999px; color: #555; font-size: 11px; }
.a-tag:hover { background: #f6f6f6; color: #111; }
.av-scene { width: min(100%, 300px); height: 300px; margin: 0 auto; position: relative; }
.av-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.av-frame { width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #f5f5f5; }
.av-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Skills */
#skills { background: #fff; border-bottom: 1px solid var(--border); }
.sk-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.sk-card, .sk-card.sk-featured {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 260px;
  padding: 23px 21px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sk-card.sk-featured { grid-row: auto; }
.sk-card:hover { background: #fff; border-color: #c8c8c8; box-shadow: 0 8px 24px rgba(0,0,0,.045); transform: translateY(-2px); }
.sk-card::after { display: none; }
.sk-bg-num { position: static; margin-bottom: 12px; color: #999; font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.sk-icon { display: block; margin-bottom: 15px; }
.sk-icon svg { width: 26px; height: 26px; color: #111; stroke-width: 1.5; }
.sk-nm { margin-bottom: 9px; color: #111; font-size: 16px; font-weight: 700; letter-spacing: -.35px; line-height: 1.3; }
.sk-desc { color: #6b6b6b; font-size: 12px; line-height: 1.7; }
.sk-bottom { margin-top: auto; padding-top: 20px; }
.sk-tech-label { display: block; margin-bottom: 9px; color: #888; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.sk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.stag { padding: 3px 7px; background: #f7f7f7; border: 1px solid #ededed; border-radius: 4px; color: #555; font-size: 10px; line-height: 1.4; }
.sk-card:hover .stag { background: #f7f7f7; border-color: #ededed; color: #555; }

/* Contact */
#contact { background: #fff; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.ct-body p { max-width: 470px; margin-bottom: 20px; color: #666; font-size: 14px; line-height: 1.8; }
.ct-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.ct-form-group { display: flex; flex-direction: column; }
.ct-form-label { margin-bottom: 6px; color: #333; font-size: 11px; font-weight: 600; }
.ct-form-input { width: 100%; padding: 11px 12px; background: #fff; border: 1px solid #dcdcdc; border-radius: 5px; color: #111; font-size: 13px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.ct-form-input:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
textarea.ct-form-input { min-height: 125px; resize: vertical; }
.mbtn-submit { width: fit-content; margin-top: 3px; }
.form-status { margin-top: 5px; color: #555; font-size: 12px; }
.ct-socials { margin-top: 30px; }
.ct-soc-label { margin-bottom: 10px; color: #777; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.soc-row { display: flex; gap: 8px; }
.soc-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 50%; color: #111; transition: background .2s ease, border-color .2s ease; }
.soc-btn:hover { background: #f4f4f4; border-color: #bbb; }
.soc-btn svg { width: 14px; height: 14px; fill: currentColor; }
.ct-status { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; }
.ct-sdot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: #111; }
.ct-stxt { display: flex; flex-direction: column; gap: 1px; }
.ct-stxt strong { font-size: 13px; font-weight: 700; }
.ct-stxt span { color: #777; font-size: 12px; }
.ct-info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ct-info-card { padding: 17px; border: 1px solid var(--border); border-radius: 7px; }
.ci-label { display: block; margin-bottom: 5px; color: #888; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.ci-value, .ci-email-btn { color: #222; font-size: 13px; overflow-wrap: anywhere; }
.ci-email-btn { display: flex; align-items: center; gap: 8px; }
.ci-email-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Footer */
footer { padding: 28px clamp(28px, 7.2vw, 116px) 24px; border-top: 1px solid var(--border); background: #fff; }
.ft-top, .ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.ft-top { padding-bottom: 26px; }
.ft-logo { font-size: 16px; font-weight: 750; letter-spacing: -.4px; }
.ft-logo .dot { color: inherit; }
.ft-logo p { margin-top: 4px; color: #888; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.ft-nav { display: flex; gap: 24px; list-style: none; }
.ft-nav a { color: #666; font-size: 12px; }
.ft-nav a:hover { color: #111; }
.ft-bottom { padding-top: 18px; border-top: 1px solid var(--border); }
.ft-bottom p { color: #888; font-size: 10px; }
.ft-bottom p span { color: #444; }
.ft-time { display: flex; align-items: center; gap: 8px; color: #888; font-family: var(--font-mono); font-size: 10px; }
.ft-time-dot { width: 6px; height: 6px; border-radius: 50%; background: #111; }

@media (max-width: 900px) {
  #nav { padding: 0 28px; }
  #hero { grid-template-columns: 1fr 1fr; gap: 25px; padding-left: 28px; padding-right: 28px; }
  .h-name { font-size: clamp(34px, 5vw, 48px); }
  .h-decor { min-height: 280px; }
  .h-my-img { height: 300px; }
  .about-grid, .ct-grid { gap: 38px; }
  .sk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  #nav { height: 64px; padding: 0 20px; }
  .n-links { display: none; }
  .n-right { gap: 0; }
  .ham { width: 35px; height: 35px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 8px 5px; }
  .ham span { width: 22px; height: 1.5px; background: #111; transition: transform .25s ease, opacity .25s ease; }
  .ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .ham.open span:nth-child(2) { opacity: 0; }
  .ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mob-menu { position: fixed; inset: 64px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 35px 24px; background: #fff; border-top: 1px solid var(--border); transform: translateX(100%); transition: transform .3s ease; }
  .mob-menu.open { transform: translateX(0); }
  .mob-link { color: #111; font-size: 24px; font-weight: 700; }
  .mob-num { display: inline-block; margin-right: 8px; color: #999; font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
  .inner { padding: 56px 20px; }
  .s-title { font-size: 31px; letter-spacing: -1px; }
  #hero { min-height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 106px 20px 35px; }
  .h-content { max-width: none; }
  .h-name { font-size: clamp(38px, 10vw, 52px); letter-spacing: -1.8px; }
  .h-sub { max-width: none; font-size: 13px; }
  .h-cta { gap: 9px; }
  .mbtn { padding: 9px 17px; font-size: 11px; }
  .h-decor { order: 2; min-height: 245px; margin-top: -10px; }
  .h-my-img { width: 100%; height: 270px; }
  .about-grid, .ct-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-right { order: -1; }
  .av-scene { width: min(100%, 290px); height: 290px; }
  .sk-bento { grid-template-columns: 1fr; gap: 10px; }
  .sk-card, .sk-card.sk-featured { min-height: auto; padding: 22px 19px; }
  .sk-bottom { margin-top: 20px; }
  .ct-grid { gap: 30px; }
  .ct-right { margin-top: 0; }
  .ft-top, .ft-bottom { align-items: flex-start; flex-direction: column; }
  .ft-nav { gap: 18px; }
}

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