:root {
  --ink: #14201f;
  --ink-soft: #3a4a48;
  --paper: #f3f6f4;
  --paper-deep: #e6eeea;
  --teal: #0f6b63;
  --teal-deep: #0a4f49;
  --teal-mist: rgba(15, 107, 99, 0.12);
  --slate-wash: #c5d4cf;
  --line: rgba(20, 32, 31, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 68rem;
  --measure: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space);
  background: rgba(243, 246, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--teal-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* Sections */
.section {
  padding: clamp(3.5rem, 9vh, 6rem) var(--space);
  border-top: 1px solid var(--line);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section__lead {
  margin: 0.85rem 0 1.75rem;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section__lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* Hero — same padding as .section; no viewport centering */
.hero {
  position: relative;
  border-top: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 12% 20%, rgba(15, 107, 99, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 8%, rgba(197, 212, 207, 0.9), transparent 50%),
    radial-gradient(ellipse 80% 50% at 70% 95%, rgba(15, 107, 99, 0.1), transparent 45%),
    linear-gradient(165deg, #eef4f1 0%, var(--paper) 45%, #dfeae5 100%);
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__content {
  max-width: var(--max);
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__headline {
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink-soft);
}

.hero__support {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero__support strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--teal);
  color: #f7fbfa;
  border: 1px solid var(--teal);
}

.btn--primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* About — consistent text measure */
.about .section__inner > * {
  max-width: var(--measure);
}

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

.about .section__lead {
  margin: 0.85rem 0 1.25rem;
}

.about__meta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

/* Expertise */
.expertise__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.expertise__list li {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.75rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.expertise__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.expertise__desc {
  color: var(--ink-soft);
}

/* Experience */
.job {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 1px solid var(--line);
}

.job__header {
  margin-bottom: 0.85rem;
}

.job__role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.job__meta {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.job__points li + li {
  margin-top: 0.45rem;
}

.job__points strong {
  color: var(--ink);
  font-weight: 600;
}

/* Work / carousels */
.work__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.carousel {
  margin-top: 1.75rem;
}

.carousel + .carousel {
  margin-top: 2.75rem;
}

.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.carousel__controls {
  display: flex;
  gap: 0.4rem;
}

.carousel__btn {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.carousel__btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel--reviews .carousel__track {
  align-items: stretch;
}

.carousel--reviews .carousel__slide {
  scroll-snap-stop: normal;
}

.carousel--reviews .review {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 14rem;
}

.carousel--reviews .review p {
  flex: 1 1 auto;
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--teal);
}

.work-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

a.work-card:hover {
  border-color: var(--teal);
  color: inherit;
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, var(--paper-deep), rgba(255, 255, 255, 0.7));
}

.work-card__media img {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.25rem);
  width: calc(100% - 2 * clamp(0.75rem, 2vw, 1.25rem));
  height: calc(100% - 2 * clamp(0.75rem, 2vw, 1.25rem));
  object-fit: contain;
  object-position: center;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem 1.1rem;
}

.work-card__name {
  font-weight: 500;
  color: var(--ink);
}

.work-card__meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Reviews */
.review {
  margin: 0;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.review p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.review footer {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.review cite {
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.review__meta {
  font-size: 0.88rem;
  color: var(--teal-deep);
}

/* Contact */
.contact {
  background:
    linear-gradient(180deg, transparent, var(--teal-mist) 40%, rgba(197, 212, 207, 0.35));
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--ink-soft);
}

.contact__links a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact__links a:hover {
  border-bottom-color: currentColor;
}

.contact__badge {
  margin: 2rem 0 0;
}

.contact__badge img {
  display: block;
  border: 0;
}

.site-footer {
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer__edu {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Motion */
.hero__eyebrow,
.hero__brand,
.hero__headline,
.hero__support,
.hero__ctas {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.hero.is-ready .hero__eyebrow,
.hero.is-ready .hero__brand,
.hero.is-ready .hero__headline,
.hero.is-ready .hero__support,
.hero.is-ready .hero__ctas {
  opacity: 1;
  transform: none;
}

.hero.is-ready .hero__brand {
  transition-delay: 0.08s;
}

.hero.is-ready .hero__headline {
  transition-delay: 0.16s;
}

.hero.is-ready .hero__support {
  transition-delay: 0.24s;
}

.hero.is-ready .hero__ctas {
  transition-delay: 0.32s;
}

.reveal {
  opacity: 0;
  transition: opacity 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__eyebrow,
  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero__ctas,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel__viewport {
    scroll-behavior: auto;
  }

  .btn:hover,
  a.work-card:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .expertise__list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
