﻿:root {
  --bg: #efefec;
  --panel: #f8f8f5;
  --panel-2: #ecece9;
  --ink: #111216;
  --muted: #525560;
  --line: #ced1d9;
  --charcoal: #22242b;
  --black: #050506;
  --offwhite: #f8f8f5;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 100% -22%, #c2c5cd 0%, transparent 64%),
    radial-gradient(960px 460px at -8% 18%, #b8bbc4 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1160px, 92%);
  margin: 0 auto;
}

main {
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(239, 239, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 18, 22, 0.12);
}

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

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.03rem;
  font-weight: 700;
}

.brand span {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 2px solid var(--black);
  background: var(--offwhite);
  color: var(--black);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.5rem 0.78rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.menu-toggle:hover {
  background: var(--charcoal);
  color: var(--offwhite);
}

.site-nav {
  display: flex;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-list>li>a,
.dropdown-toggle {
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.56rem 0.78rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-list>li>a:hover,
.dropdown-toggle:hover,
.nav-list>li>a.active {
  border-color: var(--line);
  background: rgba(248, 248, 245, 0.84);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 220px;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a {
  display: block;
  text-decoration: none;
  padding: 0.52rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
}

.dropdown-menu a:hover {
  background: #ececea;
}

.dropdown-menu a.active {
  background: #dfe2e9;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.home-hero,
.page-hero,
.case-hero,
.contact-hero {
  padding: 4rem 0 1.2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #3f424b;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.018em;
  font-size: clamp(2.05rem, 5.8vw, 4rem);
  line-height: 1.03;
  max-width: 13ch;
}

.page-hero h1,
.contact-hero h1 {
  max-width: 16ch;
}

.intro {
  margin: 1rem 0 0;
  color: #3f424b;
  font-size: 1.03rem;
  line-height: 1.72;
  max-width: 66ch;
}

.subtle-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-actions,
.inline-actions {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.section-block {
  padding-top: 1.1rem;
}

.section-head {
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem 0 1.7rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 248, 245, 0.82);
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  border-color: var(--muted);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  background: #e8e8e8;
}

.project-body {
  padding: 1rem;
}

.project-body h3 {
  font-size: 1.12rem;
}

.project-body p {
  margin: 0.58rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.chip {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #b8bbc4;
  border-radius: 999px;
  padding: 0.31rem 0.6rem;
  background: #ececea;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.approach-card,
.toolkit-card,
.section-card,
.case-panel,
.resume-card,
.about-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.approach-card h3,
.toolkit-card h3,
.section-card h3,
.resume-card h3,
.about-card h3 {
  margin-bottom: 0.5rem;
}

.approach-card p,
.toolkit-card p,
.section-card p,
.resume-card p,
.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8bbc4;
  border-radius: 999px;
  background: #e6e7eb;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.cta-band {
  margin-top: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #f8f8f5 0%, #e1e3ea 55%, #c6c9d1 100%);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  max-width: 18ch;
}

.profile-feature-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: center;
}

.profile-image-side {
  height: 100%;
  border-right: 1px solid var(--line);
  background: #e8e8e8;
}

.profile-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content-side {
  padding: 2.2rem;
}

.profile-content-side h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  margin-bottom: 0.75rem;
}

.profile-content-side p {
  color: #3f424b;
  line-height: 1.7;
  max-width: 52ch;
}

.skill-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.skill-list li {
  display: grid;
  gap: 0.25rem;
}

.skill-list strong {
  font-size: 0.95rem;
}

.skill-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--black);
  background: #dbdde4;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #23242b 0%, #5d616f 100%);
}

.timeline {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  border: 1px solid var(--line);
  border-left: 4px solid #8f93a0;
  border-radius: 10px;
  background: #f0f1ef;
  padding: 0.55rem 0.65rem;
}

.timeline span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-feature-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: stretch;
}

.case-image-side {
  background: #e8e8e8;
  border-right: 1px solid var(--line);
}

.case-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-content-side {
  padding: 2.2rem;
  background: rgba(248, 248, 245, 0.9);
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.facts li span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts li strong {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.97rem;
}

.case-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 1.3rem;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-art {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, #f8f8f5 0%, #daddE4 60%, #c1c5ce 100%);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.contact-art::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 40px;
  border: 2px solid var(--black);
  background: rgba(248, 248, 245, 0.4);
  top: -95px;
  right: -80px;
  transform: rotate(18deg);
}

.contact-art::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 2px solid #555965;
  left: -80px;
  bottom: -76px;
  transform: rotate(-24deg);
}

.contact-art h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  margin: 0;
  max-width: 14ch;
}

.contact-art p {
  color: #3f424b;
  line-height: 1.7;
  max-width: 42ch;
}

.contact-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-list a {
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px dotted #50525a;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

/* From Uiverse.io by 0xnihilism (adapted) */
.uv-btn {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 2px solid var(--black);
  background: var(--offwhite);
  color: var(--black);
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 0 var(--black);
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 0.16s cubic-bezier(0.3, 0.7, 0.4, 1.5),
    background-color 0.2s ease;
}

.uv-btn-text {
  position: relative;
  z-index: 10;
}

.uv-btn::before,
.uv-btn::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 100px;
  background: #c5c7ce;
  opacity: 0;
  z-index: 1;
  transition: all 0.25s ease;
}

.uv-btn::before {
  left: -20px;
  bottom: 50%;
}

.uv-btn::after {
  right: -20px;
  bottom: 50%;
}

.uv-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--black);
  background: var(--charcoal);
  color: var(--offwhite);
}

.uv-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
  transition: transform 0.05s, box-shadow 0.05s;
}

.uv-btn:hover::before,
.uv-btn:hover::after {
  opacity: 1;
  width: 180px;
  height: 180px;
  bottom: -85px;
}

/* From Uiverse.io by 0xnihilism (adapted) */
.uv-field {
  position: relative;
  margin-top: 0.45rem;
}

.uv-field:first-of-type {
  margin-top: 0;
}

.uv-label {
  position: absolute;
  left: 10px;
  top: -12px;
  padding: 0.2rem 0.45rem;
  background: var(--black);
  color: var(--offwhite);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uv-input,
.uv-textarea {
  width: 100%;
  border: 3px solid var(--black);
  background: var(--offwhite);
  color: var(--black);
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 0.75rem;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.uv-textarea {
  min-height: 140px;
  resize: vertical;
}

.uv-input:focus,
.uv-textarea:focus {
  outline: none;
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--black);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  padding: 1.2rem 0 2rem;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid,
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-feature-card {
    grid-template-columns: 1fr;
  }

  .profile-image-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 4 / 3;
  }

  .profile-content-side {
    padding: 1.5rem;
  }

  .case-feature-card {
    grid-template-columns: 1fr;
  }

  .case-image-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 10;
  }

  .case-content-side {
    padding: 1.5rem;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .case-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 260;
    margin: 0;
    width: 100%;
    overflow: visible;
    background: #f4f4f1;
    border: 1px solid rgba(17, 18, 22, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .nav-list>li>a,
  .dropdown-toggle {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    padding: 0.72rem 0.7rem;
    font-size: 0.98rem;
    border: 1px solid #d4d7df;
    background: #f7f7f4;
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-toggle::after {
    content: "+";
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
  }

  .nav-dropdown.open .dropdown-toggle::after {
    content: "-";
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    margin: 0.1rem 0 0.45rem;
    padding: 0.35rem;
    background: #eeefeb;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: grid;
    gap: 0.2rem;
  }

  .dropdown-menu a {
    padding: 0.75rem 0.7rem;
    border-radius: 8px;
    font-size: 0.93rem;
    background: #f7f7f4;
    border: 1px solid #d7d9df;
  }

  .nav-list>li>a.active,
  .dropdown-menu a.active {
    background: #e7e9ef;
    border-color: #c6c9d4;
  }

  .home-hero,
  .page-hero,
  .case-hero,
  .contact-hero {
    padding-top: 3.1rem;
  }
}

@media (max-width: 640px) {

  .stats-grid,
  .projects-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .inline-actions,
  .case-links {
    align-items: stretch;
  }

  .uv-btn {
    width: 100%;
  }

  .cta-band {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}