/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-light: #e0e0db;
  --color-dark: #253551;
  --color-text-dark: #000;
  --color-text-light: #fff;
  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Newsreader', serif;
  --max-width: 1500px;
  --gutter: 4vw;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  transition: background-color 0.3s;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-dark);
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-dark);
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
.section {
  position: relative;
  overflow: hidden;
}

.section-light .section-bg {
  background-color: var(--color-light);
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-dark .section-bg {
  background-color: var(--color-dark);
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--gutter);
}

.section-dark {
  color: var(--color-text-light);
}

/* Section Dividers */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.section-divider svg {
  width: 100%;
  display: block;
}

.divider-diagonal svg {
  height: 80px;
}

.divider-wave-top {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.divider-wave-top svg {
  height: 80px;
}

.divider-wave-top-large {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.divider-wave-top-large svg {
  height: 120px;
}

/* Hero */
.section-hero {
  padding-bottom: 80px;
}

.section-hero .section-content {
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.7vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-text-dark);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 37px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-text p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 300px;
  background-color: var(--color-dark);
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
}

/* Areas of Interest */
.section-areas {
  padding-top: 0;
}

.section-areas .section-content {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-areas h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.area-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.area-item:nth-child(3n) {
  border-right: none;
}

.area-item:nth-last-child(-n+3) {
  border-bottom: none;
}

.area-item .accordion-toggle {
  padding: 20px 24px;
}

.area-item .accordion-toggle h4 {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 400;
  font-style: italic;
}

.area-item .accordion-body {
  padding: 0 24px;
}

.area-item .accordion-body p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* Accordions */
.accordion {
  width: 100%;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 20px 0;
  gap: 16px;
}

.accordion-toggle h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 37px);
  font-weight: 400;
  font-style: italic;
}

.accordion-icon {
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.accordion.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body p {
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 20px;
}

/* Work History */
.section-history {
  padding-top: 80px;
}

.section-history .section-content {
  padding-top: 100px;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.history-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.history-accordions {
  max-width: 800px;
}

.history-accordions .accordion {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.history-accordions .accordion:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Awards */
.section-awards {
  padding-top: 120px;
  padding-bottom: 0;
}

.section-awards .section-content {
  padding-top: 140px;
  padding-bottom: 60px;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 32px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 24px;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 400;
  font-style: italic;
}

.marquee-separator {
  font-size: clamp(20px, 2.5vw, 36px);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.awards-list {
  max-width: 700px;
  margin-left: auto;
}

.awards-list p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Footer */
.section-footer {
  padding-top: 80px;
}

.section-footer .section-content {
  padding-top: 100px;
  padding-bottom: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-grid a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid a:hover {
  opacity: 0.7;
}

/* ===================== */
/* Works Page            */
/* ===================== */

.section-clients .section-content {
  padding-top: 120px;
}

.clients-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  align-items: start;
}

.clients-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.7vw, 68px);
  font-weight: 400;
  line-height: 1.1;
}

.clients-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.clients-col-heading {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin-bottom: 16px;
}

.client-list {
  list-style: none;
  padding: 0;
}

.client-list li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2;
}

.client-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-list a:hover {
  opacity: 0.7;
}

/* Projects Blurbs */
.projects-heading {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.project-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 12px;
}

.project-item h3 a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-item h3 a:hover {
  opacity: 0.7;
}

.project-item p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

.divider-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.divider-wave-bottom svg {
  height: 80px;
  width: 100%;
  display: block;
}

/* ===================== */
/* About Page            */
/* ===================== */

.section-about-intro .section-content {
  padding-top: 120px;
  padding-bottom: 40px;
}

.about-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-intro p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.about-intro .intro-italic {
  font-style: italic;
}

/* Roles (white bg) */
.section-white .section-bg {
  background-color: #fff;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-roles .section-content {
  padding-top: 60px;
  padding-bottom: 60px;
}

.role-block {
  margin-bottom: 48px;
  max-width: 900px;
}

.role-block:last-child {
  margin-bottom: 0;
}

.role-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 400;
  margin-bottom: 20px;
}

.role-block p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Tools Section */
.section-tools .section-content {
  padding-top: 60px;
  padding-bottom: 100px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.tools-col h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 37px);
  font-weight: 400;
  margin-bottom: 16px;
}

.tools-col p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
}

/* ===================== */
/* Responsive            */
/* ===================== */

/* Responsive */
@media (max-width: 900px) {
  :root {
    --gutter: 6vw;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }

  .header-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .header-nav a {
    font-size: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 0;
  }

  .hero-image img {
    max-width: 300px;
  }

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

  .area-item:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .area-item:nth-child(2n) {
    border-right: none;
  }

  .area-item:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .area-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

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

  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Works responsive */
  .clients-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  /* About responsive */
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .area-item:last-child {
    border-bottom: none !important;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .divider-diagonal svg {
    height: 40px;
  }

  .divider-wave-top svg {
    height: 40px;
  }

  .divider-wave-top-large svg {
    height: 60px;
  }

  .section-awards .section-content {
    padding-top: 80px;
  }

  .section-history .section-content {
    padding-top: 60px;
  }

  .section-footer .section-content {
    padding-top: 60px;
  }

  /* Works responsive small */
  .clients-columns {
    grid-template-columns: 1fr;
  }

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

  /* About responsive small */
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .divider-wave-bottom svg {
    height: 40px;
  }
}
