﻿:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --panel: #ffffff;
  --text: #101218;
  --muted: #6b7280;
  --accent: #111827;
  --border: rgba(15, 17, 22, 0.12);
  --sidebar-width: 256px;
  --content-width: 640px;
  --layout-gap: 88px;
  --max-width: calc(var(--sidebar-width) + var(--content-width) + var(--layout-gap));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-y: scroll;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 88px;
}

.mobile-header {
  display: none;
  margin-bottom: 24px;
}

.mobile-name {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 10px;
  transition: 0.4s cubic-bezier(0, 0, 0, 1);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: 0.4s cubic-bezier(0, 0, 0, 1);
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

body.nav-open .nav-toggle-icon::before {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  transform: translateY(-4px) rotate(-45deg);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width));
  gap: var(--layout-gap);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.nav-close::before,
.nav-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-close::before {
  transform: rotate(45deg);
}

.nav-close::after {
  transform: rotate(-45deg);
}

.sidebar-name {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.sidebar-name:hover {
  color: var(--accent);
}

.sidebar-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 0.92rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: rgba(15, 17, 22, 0.06);
  color: var(--text);
}

.sidebar-link.external::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: auto;
  background-color: var(--muted);
  -webkit-mask: url("/assets/images/icons/arrow-up-right.svg") no-repeat center / contain;
  mask: url("/assets/images/icons/arrow-up-right.svg") no-repeat center / contain;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.sidebar-link.external:hover::after,
.sidebar-link.external:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
  background-color: var(--text);
}

.sidebar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-logo {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(15, 17, 22, 0.08);
}

.sidebar-link .year {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-icon {
  width: 16px;
  height: 16px;
  background-color: var(--muted);
  -webkit-mask: var(--icon-url) no-repeat center / contain;
  mask: var(--icon-url) no-repeat center / contain;
  flex: 0 0 auto;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: var(--content-width);
}

.hero-image {
  width: min(100%, 640px);
  aspect-ratio: 8 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e7eaee;
}

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

.intro {
  display: grid;
  gap: 16px;
  max-width: 60ch;
}

.intro-lead {
  font-weight: 600;
  font-size: 1.05rem;
}

.intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.intro-list li::before {
  content: "- ";
  color: var(--muted);
}

.intro-note {
  color: var(--muted);
}

.content-section {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.principles {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text);
  max-width: 68ch;
}

.principles li {
  display: grid;
  gap: 6px;
  color: var(--text);
}

.principles span {
  color: var(--muted);
}

.education {
  display: grid;
  gap: 18px;
}

.education-item {
  display: grid;
  gap: 4px;
}

.education-item span {
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 22px;
}

.experience-item {
  display: grid;
  gap: 10px;
}

.experience-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.experience-title {
  font-weight: 600;
}

.experience-company {
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
}

.experience-dates {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-summary {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.experience-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.training-list {
  display: grid;
  gap: 18px;
}

.training-item {
  display: grid;
  gap: 4px;
}

.training-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.training-dates {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-provider,
.training-details {
  color: var(--muted);
}

.skills-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 24px;
}

.skills-grid li::before {
  content: "- ";
  color: var(--muted);
}

.project-block {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.project-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-title {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.project-title:hover {
  color: var(--accent);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-year {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-desc {
  color: var(--muted);
  margin: 0;
}

.project-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.project-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-links a {
  color: var(--text);
  text-decoration: none;
}

.project-links a:hover {
  color: var(--accent);
}

.project-page-header {
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
}

.project-page-header h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.project-page-body {
  padding-top: 22px;
  display: grid;
  gap: 18px;
}

.project-page-body p {
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--text);
}

.case-studies-list {
  display: grid;
  gap: 40px;
}

.case-study-card {
  display: grid;
  gap: 20px;
}

.case-study-media {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), rgba(238, 240, 244, 0.9));
  box-shadow: 0 28px 80px rgba(15, 17, 22, 0.12);
}

.case-study-media img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-hero {
  margin-bottom: 12px;
}

.case-study-hero img {
  max-height: 420px;
  object-fit: cover;
}

.case-video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: #f0f2f4;
}

.project-page-body h2 {
  margin: 26px 0 10px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.1rem;
}

.project-page-body ul {
  margin: 0;
  padding-left: 20px;
}

.case-study-text h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.case-study-text h2 a {
  color: var(--text);
}

.case-study-text h2 a:hover {
  color: var(--accent);
}

.case-study-tldr {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.case-study-summary {
  margin: 0;
  color: var(--text);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.project-list li {
  display: grid;
  gap: 4px;
}

.project-list span {
  color: var(--muted);
}

.project-card {
  display: grid;
  gap: 12px;
}

.project-thumb {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef0f2;
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  display: grid;
  gap: 4px;
}

.recommendations-list {
  display: grid;
  gap: 16px;
}

.recommendation {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 8px;
}

.recommendation-header {
  display: grid;
  gap: 4px;
}

.recommendation-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}

.recommendation-body {
  overflow: hidden;
  max-height: 5.1em;
  transition: max-height 0.4s cubic-bezier(0, 0, 0, 0.3);
  will-change: max-height;
}

.recommendation-text {
  margin: 0;
  color: var(--text);
}

.recommendation-text + .recommendation-text {
  margin-top: 10px;
}

.recommendation-toggle {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.recommendation-toggle:hover {
  color: var(--text);
}

.recommendation-toggle::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("/assets/images/icons/caret-down.svg") no-repeat center / contain;
  mask: url("/assets/images/icons/caret-down.svg") no-repeat center / contain;
  transition: transform 0.2s ease;
}

.recommendation.expanded .recommendation-toggle::after {
  -webkit-mask: url("/assets/images/icons/caret-up.svg") no-repeat center / contain;
  mask: url("/assets/images/icons/caret-up.svg") no-repeat center / contain;
}

.recommendation.expanded .recommendation-body {
  max-height: 1000px;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
}

.case-header h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.case-logo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 22, 0.06);
  border: 1px solid var(--border);
}

.case-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.case-role {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.case-body {
  padding-top: 22px;
  max-width: 68ch;
  display: grid;
  gap: 18px;
}

.case-body p {
  margin: 0;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0;
    padding: 96px 24px 40px;
    background: rgba(247, 247, 248, 0.98);
    transform: scale(0.98);
    transform-origin: center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0, 0, 0, 1), opacity 0.4s cubic-bezier(0, 0, 0, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .mobile-header {
    display: block;
    padding-top: 48px;
  }

  .nav-toggle {
    display: inline-flex;
    opacity: 0.7;
  }

  .nav-close {
    display: inline-flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .sidebar {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page {
    padding: 40px 18px 80px;
  }

  .layout {
    gap: 32px;
  }

  .sidebar {
    gap: 20px;
  }

  .sidebar-link {
    font-size: 0.88rem;
  }
}

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

/* Landing (Framer-inspired) */
body.page-index {
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

body.page-index .nav-toggle,
body.page-index .mobile-header {
  display: none;
}

body.page-index .page {
  max-width: 1100px;
  padding: 96px 24px 88px;
}

.landing {
  display: grid;
  gap: 72px;
}

.landing-header {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 24px;
  z-index: 50;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 26px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 50px rgba(15, 17, 22, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0f1116;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 2px solid #f7f7f8;
  box-shadow: 0 0 0 2px #0f1116;
}

.nav-links {
  display: inline-flex;
  gap: 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  color: #1b1f24;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 720px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1.08rem;
  color: #3f4650;
}

.hero-meta {
  margin: 0;
  color: #5a626f;
}

.text-accent {
  color: #4caf4f;
  font-weight: 600;
}

.text-dark {
  color: #161a20;
  font-weight: 600;
}

.text-link {
  color: #2563eb;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #0f1116;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.selected-work {
  display: grid;
  gap: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.work-card {
  display: grid;
  gap: 12px;
}

.work-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #e3e6eb;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.work-card:hover .work-media {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.work-details h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.work-tags {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.landing-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: 32px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #d5d9df;
}

.landing-footer h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.footer-icon {
  width: 18px;
  height: 18px;
  background-color: #111827;
  -webkit-mask: var(--icon-url) no-repeat center / contain;
  mask: var(--icon-url) no-repeat center / contain;
}

.footer-label {
  font-size: 0.75rem;
  color: #111827;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-index section {
  scroll-margin-top: 80px;
}

@media (max-width: 900px) {
  body.page-index .page {
    padding: 72px 20px 80px;
  }

  .landing {
    gap: 56px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.page-index .page {
    padding: 56px 18px 72px;
  }

  .nav-pill {
    padding: 8px 16px 8px 10px;
    gap: 12px;
  }

  .nav-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
