:root {
  --ink: #0c1016;
  --ink-soft: #2d3440;
  --muted: #6b7280;
  --paper: #fcfbf8;
  --paper-alt: #f5efe7;
  --accent: #caa179;
  --accent-deep: #b07d4f;
  --accent-teal: #1c6a66;
  --border: rgba(13, 18, 28, 0.08);
  --shadow: 0 24px 50px rgba(12, 16, 22, 0.08);
  --radius: 32px;
  --grid-gap: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  scroll-snap-type: y mandatory;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 4.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #fcfbf8 0%, #f5efe7 100%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(252, 251, 248, 0.85);
  border-bottom: 1px solid rgba(13, 18, 28, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-name {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  transform: scale(3);
  transform-origin: left center;
}

.logo-mark {
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  line-height: 0;
  overflow: visible;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(196, 123, 58, 0.3);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(13, 18, 28, 0.2);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(13, 18, 28, 0.35);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  padding: 2.8rem 0 2rem;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 80vh;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(320px, 480px) 1fr;
  align-items: start;
}

.hero-media {
  position: relative;
  max-width: 480px;
  transform: translateY(-16px);
  align-self: start;
}

.portrait-shell {
  position: relative;
  padding: 0;
  border-radius: 60px;
  background: transparent;
  animation: float 6s ease-in-out infinite;
}

.cutout {
  width: 100%;
  height: min(70vh, 620px);
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(12, 16, 22, 0.25));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.subhead {
  font-size: 1.1rem;
  max-width: 36rem;
}

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

.section {
  padding: 2.6rem 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 80vh;
}

.section.curved {
  position: relative;
  margin: 1.2rem 0;
  padding: 2.4rem 0;
  overflow: hidden;
}

.section.curved::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 4vw;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 18, 28, 0.06);
  box-shadow: 0 24px 50px rgba(12, 16, 22, 0.07);
  z-index: -1;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.section-intro {
  max-width: 38rem;
  font-size: 1.05rem;
}

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

.work-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(12, 16, 22, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(12, 16, 22, 0.1);
}

.work-media {
  background: var(--paper-alt);
}

.work-media-link {
  display: block;
}

.work-figure {
  margin: 0;
  height: 170px;
  overflow: hidden;
  border-bottom: 1px solid rgba(13, 18, 28, 0.08);
  background: #f5efe7;
  padding: 10px;
}

.work-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 14px;
}

.work-graphic {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(202, 161, 121, 0.12), rgba(28, 106, 102, 0.08));
  border-bottom: 1px solid rgba(13, 18, 28, 0.08);
}

.work-graphic svg {
  width: min(80%, 260px);
  height: auto;
}

.work-content {
  padding: 1.1rem 1.2rem;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(12, 16, 22, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(12, 16, 22, 0.09);
}

.card.highlight {
  background: linear-gradient(145deg, rgba(202, 161, 121, 0.14), rgba(28, 106, 102, 0.08));
  border: 1px solid rgba(28, 106, 102, 0.18);
}

.text-link {
  display: inline-flex;
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--accent-teal);
  border-bottom: 1px solid rgba(28, 106, 102, 0.25);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-deep);
  border-color: rgba(176, 125, 79, 0.4);
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.list li {
  margin-bottom: 0.6rem;
}

.divider {
  height: 1px;
  background: rgba(13, 18, 28, 0.1);
  margin: 1.5rem 0;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.4rem 0 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  align-items: center;
}

.footer-cta {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 18, 28, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
}

.is-loaded .reveal {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

  .hero-media {
    order: -1;
    max-width: 520px;
    transform: translateY(-10px);
  }

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

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3.2rem;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
  }

  .hero-media {
    transform: translateY(-6px);
  }

  .cutout {
    height: min(60vh, 520px);
  }

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

  .linkedin-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section.curved::before {
    margin: 0 2vw;
  }
}
.linkedin-banner {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 18, 28, 0.08);
  background: #fff;
  box-shadow: 0 10px 20px rgba(12, 16, 22, 0.06);
}

.linkedin-banner p {
  margin: 0;
  color: var(--ink-soft);
}
