:root {
  --black: #080808;
  --white: #f2efe7;
  --muted: rgba(242, 239, 231, 0.64);
  --line: rgba(242, 239, 231, 0.18);

  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;

  --max: 1060px;
}


/* --------------------------------
   RESET
-------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
  background: var(--black);
}


body {
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--black);
  color: var(--white);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
}


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


::selection {
  background: var(--white);
  color: var(--black);
}


.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}



/* --------------------------------
   BACKGROUND
-------------------------------- */

.background-curves {
  position: fixed;
  inset: 0;

  z-index: 0;

  pointer-events: none;
  overflow: hidden;
}


.curve {
  position: absolute;

  border: 1px solid rgba(242, 239, 231, 0.07);
  border-radius: 50%;
}


.curve-one {
  width: 66vw;
  height: 66vw;

  top: -42vw;
  right: -18vw;
}


.curve-two {
  width: 72vw;
  height: 42vw;

  bottom: -28vw;
  left: -24vw;

  transform: rotate(8deg);
}



/* --------------------------------
   PAGE STRUCTURE
-------------------------------- */

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}


.nav-shell,
.section-shell {
  width: min(calc(100% - 40px),
      var(--max));

  margin-inline: auto;
}



/* --------------------------------
   NAVIGATION
-------------------------------- */

.site-header {
  position: sticky;

  top: 0;

  z-index: 30;

  background: rgba(8, 8, 8, 0.94);

  border-bottom:
    1px solid var(--line);
}


.nav-shell {
  min-height: 68px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


.brand {
  width: 42px;
  height: 42px;

  display: block;

  text-decoration: none;
}


.brand img {
  width: 100%;
  height: 100%;
}


.nav-links {
  display: flex;

  align-items: center;

  gap: 24px;

  list-style: none;
}


.nav-links a {
  color: var(--muted);

  font-size: 13px;

  text-decoration: none;

  transition:
    color 160ms ease;
}


.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--white);
}



/* --------------------------------
   MOBILE NAV BUTTON
-------------------------------- */

.menu-toggle {
  display: none;

  width: 36px;
  height: 36px;

  border: 0;

  background: transparent;
  color: var(--white);

  cursor: pointer;
}


.menu-toggle>span:not(.sr-only) {
  display: block;

  width: 21px;
  height: 1px;

  margin: 5px auto;

  background: currentColor;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}



/* --------------------------------
   HERO
-------------------------------- */

.hero {
  min-height: 78vh;

  display: flex;

  align-items: center;

  padding-block:
    110px 88px;

  border-bottom:
    1px solid var(--line);
}


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


.hello {
  color: var(--muted);

  font-size: 14px;
}


.hero h1,
.section-block h2,
.contact-section h2,
.page-intro h1,
.record h3,
.project h3,
blockquote {
  font-family: var(--serif);
  font-weight: 400;
}


.hero h1 {
  margin-top: 18px;

  font-size:
    clamp(54px, 8vw, 94px);

  line-height: 0.98;

  letter-spacing: -0.035em;
}


.hero-lead {
  max-width: 700px;

  margin-top: 28px;

  color: var(--muted);

  font-size:
    clamp(17px, 2vw, 21px);
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 24px;

  margin-top: 34px;
}



/* --------------------------------
   LINKS
-------------------------------- */

.simple-link {
  width: fit-content;

  color: var(--white);

  font-size: 14px;

  text-decoration: none;

  border-bottom:
    1px solid var(--white);

  padding-bottom: 2px;
}


.simple-link:hover {
  opacity: 0.68;
}



/* --------------------------------
   GENERAL SECTIONS
-------------------------------- */

.section-block {
  padding-block: 88px;

  border-bottom:
    1px solid var(--line);
}


.section-block h2 {
  margin-bottom: 38px;

  font-size:
    clamp(38px, 5vw, 58px);

  letter-spacing:
    -0.025em;
}


.simple-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 54px;
}


.simple-grid p {
  color: var(--muted);

  font-size: 17px;
}



/* --------------------------------
   SKILLS
-------------------------------- */

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


.plain-list>div {
  display: grid;

  grid-template-columns:
    180px 1fr;

  gap: 24px;

  padding: 19px 0;

  border-bottom:
    1px solid var(--line);
}


.plain-list span {
  font-family: var(--serif);

  font-size: 22px;
}


.plain-list p {
  color: var(--muted);
}



/* --------------------------------
   EXPERIENCE / SCHOOL
-------------------------------- */

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


.record {
  display: grid;

  grid-template-columns:
    220px 1fr;

  gap: 42px;

  padding: 28px 0;

  border-bottom:
    1px solid var(--line);
}


.record-meta {
  display: flex;

  flex-direction: column;

  gap: 5px;

  color: var(--muted);

  font-size: 12px;
}


.record-meta a {
  color: var(--white);

  text-decoration: none;
}


.record h3 {
  font-size:
    clamp(28px, 3vw, 38px);

  line-height: 1.1;
}


.record p {
  max-width: 680px;

  margin-top: 10px;

  color: var(--muted);
}


.record-muted {
  opacity: 0.72;
}



/* --------------------------------
   PROJECTS
-------------------------------- */

.project-list {
  display: grid;

  gap: 62px;
}


.project {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr) minmax(250px, 0.65fr);

  gap: 34px;

  align-items: end;
}


.project-image-wrap {
  display: block;

  overflow: hidden;

  border:
    1px solid var(--line);

  text-decoration: none;
}


.project-image {
  width: 100%;

  min-height: 320px;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  filter:
    grayscale(1) contrast(0.92);

  opacity: 0.82;

  transition:
    opacity 200ms ease,
    filter 200ms ease;
}


.project-image-wrap:hover .project-image {
  filter: grayscale(0.35);

  opacity: 1;
}


.project h3 {
  font-size:
    clamp(36px, 5vw, 52px);

  line-height: 1;
}


.project p {
  margin-top: 16px;

  color: var(--muted);
}


.project small {
  display: block;

  margin-top: 16px;

  color: var(--muted);

  font-size: 12px;
}


.project .simple-link {
  margin-top: 18px;
}



/* --------------------------------
   CONTACT
-------------------------------- */

.contact-section {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 50px;

  padding-block: 90px;

  border-bottom:
    1px solid var(--line);
}


.contact-section h2 {
  font-size:
    clamp(48px, 7vw, 78px);

  line-height: 1;
}


.contact-links {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
  justify-content: end;

  gap: 10px;
}


.contact-links a {
  color: var(--muted);

  font-size: 18px;

  text-decoration: none;
}


.contact-links a:hover {
  color: var(--white);
}



/* --------------------------------
   FOOTER
-------------------------------- */

.site-footer {
  min-height: 90px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: var(--muted);

  font-size: 12px;
}



/* --------------------------------
   TESTIMONIAL PAGE INTRO
-------------------------------- */

.page-main {
  min-height:
    calc(100vh - 68px);
}


.page-intro {
  padding-block:
    120px 70px;

  border-bottom:
    1px solid var(--line);
}


.page-intro h1 {
  margin-top: 8px;

  font-size:
    clamp(58px, 9vw, 104px);

  line-height: 0.95;
}


.page-intro>p:last-child {
  max-width: 620px;

  margin-top: 24px;

  color: var(--muted);

  font-size: 18px;
}



/* --------------------------------
   TESTIMONIALS
-------------------------------- */

.testimonials-list {
  border-bottom:
    1px solid var(--line);
}


/*
  Each testimonial now uses the full
  horizontal width rather than putting
  the metadata in a large side column.
*/

.testimonial-entry {
  padding-block:
    84px 94px;

  border-bottom:
    1px solid var(--line);
}


.testimonial-entry:last-child {
  border-bottom: 0;
}



/*
  Number + author + date
  all live on one horizontal line.
*/

.testimonial-meta {
  display: grid;

  grid-template-columns:
    48px minmax(0, 1fr) auto;

  gap: 24px;

  align-items: start;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.55;
}


.testimonial-number {
  color: var(--white);

  font-family: var(--serif);

  font-size: 19px;

  line-height: 1.2;
}


.testimonial-person {
  display: grid;

  gap: 2px;
}


.testimonial-name {
  color: var(--white);

  font-size: 15px;
}


.testimonial-date {
  margin: 0;

  white-space: nowrap;

  font-size: 12px;

  text-align: right;
}



/*
  Quote now gets almost all
  of the page width.
*/

.testimonial-copy {
  padding-left: 72px;

  margin-top: 42px;
}


.testimonial-copy blockquote {
  max-width: 940px;

  font-size:
    clamp(34px, 4vw, 52px);

  line-height: 1.14;

  letter-spacing:
    -0.022em;
}


.testimonial-copy .simple-link {
  display: inline-block;

  margin-top: 34px;
}



/* --------------------------------
   REVEAL ANIMATION
-------------------------------- */

.reveal {
  opacity: 0;

  transform:
    translateY(8px);

  transition:
    opacity 500ms ease,
    transform 500ms ease;
}


.reveal.is-visible {
  opacity: 1;

  transform: none;
}



/* --------------------------------
   REDUCED MOTION
-------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    transition-duration:
      0.01ms !important;
  }


  .reveal {
    opacity: 1;

    transform: none;
  }

}



/* --------------------------------
   TABLET / MOBILE
-------------------------------- */

@media (max-width: 780px) {

  .nav-shell,
  .section-shell {
    width:
      min(calc(100% - 30px),
        var(--max));
  }


  .menu-toggle {
    display: block;
  }


  .nav-links {
    position: absolute;

    top: 68px;
    left: 0;
    right: 0;

    max-height: 0;

    overflow: hidden;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    background:
      var(--black);

    border-bottom:
      1px solid transparent;

    transition:
      max-height 200ms ease,
      border-color 200ms ease;
  }


  .nav-links.is-open {
    max-height: 360px;

    border-bottom-color:
      var(--line);
  }


  .nav-links li {
    border-top:
      1px solid var(--line);
  }


  .nav-links a {
    display: block;

    padding:
      14px 15px;

    color:
      var(--white);
  }


  .menu-toggle.is-open>span:nth-child(1) {
    transform:
      translateY(6px) rotate(45deg);
  }


  .menu-toggle.is-open>span:nth-child(2) {
    opacity: 0;
  }


  .menu-toggle.is-open>span:nth-child(3) {
    transform:
      translateY(-6px) rotate(-45deg);
  }


  .hero {
    min-height: auto;

    padding-block:
      92px 70px;
  }


  .hero h1 {
    font-size:
      clamp(52px, 14vw, 78px);
  }


  .simple-grid,
  .contact-section,
  .project {
    grid-template-columns: 1fr;
  }


  .section-block {
    padding-block: 68px;
  }


  .plain-list>div,
  .record {
    grid-template-columns: 1fr;

    gap: 10px;
  }


  .project {
    gap: 22px;
  }


  .project-image {
    min-height: 230px;
  }


  .contact-section {
    padding-block: 72px;
  }


  /* TESTIMONIAL MOBILE */

  .testimonial-entry {
    padding-block:
      62px 70px;
  }


  .testimonial-meta {
    grid-template-columns:
      32px 1fr;

    gap: 16px;
  }


  .testimonial-date {
    grid-column: 2;

    text-align: left;

    margin-top: 8px;
  }


  .testimonial-copy {
    padding-left: 48px;

    margin-top: 32px;
  }


  .testimonial-copy blockquote {
    font-size:
      clamp(31px, 8.5vw, 44px);
  }

}



/* --------------------------------
   SMALL PHONES
-------------------------------- */

@media (max-width: 480px) {

  .hero-actions {
    flex-direction: column;

    gap: 14px;
  }


  .testimonial-copy {
    padding-left: 0;
  }


  .site-footer {
    min-height: 82px;

    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    gap: 2px;
  }

}