/* Graduation light — warm paper, navy, orange piping, camel */
:root {
  --ink: #1a2744;
  --ink-soft: #4a5568;
  --paper: #f6f2eb;
  --paper-deep: #e5ddd0;
  --sea: #e05a28;
  --sea-deep: #c4481c;
  --sea-mist: rgba(224, 90, 40, 0.12);
  --blue: #1e3a6e;
  --brown: #b8956a;
  --line: rgba(26, 39, 68, 0.12);
  --white: #fffaf5;
  --surface: rgba(255, 250, 245, 0.72);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 12%, rgba(30, 58, 110, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(224, 90, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 78% 70%, rgba(232, 180, 80, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 30% 75%, rgba(184, 149, 106, 0.16), transparent 70%),
    linear-gradient(165deg, #faf7f2 0%, #f0ebe3 45%, #e8e0d4 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(26, 39, 68, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 39, 68, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(26, 39, 68, 0.03) 11px,
      rgba(26, 39, 68, 0.03) 12px
    );
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.atmosphere-orb-a {
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  top: -6%;
  right: 8%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 250, 245, 0.7), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(224, 90, 40, 0.14), transparent 65%);
  border: 1px solid rgba(224, 90, 40, 0.18);
}

.atmosphere-orb-b {
  width: min(36vw, 20rem);
  height: min(36vw, 20rem);
  bottom: 12%;
  left: -4%;
  background:
    radial-gradient(circle at 40% 40%, rgba(30, 58, 110, 0.12), transparent 70%);
  border: 1px solid rgba(26, 39, 68, 0.08);
}

.atmosphere-ring {
  position: absolute;
  width: min(70vw, 42rem);
  height: min(70vw, 42rem);
  top: 18%;
  right: -12%;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 58, 110, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 245, 0.5),
    0 0 0 48px rgba(184, 149, 106, 0.06);
}

.atmosphere-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(30, 58, 110, 0.18) 18%,
    rgba(224, 90, 40, 0.4) 50%,
    rgba(184, 149, 106, 0.3) 82%,
    transparent 100%
  );
}

.atmosphere-band::before,
.atmosphere-band::after {
  content: "";
  position: absolute;
  top: -28px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(26, 39, 68, 0.12);
  transform: rotate(45deg);
}

.atmosphere-band::before {
  left: 12%;
  background: rgba(255, 250, 245, 0.45);
  border-color: rgba(30, 58, 110, 0.28);
}

.atmosphere-band::after {
  right: 18%;
  top: 36px;
  width: 28px;
  height: 28px;
  border-color: rgba(224, 90, 40, 0.4);
}

.site-header,
.page,
.about-inner,
.site-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sea);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sea);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 5vh, 3.5rem) var(--space) clamp(3rem, 8vh, 5rem);
  min-height: calc(100vh - 4.5rem);
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.eyebrow-dot {
  display: inline-block;
  margin: 0 0.35em;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.05em;
  letter-spacing: 0;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sea-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.portrait {
  margin: 0;
  position: relative;
  width: min(100%, 30rem);
  justify-self: start;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--paper-deep);
  border: 1px solid rgba(26, 39, 68, 0.22);
  outline: 6px solid rgba(255, 250, 245, 0.72);
  outline-offset: 0;
  box-shadow:
    0 2px 4px rgba(26, 39, 68, 0.08),
    0 18px 40px rgba(26, 39, 68, 0.18),
    0 40px 72px rgba(26, 39, 68, 0.12);
}

.about {
  border-top: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.about-inner {
  padding-top: clamp(4.5rem, 12vh, 8rem);
  padding-bottom: clamp(4.5rem, 12vh, 8rem);
  display: grid;
  gap: 2rem;
  min-height: min(70vh, 40rem);
  align-content: center;
}

.about h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.about-body {
  max-width: 44rem;
  display: grid;
  gap: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.about-body p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
  min-height: 1.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 1.25rem;
}

.site-footer a {
  color: var(--sea);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: color 0.25s var(--ease);
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--sea);
  text-decoration: none;
}

.footer-social svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* Entrance motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

.hero .reveal {
  animation: rise-in 0.75s var(--ease) forwards;
}

.hero .eyebrow {
  animation-delay: 0.05s;
}

.hero .brand {
  animation-delay: 0.15s;
}

.hero .lede {
  animation-delay: 0.25s;
}

.hero .actions {
  animation-delay: 0.35s;
}

.hero .portrait {
  animation-delay: 0.2s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }

  .btn {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space);
    min-height: calc(100vh - 4.5rem);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    margin: 0;
    max-width: 36rem;
    width: 100%;
  }

  .portrait {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    min-height: 0;
    justify-self: end;
    position: relative;
  }

  .portrait::before {
    content: "";
    position: absolute;
    width: min(120%, 40rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(184, 149, 106, 0.28), transparent 68%);
    border: 1px solid rgba(30, 58, 110, 0.22);
    z-index: -1;
  }

  .portrait img {
    width: 33rem;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(26, 39, 68, 0.28);
    outline: 8px solid rgba(255, 250, 245, 0.85);
    box-shadow:
      0 2px 4px rgba(26, 39, 68, 0.1),
      0 22px 44px rgba(26, 39, 68, 0.2),
      0 48px 80px rgba(26, 39, 68, 0.14);
  }

  .about-inner {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Shared page shell for Projects / Contact */
.page {
  padding-top: clamp(2.5rem, 8vh, 5rem);
  padding-bottom: 4rem;
}

.page .eyebrow {
  margin: 0 0 0.65rem;
}

.page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.page .intro {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.project-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.project-tile:hover,
.project-tile:focus-visible {
  border-color: rgba(224, 90, 40, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 39, 68, 0.1);
  outline: none;
}

.project-tile-visual {
  display: block;
  height: 7.5rem;
  background:
    linear-gradient(135deg, rgba(30, 58, 110, 0.16), rgba(224, 90, 40, 0.18) 55%, rgba(184, 149, 106, 0.2));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-grid > li:nth-child(2) .project-tile-visual {
  background:
    linear-gradient(145deg, rgba(224, 90, 40, 0.18), rgba(30, 58, 110, 0.14) 60%, rgba(184, 149, 106, 0.22));
}

.project-grid > li:nth-child(3) .project-tile-visual {
  background:
    linear-gradient(160deg, rgba(30, 58, 110, 0.2), rgba(184, 149, 106, 0.16) 50%, rgba(224, 90, 40, 0.14));
}

.project-grid > li:nth-child(4) .project-tile-visual {
  background:
    linear-gradient(120deg, rgba(26, 39, 68, 0.18), rgba(30, 58, 110, 0.2) 45%, rgba(224, 90, 40, 0.12));
}

.project-grid > li:nth-child(5) .project-tile-visual {
  background:
    linear-gradient(150deg, rgba(184, 149, 106, 0.22), rgba(224, 90, 40, 0.14) 40%, rgba(30, 58, 110, 0.16));
}

.project-tile-body {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
}

.project-tile-body .skill-eyebrow {
  margin: 0;
}

.project-tile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--blue);
  transition: color 0.25s var(--ease);
}

.project-tile:hover h2,
.project-tile:focus-visible h2 {
  color: var(--sea);
}

.project-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .project-tile,
  .project-tile h2 {
    transition: none;
  }

  .project-tile:hover,
  .project-tile:focus-visible {
    transform: none;
  }
}

.case-study {
  display: grid;
  gap: clamp(2.5rem, 6vh, 4rem);
}

.case-hero {
  max-width: none;
}

.case-hero h1 {
  margin: 0 0 1rem;
  max-width: none;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12;
}

.case-goal {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.case-visual {
  margin: 0;
  width: 100%;
}

.case-visual-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-visual img,
.case-visual video {
  display: block;
  width: 100%;
  max-height: min(70vh, 36rem);
  object-fit: cover;
  object-position: top center;
  background: var(--paper-deep);
  border: 1px solid rgba(26, 39, 68, 0.18);
  outline: 6px solid rgba(255, 250, 245, 0.75);
  box-shadow:
    0 2px 4px rgba(26, 39, 68, 0.08),
    0 22px 48px rgba(26, 39, 68, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-visual-link:hover img,
.case-visual-link:focus-visible img {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(26, 39, 68, 0.1),
    0 28px 56px rgba(26, 39, 68, 0.16);
}

.case-visual-link:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
}

.case-visual-caption {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case-visual-caption a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.case-visual-caption a:hover,
.case-visual-caption a:focus-visible {
  text-decoration: underline;
}

.case-visual-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(14rem, 42vw, 22rem);
  padding: 2rem;
  border: 1px dashed rgba(26, 39, 68, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 250, 245, 0.9), rgba(229, 221, 208, 0.55));
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.case-block {
  max-width: 44rem;
  display: grid;
  gap: 1.5rem;
}

.case-block h2 {
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.case-steps {
  display: grid;
  gap: 1.75rem;
}

.case-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.case-details {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.case-details li::marker {
  color: var(--sea);
}

.case-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
}

.project-back {
  margin: 0;
}

.project-back a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.project-back a:hover,
.project-back a:focus-visible {
  text-decoration: underline;
}

/* Resume page */
.resume {
  display: grid;
  gap: clamp(2.5rem, 6vh, 3.75rem);
}

.resume-block h2 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.resume-bio {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.highlight-list {
  margin: 0;
  padding-left: 1.15rem;
  max-width: 48rem;
  color: var(--ink-soft);
  display: grid;
  gap: 1rem;
}

.highlight-list li::marker {
  color: var(--sea);
}

.resume-entry + .resume-entry {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.resume-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-bottom: 0.75rem;
}

.resume-entry h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.resume-org {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.resume-dates {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.resume-entry li + li {
  margin-top: 0.4rem;
}

.skill-groups {
  display: grid;
  gap: 1.75rem;
}

.skill-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.skill-group h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.resume-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.resume-cta p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.page .intro a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.page .intro a:hover,
.page .intro a:focus-visible {
  text-decoration: underline;
}
