/* =========================================================
   DUVAUGHN BECKFORD — AUDIO ENGINEER
   Global stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   01. Design tokens
   --------------------------------------------------------- */

:root {
  --background: #f5f4f1;
  --surface: #eeece7;
  --text: #171717;
  --muted: #777572;
  --soft: #9a9893;
  --rule: #d8d6d0;
  --accent: #b85f32;

  --container: 1320px;
  --gutter: clamp(24px, 5vw, 80px);

  --display-size: clamp(3rem, 6.4vw, 6.25rem);
  --section-title: clamp(2rem, 3.6vw, 3.5rem);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --space-2xl: 160px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ---------------------------------------------------------
   02. Reset
   --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* ---------------------------------------------------------
   03. Accessibility
   --------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: var(--text);
  color: var(--background);
}


/* ---------------------------------------------------------
   04. Global layout
   --------------------------------------------------------- */

.container {
  width: min(
    calc(100% - (var(--gutter) * 2)),
    var(--container)
  );
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.section-heading {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: var(--section-title);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}


/* ---------------------------------------------------------
   05. Header
   --------------------------------------------------------- */

.site-header {
  padding-top: 32px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.1;
}

.brand-role {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .035em;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 2px;
}

.site-nav a {
  position: relative;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--text);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}


/* ---------------------------------------------------------
   06. Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(120px, 18vw, 270px);
  padding-bottom: clamp(140px, 18vw, 280px);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 0;
  bottom: 8%;
  left: 0;
  background-image:
    linear-gradient(
      rgba(245, 244, 241, .88),
      rgba(245, 244, 241, .88)
    ),
    url("images/home-texture.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
  pointer-events: none;
}

.hero .eyebrow {
  display: none;
}

.hero h1 {
  max-width: 1200px;
  margin: 0;
  color: var(--text);
  font-size: var(--display-size);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .92;
}

.hero-role {
  margin: 24px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.hero-specialties {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .035em;
  line-height: 1.4;
}

.hero-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 42px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.2;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  transition: transform .35s var(--ease);
}

.text-link:hover span {
  transform: translateX(6px);
}


/* ---------------------------------------------------------
   07. Services
   --------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 96px);
}

.service {
  min-width: 0;
}

.service-number {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
}

.service h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.service p {
  max-width: 330px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}


/* ---------------------------------------------------------
   08. Engineering capabilities
   --------------------------------------------------------- */

.engineering {
  padding-top: 80px;
}

.capability-list {
  border-top: 1px solid var(--rule);
}

.capability {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}

.capability span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
}

.capability h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}


/* ---------------------------------------------------------
   09. Credits
   --------------------------------------------------------- */

.credits {
  padding-top: 120px;
}

.credits-list {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.credits-more {
  color: var(--muted);
}

.credits-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
}


/* ---------------------------------------------------------
   10. Contact CTA
   --------------------------------------------------------- */

.contact-cta {
  padding-block: clamp(140px, 20vw, 280px);
}

.contact-cta h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}


/* ---------------------------------------------------------
   11. Footer
   --------------------------------------------------------- */

.site-footer {
  padding-block: 40px 28px;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.footer-brand,
.footer-location {
  display: flex;
  flex-direction: column;
}

.footer-brand span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.footer-brand span:last-child,
.footer-location {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .025em;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 22px;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .035em;
}


/* ---------------------------------------------------------
   12. About page
   --------------------------------------------------------- */

.page-intro {
  position: relative;
  isolation: isolate;
  padding-top: clamp(120px, 16vw, 220px);
  padding-bottom: 80px;
}

.page-intro::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(
      rgba(245, 244, 241, .84),
      rgba(245, 244, 241, .84)
    ),
    url("images/about-texture.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
  pointer-events: none;
}

.page-intro h1 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .95;
}

.intro-role {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.about-content {
  padding-bottom: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr);
  gap: clamp(60px, 10vw, 180px);
  align-items: start;
}

.about-copy {
  max-width: 720px;
}

.about-copy p {
  margin: 0 0 28px;
  color: #4d4c49;
  font-size: 17px;
  line-height: 1.75;
}

.about-copy .lead {
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
}

.photo-placeholder {
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.84);
}

.education {
  margin-top: 56px;
}

.education-item {
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

.education-item:first-of-type {
  margin-top: 16px;
  border-top: 1px solid var(--rule);
}

.education-item h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.education-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.about-closing {
  padding-block: 0 100px;
  border-top: 0;
}

.about-closing p {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: 17px;
  color: #4d4c49;
  line-height: 1.75;
}


/* ---------------------------------------------------------
   13. Contact page
   --------------------------------------------------------- */

.contact-page {
  min-height: calc(100svh - 150px);
  padding-top: clamp(120px, 18vw, 240px);
  padding-bottom: 160px;
}

.contact-page h1 {
  max-width: 1000px;
  margin: 22px 0 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .92;
}

.contact-intro {
  max-width: 520px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color .3s var(--ease),
    border-color .3s var(--ease);
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   14. Responsive — tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

  :root {
    --gutter: 32px;
  }

  .service-grid {
    gap: 32px;
  }

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

  .about-copy {
    max-width: 760px;
  }

  .about-side {
    max-width: 480px;
  }

}


/* ---------------------------------------------------------
   15. Responsive — mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

  :root {
    --gutter: 22px;
    --space-2xl: 100px;
  }

  .site-header {
    padding-top: 24px;
  }

  .header-inner {
    align-items: flex-start;
    gap: 24px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: .045em;
  }

  .brand-role {
    font-size: 12px;
  }

  .site-nav {
    gap: 14px;
    padding-top: 1px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .hero {
    padding-top: 130px;
    padding-bottom: 130px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
    letter-spacing: -.055em;
    line-height: .91;
  }

  .hero-break {
    display: none;
  }

  .hero-role {
    margin-top: 18px;
    font-size: 22px;
  }

  .hero-specialties {
    font-size: 13px;
  }

  .hero-location {
    margin-top: 36px;
    font-size: 13px;
  }

  .text-link {
    margin-top: 34px;
    font-size: 16px;
  }

  .section {
    padding-block: 100px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .service p {
    max-width: 520px;
  }

  .engineering {
    padding-top: 70px;
  }

  .capability {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding-block: 20px;
  }

  .capability h3 {
    font-size: 20px;
  }

  .credits {
    padding-top: 90px;
  }

  .credits-list {
    font-size: 31px;
    line-height: 1.18;
  }

  .contact-cta {
    padding-block: 120px;
  }

  .contact-cta h2 {
    font-size: 52px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-location {
    align-items: flex-start;
  }

  .footer-bottom {
    padding-top: 8px;
  }

  .page-intro {
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .page-intro h1 {
    font-size: 48px;
  }

  .about-content {
    padding-bottom: 90px;
  }

  .about-grid {
    gap: 70px;
  }

  .about-copy p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-copy .lead {
    font-size: 19px;
  }

  .photo-placeholder {
    max-width: 100%;
  }

  .about-closing {
    padding-bottom: 80px;
  }

  .about-closing p {
    font-size: 16px;
    line-height: 1.7;
  }

  .contact-page {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 140px;
  }

  .contact-page h1 {
    font-size: 54px;
  }

  .contact-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 25px;
  }

}


/* ---------------------------------------------------------
   16. Reduced motion
   --------------------------------------------------------- */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

}
