@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #17171d;
  --muted: #5d5d66;
  --paper: #f4f3f0;
  --white: #fffefa;
  --lime: var(--lavender);
  --sage: #cbd7c8;
  --lavender: #dcd7ef;
  --line: rgba(23, 23, 29, 0.16);
  --radius: .75rem;
  --page: min(92vw, 1240px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

a:not(.button):not(.brand) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 220ms ease, opacity 180ms ease;
}

a:not(.button):not(.brand):hover,
a:not(.button):not(.brand):focus-visible {
  background-size: 100% 1px;
}

button {
  font: inherit;
}

.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;
}

.site-header {
  width: var(--page);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav>a:not(.button) {
  font-size: .92rem;
}

.site-nav>a:not(.button):hover {
  opacity: .55;
}

.menu-toggle {
  display: none;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 6.5rem 0;
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -.055em;
}

h1 {
  font-size: clamp(3.4rem, 6.3vw, 6.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.25rem, 3.6vw, 4.1rem);
  max-width: 13ch;
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

p {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 0 1.15rem;
}

.text-link {
  display: inline-flex;
  gap: .5rem;
  font-weight: 650;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: center;
  gap: 5vw;
  padding-top: 3rem;
}

.hero-copy {
  padding-bottom: 3rem;
}

.hero-intro {
  max-width: 650px;
  margin: 2rem 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-panel {
  align-self: start;
  margin-top: 8.5rem;
  min-height: auto;
  padding: 1.25rem 0 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.panel-kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}

.hero-panel ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.hero-panel li {
  position: relative;
  padding: .8rem 0 .8rem 1.15rem;
  border-top: 1px solid var(--line);
}

.hero-panel li:last-child {
  border-bottom: 1px solid var(--line);
}

.hero-panel li::before {
  content: "";
  width: .38rem;
  height: .38rem;
  position: absolute;
  top: 1.35rem;
  left: 0;
  border-radius: 50%;
  background: var(--ink);
  opacity: .28;
}

.hero-panel span {
  display: block;
  margin-bottom: .3rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-panel strong {
  display: block;
  max-width: 28ch;
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.panel-note {
  margin-top: 1rem;
  padding-left: 1.15rem;
  max-width: 28ch;
  font-size: .86rem;
  opacity: .72;
}

.about-section {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 5rem;
  border-top: 1px solid var(--line);
}

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

.about-copy h2 {
  margin-bottom: 2rem;
}

.about-copy p {
  margin-top: 1.15rem;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  color: var(--muted);
}

.about-copy a {
  color: var(--ink);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-intro {
  max-width: 440px;
  color: var(--muted);
  font-size: 1.05rem;
}

.projects-section {
  width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  background: var(--ink);
  color: var(--white);
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px 320px minmax(360px, 1fr) 180px;
  align-items: center;
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.project-meta {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
}

.project-card h3 {
  max-width: 15ch;
}

.project-card p {
  width: 100%;
  color: rgba(255, 255, 255, .66);
  max-width: 48ch;
}

.project-card a {
  justify-self: end;
  text-align: right;
  font-weight: 650;
  white-space: nowrap;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.article-card {
  min-height: 330px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-card:nth-child(2) {
  background: var(--sage);
}

.article-card:nth-child(3) {
  background: var(--lavender);
}

.article-meta {
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.article-card h3 {
  max-width: 18ch;
  margin-top: auto;
  margin-bottom: 1.2rem;
}

.article-card>p:not(.article-meta) {
  color: var(--muted);
  max-width: 48ch;
}

.article-card a {
  margin-top: 1.8rem;
  font-weight: 650;
}

.statement-section {
  width: 100%;
  padding: 5rem 4vw;
  background: var(--sage);
}

.statement-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4vw;
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 23, 29, .18);
  border-bottom: 1px solid rgba(23, 23, 29, .18);
}

.statement-inner blockquote {
  grid-column: 2;
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.statement-inner>p:last-child {
  grid-column: 2;
  max-width: 520px;
  margin-top: 1.25rem;
  color: var(--muted);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.now-card {
  min-height: 320px;
  padding: 2rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.now-card>span {
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.now-card h3 {
  margin-top: auto;
  margin-bottom: 1.2rem;
}

.now-card p {
  color: var(--muted);
}

.faq-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8vw;
}

.faq-section .section-heading {
  display: block;
  margin: 0;
}

.faq-section .section-heading h2 {
  max-width: 8ch;
}

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

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 200ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}

.accordion-panel p {
  overflow: hidden;
  color: var(--muted);
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.open .accordion-panel p {
  padding-bottom: 1.5rem;
}

.contact-section {
  padding: 6.5rem 4vw;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}

.contact-copy h2 {
  max-width: 12ch;
}

.contact-copy>p:last-child {
  margin-top: 2rem;
  font-size: 1.15rem;
  max-width: 38ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-email {
  align-self: flex-start;
  display: inline-block;
  padding-bottom: 1.2rem;
  font-size: clamp(1.5rem, 3vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -.05em;
}

.contact-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-links a {
  font-weight: 650;
}

.site-footer {
  min-height: 220px;
  padding: 3rem 4vw;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: .75rem 2rem;
}

.site-footer p {
  color: rgba(255, 255, 255, .62);
}

.site-footer p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: transform 420ms ease;
}

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

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

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    z-index: 30;
  }

  .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 8rem 6vw 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 260ms ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav>a {
    font-size: 2rem !important;
    font-weight: 650;
  }

  .hero,
  .about-section,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-panel {
    min-height: 520px;
  }

  .about-section {
    gap: 2rem;
  }

  .project-card {
    grid-template-columns: .25fr 1fr;
  }

  .project-card p,
  .project-card a {
    grid-column: 2;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 1.5rem;
  }

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

  .faq-section {
    gap: 4rem;
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .statement-inner blockquote,
  .statement-inner>p:last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --page: 90vw;
  }

  .section {
    padding: 5.5rem 0;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    display: none;
  }

  .projects-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .project-card h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .project-card p,
  .project-card a {
    grid-column: auto;
  }

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

  .article-card {
    min-height: 330px;
  }

  .statement-section,
  .contact-section {
    padding: 5rem 5vw;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Modular content helpers */
.article-card[data-color="sage"] {
  background: var(--sage);
}

.article-card[data-color="lavender"] {
  background: var(--lavender);
}

.article-card[data-color="lime"] {
  background: var(--lavender);
}

.article-card[data-color="paper"] {
  background: var(--paper);
}

.article-page {
  width: min(90vw, 860px);
  margin: 0 auto;
  padding: 6rem 0 9rem;
}

.article-header {
  padding: 2rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

.article-deck {
  margin-top: 2rem;
  max-width: 660px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}

.article-body {
  padding-top: 4rem;
}

.article-intro {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -.025em;
  margin-bottom: 4rem;
}

.article-section {
  margin: 0 0 4rem;
}

.article-section h2 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.article-section p {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.article-back {
  display: inline-flex;
  margin: 2rem 0 0;
  font-weight: 650;
}

.article-shell.sage {
  background: var(--sage);
}

.article-shell.lavender {
  background: var(--lavender);
}

.article-shell.lime {
  background: var(--lavender);
}

.article-shell.paper {
  background: var(--paper);
}

.article-shell .site-header {
  background: transparent;
}

.article-template-note {
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--muted);
}

.project-page {
  width: min(90vw, 1050px);
  margin: 0 auto;
  padding: 6rem 0 9rem;
}

.project-page h1 {
  max-width: 12ch;
}

.project-summary {
  max-width: 720px;
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--muted);
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5rem;
  border: 1px solid var(--line);
}

.project-details article {
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.project-details article:last-child {
  border-right: 0;
}

.project-details span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.project-details h3 {
  margin-top: 4rem;
}

@media (max-width: 680px) {

  .article-page,
  .project-page {
    padding-top: 3rem;
  }

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

  .project-details article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-details article:last-child {
    border-bottom: 0;
  }
}
