@font-face {
  font-family: "Founders Grotesk";
  src: url("assets/fonts/founders-grotesk-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Founders Grotesk Mono";
  src: url("assets/fonts/founders-grotesk-mono-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d6;
  --ink: #1e1d1a;
  --muted: #6f685f;
  --line: rgba(30, 29, 26, 0.14);
  --accent: #535B73;
  --accent-soft: rgba(83, 91, 115, 0.1);
  --max-width: 72rem;
  --shadow: 0 24px 80px rgba(35, 31, 28, 0.08);
  --display: "Founders Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --sans: "DM Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  --serif: "Lora", "Georgia", serif;
  --mono: "Founders Grotesk Mono", "Courier New", monospace;

  /* Type scale */
  --text-xs:   0.75rem;                    /* 12px — caption, tiny */
  --text-sm:   0.875rem;                   /* 14px — labels, mono, footer, buttons */
  --text-base: 1rem;                       /* 16px — body, header-note */
  --text-md:   1.125rem;                   /* 18px — lede */
  --text-lg:   1.5rem;                     /* 24px — tenets titles, taglines */
  --text-xl:   1.75rem;                    /* 28px — studio copy statement */
  --text-2xl:  2rem;                        /* 32px — product h2 */
  --text-hero: clamp(3.5rem, 8vw, 5.5rem); /* h1 */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 38%),
    linear-gradient(180deg, #f7f2ea 0%, var(--paper) 36%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2 {
  margin: 0;
}

.page-shell {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: var(--text-sm);
}

.brand,
.header-note,
.eyebrow,
.tenet-index,
.button,
.site-footer {
  letter-spacing: 0.02em;
}

.brand {
  display: flex;
  align-items: center;
}

.logo-horizontal {
  height: 16px;
  width: auto;
  display: block;
}

.logo-footer {
  height: 16px;
}

.header-note,
.eyebrow,
.tenet-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--text-sm);
}

.header-note {
  font-family: var(--display);
  font-size: var(--text-base);
}

.eyebrow {
  padding-top: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
}

main {
  padding: 2.2rem 0 4.5rem;
}

.hero,
.studio-grid,
.project {
  position: relative;
}

.hero {
  padding: 1rem 0 4rem;
}

.hero::after,
.project::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

.hero::after {
  bottom: 0;
}

.project::before {
  top: 0;
}

.hero h1 {
  font-family: var(--display);
  margin-top: 1rem;
  font-size: var(--text-hero);
  line-height: 1.05;
  font-weight: 400;
}

@media (max-width: 640px) {
  .title-break { display: none; }
}

.lede {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: var(--text-md);
  line-height: 1.6;
  color: rgba(30, 29, 26, 0.9);
  text-wrap: balance;
}

.studio-copy p {
  font-size: var(--text-xl);
  line-height: 1.1;
  text-wrap: balance;
}

.project-copy p {
  font-size: var(--text-base);
  line-height: 1.6;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 5.5rem 0;
}

.studio-copy {
  display: grid;
  gap: 0.5rem;
}

.studio-note {
  color: var(--muted);
}

.tenets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.tenets li {
  display: block;
}

.tenet-index {
  display: block;
  margin-bottom: 0.5rem;
}

.tenets h2 {
  font-size: var(--text-md);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tenets p {
  margin-top: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.project {
  padding: 3rem 0 1rem;
}

.project-intro {
  display: grid;
  gap: 0.4rem;
}

.project h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid rgba(30, 29, 26, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 252, 248, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.project-left {
  display: grid;
  gap: 1.75rem;
}

.project-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.project-preview {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(35, 31, 28, 0.1);
}

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

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

.project-tagline {
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 0;
}

.project-caption {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  opacity: 0.7;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.project-actions .button-primary {
  font-size: var(--text-lg);
  min-height: 4.5rem;
  padding: 1.25rem 3rem;
  letter-spacing: 0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid rgba(83, 91, 115, 0.3);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: #f7f4ef;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #424960;
}

.button-secondary {
  border: 1px solid rgba(30, 29, 26, 0.16);
  background: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(30, 29, 26, 0.3);
  background: rgba(255, 255, 255, 0.75);
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.75rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  main {
    padding-top: 2.2rem;
  }

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

  .project-panel .project-preview {
    order: -1;
  }

  .tenets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 2.5rem, var(--max-width));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .studio-grid,
  .project {
    padding-top: 3rem;
  }

  .studio-grid {
    gap: 2rem;
    padding-bottom: 4rem;
  }

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

  .project-panel {
    margin-top: 1.5rem;
    padding: 1.35rem;
    border-radius: 1.15rem;
  }

  .button {
    width: 100%;
  }

  .project-tagline {
    max-width: none;
  }
}

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

  .button {
    transition: none;
  }
}
