:root {
  --paper: #ffffff;
  --ink: #121212;
  --muted: #4f525a;
  --line: #d8d8d5;
  --blue: #0b45d8;
  --blue-dark: #0838b2;
  --coral: #ff665a;
  --ivory: #f5f0e7;
  --content: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4.75rem);
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.section-shell,
.hero {
  width: min(100%, calc(var(--content) + (2 * var(--gutter))));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram,
.footer-name {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.monogram {
  font-size: 1.7rem;
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a,
.footer-links button {
  position: relative;
}

.nav-links a::after,
.footer-links button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.footer-links button:hover::after,
.footer-links button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: calc(100svh - 104px);
  padding-top: clamp(2.5rem, 6vh, 5.5rem);
  padding-bottom: clamp(4rem, 8vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: clamp(2.5rem, 4vw, 5.5rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.section-intro h2,
.about h2,
.contact h2,
.contact-dialog h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.75rem, 6.6vw, 6.7rem);
  line-height: 0.98;
}

.hero-deck {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2rem;
}

.button,
.contact-button {
  min-height: 64px;
  border: 1px solid var(--blue);
  padding: 0.9rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, transform 240ms var(--ease);
}

.button svg,
.contact-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms var(--ease);
}

.button:hover svg,
.button:focus-visible svg,
.contact-button:hover svg,
.contact-button:focus-visible svg {
  transform: translateX(5px);
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

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

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

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

.location span {
  padding-inline: 0.25em;
  color: var(--blue);
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 0 5% 12%;
  border: 1px solid var(--line);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.work {
  padding-top: clamp(5rem, 11vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-intro h2 {
  font-size: clamp(3.25rem, 6vw, 5.8rem);
  line-height: 1;
}

.section-intro p {
  max-width: 32rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 70px 60px;
  gap: 1.75rem;
  align-items: center;
  min-height: 176px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 280ms var(--ease), background-color 280ms ease;
}

.project-row:hover,
.project-row:focus-visible {
  padding-inline: 1.25rem;
  background: #f8faff;
  outline: none;
}

.project-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 2.35rem;
}

.project-copy {
  display: grid;
  gap: 0.55rem;
}

.project-copy strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.project-copy > span {
  max-width: 42rem;
  color: var(--muted);
}

.project-arrow {
  width: 48px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 280ms var(--ease);
}

.project-row:hover .project-arrow,
.project-row:focus-visible .project-arrow {
  transform: translateX(8px);
}

.project-row time {
  justify-self: end;
}

.about {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.section-label {
  width: fit-content;
  margin: 0 0 3rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about h2 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  line-height: 1.02;
}

.about-copy > p:last-child {
  max-width: 37rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-art {
  position: relative;
  min-height: 510px;
}

.paper-shape,
.blue-shape,
.coral-star,
.about-art svg {
  position: absolute;
}

.paper-shape {
  inset: 2% 14% 7% 16%;
  background: var(--ivory);
  box-shadow: 0 20px 50px rgba(31, 27, 20, 0.1);
  transform: rotate(7deg);
}

.blue-shape {
  right: 4%;
  bottom: 9%;
  width: 38%;
  height: 48%;
  background: var(--blue);
  transform: rotate(8deg);
}

.coral-star {
  bottom: 12%;
  left: 3%;
  width: 72px;
  aspect-ratio: 1;
  background: var(--coral);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.about-art svg {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact {
  background: var(--blue);
  color: white;
}

.contact-main {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.65fr);
  gap: 4rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.contact h2 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  line-height: 0.98;
}

.contact-main p {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.contact-button {
  width: 100%;
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: white;
}

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

.site-footer {
  min-height: 135px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-name {
  font-size: 2.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.contact-dialog {
  width: min(92vw, 620px);
  border: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.contact-dialog::backdrop {
  background: rgba(12, 17, 35, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.contact-dialog .section-label {
  margin-bottom: 1.25rem;
}

.contact-dialog h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.dialog-copy {
  color: var(--muted);
}

.club-reminder {
  margin: 1.25rem 0 0;
  border-left: 4px solid var(--coral);
  padding: 0.9rem 1rem;
  background: #fff6ea;
  color: var(--ink);
  line-height: 1.7;
}

.club-reminder strong {
  color: var(--coral);
}

.contact-address {
  margin: 1rem 0 0;
  color: var(--muted);
}

.contact-address a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-dialog label {
  display: block;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.contact-dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 1rem;
  background: #fafafa;
  color: var(--ink);
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dialog-actions .button {
  min-height: 52px;
}

.copy-status {
  min-height: 1.5rem;
  margin-bottom: 0;
  color: var(--blue);
}

.is-hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

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

  .hero-copy {
    max-width: 780px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-art {
    width: min(100%, 780px);
    justify-self: end;
  }

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

  .about-art {
    width: min(100%, 560px);
    justify-self: center;
  }

  .contact-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 82px;
  }

  .monogram {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: 1.15rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-row {
    grid-template-columns: 46px minmax(0, 1fr) 32px;
    gap: 0.75rem;
    min-height: 150px;
  }

  .project-row time {
    display: none;
  }

  .project-number {
    font-size: 1.6rem;
  }

  .project-copy strong {
    font-size: 2rem;
  }

  .project-copy > span {
    font-size: 0.88rem;
  }

  .project-arrow {
    width: 32px;
  }

  .about-art {
    min-height: 390px;
  }

  .coral-star {
    width: 54px;
  }

  .contact-main {
    min-height: 500px;
    gap: 2rem;
  }

  .site-footer {
    padding-block: 2.5rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    gap: 1.4rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
