:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --surface-2: #efe6dc;
  --text: #1b1714;
  --muted: #6d655f;
  --line: rgba(27, 23, 20, 0.1);
  --accent: #1b1714;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 2rem));
}

.section {
  padding: 5rem 0;
}

.section-label,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(246, 242, 236, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  font-size: 0.96rem;
  color: var(--text);
}

.resume-link {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: 0.2s ease;
}

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 40rem;
  color: var(--text);
  font-weight: 600;
}

.hero-text {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-card {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-lg) - 8px);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.01)),
    var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.project-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.project-card a {
  font-weight: 700;
}

.project-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.logo-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.logo-pill {
  min-height: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.stats-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-links a {
  font-weight: 700;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.95rem 1rem;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(27, 23, 20, 0.15);
  border-color: rgba(27, 23, 20, 0.25);
}

.form-message {
  margin-top: 1rem;
  min-height: 1.2rem;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .cards-grid,
  .logo-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.98);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .contact-grid,
  .cards-grid,
  .logo-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}
/* Project */
.project-index-hero {
  padding-bottom: 0.1rem;
}

.project-index-section {
  padding-top: 1rem;
}

/* ABOUT */

.about-shell {
  padding-top: 3rem;
}

.about-frame {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 1.2rem;
}

.about-toolbar {
  margin-bottom: 1.5rem;
}

.about-toolbar-inner {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}

.about-header {
  text-align: center;
  padding: 0 0.7rem;
  margin-bottom: 1.75rem;
}

.about-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
}

.about-subtitle {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--muted);
}

.about-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.about-video-card,
.about-text-card,
.cred-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.about-video,
.video-embed {
  width: 100%;
  border-radius: 20px;
  background: #000;
}

.about-video {
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-embed {
  position: relative;
  padding-top: 62.5%;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-card p:last-child {
  margin-bottom: 0;
}

.about-cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cred-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cred-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.cred-card h3 {
  margin-bottom: 0.6rem;
}

.cred-card p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .about-main {
    grid-template-columns: 1fr;
  }

  .about-cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .about-frame {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .about-toolbar-inner,
  .about-video-card,
  .about-text-card,
  .cred-card {
    border-radius: 22px;
  }

  .about-title {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .about-cred-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Template */

.project-detail-shell {
  padding-top: 3rem;
}

.blog-project-frame {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 1.2rem;
}

.blog-project-toolbar {
  margin-bottom: 1.5rem;
}

.blog-project-toolbar-inner {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}

.toolbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.blog-project-header {
  padding: 0 0.7rem;
  margin-bottom: 1.8rem;
}

.blog-project-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
}

.blog-project-subtitle {
  max-width: 58rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.blog-project-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.blog-project-video-card,
.blog-project-text-card,
.project-lower-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.project-video {
  width: 100%;
  display: block;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-detail-meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.meta-block {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.meta-value {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.blog-project-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-detail-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.project-detail-list li + li {
  margin-top: 0.65rem;
}

@media (max-width: 980px) {
  .blog-project-main,
  .blog-project-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .blog-project-frame {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .blog-project-toolbar-inner,
  .blog-project-video-card,
  .blog-project-text-card,
  .project-lower-panel {
    border-radius: 22px;
  }

  .blog-project-header {
    padding: 0 0.25rem;
  }

  .blog-project-title {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }
}

/** underline link thm-projects page **/ 

.THMLINK {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}