:root {
  --paper: #ffffff;
  --ink: #111111;
  --red: #f14d28;
  --gold: #d5a930;
  --goose: #f4dc83;
  --blue: #346f9f;
  --line: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(280px, 31svh, 380px);
  background: #ffffff;
  padding: clamp(26px, 3vw, 42px) 28px 44px;
}

.eyebrow,
.scroll-cue,
.project-info span,
.footer-links {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.about .eyebrow {
  font-size: clamp(1rem, 1.35vw, 1.45rem);
}

.brand {
  display: grid;
  width: clamp(76px, 8vw, 112px);
  height: clamp(76px, 8vw, 112px);
  padding: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-align: center;
}

.site-nav {
  width: min(100%, 1080px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 8vw, 160px);
  margin-top: clamp(56px, 7vw, 86px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.9vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: lowercase;
}

.site-nav a,
.footer-links a {
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-links a:hover {
  color: var(--ink);
  transform: rotate(0deg) translateY(-4px);
}

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

.panel {
  border-bottom: var(--line);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(430px, 1fr);
  align-items: stretch;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 0;
}

.hero-tagline {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  margin: clamp(22px, 4vw, 54px) auto clamp(28px, 4vw, 58px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
}

.hero-media {
  position: relative;
  min-height: 62svh;
  overflow: hidden;
  background: #ffffff;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-media img {
  z-index: 0;
}

.hero-media video {
  z-index: 1;
}

.hero h1,
.about h2,
.curiosity h2,
.projects h2,
.footer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.about {
  padding: 120px 28px;
  border-bottom: 0;
}

.about-line {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 38px;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}

.about-line > * {
  min-width: 0;
}

.about h2 {
  font-size: clamp(2.55rem, 5.5vw, 6.25rem);
  line-height: 0.9;
}

.about-copy {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.about-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.62;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 540px);
  max-width: 100%;
  margin-top: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #f7d49d;
  box-shadow: 0 5px 0 rgba(17, 17, 17, 0.12);
  padding: 8px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transform: none;
  overflow-wrap: anywhere;
}

.badge:nth-child(2n) {
  background: #ffd7c4;
}

.badge:nth-child(3n) {
  background: #dcefed;
}

.badge-location {
  grid-column: 1 / -1;
  background: #eaf6f4;
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(52, 111, 159, 0.16);
  line-height: 1.35;
}

.curiosity {
  position: relative;
  min-height: 70svh;
  display: grid;
  align-items: center;
  padding: 120px 28px 96px;
  overflow: hidden;
  border-bottom: 0;
  background: #ffffff;
  color: var(--paper);
  text-align: center;
}

.curiosity-video {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 100%;
  min-height: 116%;
  object-fit: cover;
  object-position: center;
}

.curiosity::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at center, rgba(17, 17, 17, 0.16), rgba(17, 17, 17, 0.03) 58%, rgba(17, 17, 17, 0) 78%);
}

.curiosity-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.curiosity h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.8rem, 5.2vw, 6rem);
  line-height: 0.92;
  text-transform: lowercase;
  text-shadow: 0 4px 24px rgba(17, 17, 17, 0.58);
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  text-align: left;
}

.connection-grid p {
  min-height: 150px;
  margin: 0;
  border-top: 2px solid currentColor;
  padding-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.5vw, 3rem);
  line-height: 0.98;
  text-shadow: 0 3px 18px rgba(17, 17, 17, 0.5);
}

.projects {
  padding: 110px 28px 130px;
  border-bottom: 0;
}

.section-heading {
  display: block;
  max-width: 1480px;
  margin: 0 auto 44px;
}

.projects h2 {
  max-width: 970px;
  font-size: clamp(2.2rem, 4.6vw, 5.25rem);
  line-height: 0.9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.project-card {
  min-width: 0;
  border-radius: 30px;
  background: #fffaf0;
  box-shadow: 0 10px 0 rgba(213, 169, 48, 0.16);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  scroll-margin-top: 22px;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(213, 169, 48, 0.2);
  transform: translateY(-5px);
}

.project-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fffaf0;
  padding: 18px;
}

.project-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  transform: none;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-image img {
  filter: saturate(1.08) brightness(1.02);
  transform: scale(1.015);
}

.project-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  min-height: 148px;
  padding: 20px 22px 24px;
}

.project-info h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 0.9;
}

.project-info p {
  grid-column: 2;
  margin: 0;
  color: rgba(17, 17, 17, 0.66);
  font-size: 15px;
  line-height: 1.45;
}

.project-card:nth-child(3n + 1) .project-info {
  background: #f7d49d;
}

.project-card:nth-child(3n + 2) .project-info {
  background: #dcefed;
  color: var(--ink);
}

.project-card:nth-child(3n + 2) .project-info p {
  color: rgba(17, 17, 17, 0.62);
}

.project-card:nth-child(3n) .project-info {
  background: #f4dc83;
  color: var(--ink);
}

.project-card:nth-child(3n) .project-info p {
  color: rgba(17, 17, 17, 0.62);
}

.project-modals {
  position: relative;
}

.project-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  overflow: auto;
  padding: 36px;
}

.project-modal:target {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.36);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.24);
  padding: clamp(28px, 4vw, 58px);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  border-radius: 999px;
  background: #f7d49d;
  box-shadow: 0 5px 0 rgba(17, 17, 17, 0.14);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal .eyebrow {
  color: var(--blue);
}

.project-modal h2 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(3.2rem, 7vw, 8.5rem);
  line-height: 0.88;
}

.project-lede {
  max-width: 760px;
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 46px;
}

.modal-body h3 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-body p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.65;
}

.glance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.glance span {
  border-radius: 999px;
  background: #eaf6f4;
  box-shadow: 0 4px 0 rgba(52, 111, 159, 0.14);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.glance span:nth-child(2n) {
  background: #ffd7c4;
}

.video-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  border-radius: 999px;
  background: #f7d49d;
  box-shadow: 0 6px 0 rgba(17, 17, 17, 0.14);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-link::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-right: 9px;
  border-radius: 50%;
  background: #ffffff;
  content: "▶";
  font-size: 11px;
}

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

.modal-gallery img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 18px;
  object-fit: contain;
  background: #f4f4f4;
}

.modal-gallery img:first-child {
  grid-column: 1 / -1;
}

.footer {
  position: relative;
  min-height: 68svh;
  display: block;
  padding: clamp(72px, 8vw, 118px) 28px;
  overflow: hidden;
  border-bottom: 0;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.34) 0 18%, transparent 18% 100%),
    linear-gradient(315deg, rgba(247, 210, 231, 0.42) 0 16%, transparent 16% 100%),
    var(--goose);
  color: var(--ink);
}

.footer::before {
  position: absolute;
  top: clamp(28px, 5vw, 68px);
  right: clamp(22px, 7vw, 100px);
  width: clamp(84px, 10vw, 150px);
  height: clamp(84px, 10vw, 150px);
  border-radius: 46% 54% 48% 52%;
  background: #eaf6f4;
  content: "";
  transform: rotate(8deg);
}

.footer::after {
  position: absolute;
  right: clamp(90px, 17vw, 250px);
  bottom: clamp(34px, 8vw, 110px);
  width: clamp(58px, 7vw, 110px);
  height: clamp(58px, 7vw, 110px);
  border-radius: 50%;
  background: #ffd7c4;
  content: "";
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
}

.footer .eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 34px;
  border-radius: 999px;
  background: #fffaf0;
  box-shadow: 0 6px 0 rgba(213, 169, 48, 0.18);
  color: var(--ink);
  padding: 12px 18px 11px 14px;
  text-transform: lowercase;
  transform: rotate(-2deg);
}

.footer .eyebrow::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  border-radius: 50%;
  background: #f7d2e7;
  content: "";
}

.footer h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.25rem, 7.5vw, 7.4rem);
  line-height: 0.88;
}

.contact-note {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.4vw, 5.6rem);
  line-height: 0.98;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: clamp(32px, 4.5vw, 54px);
  font-family: Arial, Helvetica, sans-serif;
}

.contact-method {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(213, 169, 48, 0.2);
  color: var(--ink);
  padding: 12px 20px 12px 14px;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-button::before {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.contact-button-email {
  background: #fffaf0;
  transform: rotate(-1deg);
}

.contact-button-email::before {
  content: "@";
}

.contact-button-linkedin {
  background: #f7d2e7;
  transform: rotate(1.5deg);
}

.contact-button-linkedin::before {
  content: "in";
  font-style: italic;
}

.contact-button:hover {
  color: var(--red);
  box-shadow: 0 4px 0 rgba(213, 169, 48, 0.18);
  transform: translateY(-3px) rotate(0deg);
}

.contact-value {
  overflow-wrap: anywhere;
  color: var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.62);
  padding: 12px 16px;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-value:hover {
  background: #ffffff;
  color: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    min-height: auto;
    padding: 24px 18px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(14px, 5vw, 28px);
    margin-top: 48px;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .site-nav a {
    min-width: 0;
    padding: 0;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-rows: auto auto auto;
    padding: 0;
  }

  .hero-tagline {
    width: min(88%, 520px);
    margin-top: 22px;
    margin-bottom: 26px;
    font-size: clamp(1.05rem, 4.4vw, 1.45rem);
    overflow-wrap: anywhere;
  }

  .hero-media {
    min-height: clamp(300px, 58vw, 390px);
  }

  .scroll-cue {
    display: none;
  }

  .about,
  .curiosity,
  .projects,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-line,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .connection-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .connection-grid p {
    min-height: 112px;
  }

  .project-image {
    aspect-ratio: 16 / 10;
  }

  .project-info {
    border: 0;
  }

  .project-modal {
    padding: 18px;
  }

  .modal-content {
    border-radius: 24px;
    padding: 28px;
  }

  .project-modal h2 {
    font-size: clamp(2.7rem, 12vw, 4.6rem);
  }

  .project-lede {
    font-size: clamp(1.55rem, 7vw, 2.4rem);
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 34px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 86px;
    height: 86px;
  }

  .site-nav {
    gap: clamp(10px, 3.8vw, 16px);
    margin-top: 40px;
    font-size: clamp(1.55rem, 7.7vw, 2rem);
  }

  .hero-media {
    min-height: clamp(280px, 72vw, 340px);
  }

  .project-modal {
    padding: 12px;
  }

  .modal-content {
    border-radius: 22px;
    padding: 24px;
  }

  .modal-close {
    padding: 10px 13px;
    font-size: 11px;
  }

  .about-badges {
    grid-template-columns: 1fr;
  }

  .badge-location {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
