:root {
  --bg: #a54a38;
  --text: #fff8f4;
  --muted: rgba(255, 248, 244, 0.72);
  --line: rgba(255, 248, 244, 0.22);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1080px;
  --content: 720px;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 248, 244, 0.12), transparent 62%),
    radial-gradient(ellipse 70% 45% at 100% 35%, rgba(255, 248, 244, 0.08), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.65;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: 0;
  width: 100%;
}

.top-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.4rem;
}

.top-link,
.top-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 13vh, 7.5rem) var(--pad);
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.title,
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.lead,
.hero-copy {
  margin: 1.75rem auto 0;
  max-width: 40em;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

/* about page */
.about-page {
  flex: 1;
  padding: clamp(3rem, 10vh, 5.5rem) var(--pad) clamp(4rem, 10vh, 6rem);
}

.about-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.about-head {
  max-width: var(--content);
  margin: 0 auto;
  text-align: center;
}

.about-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.about-lead {
  margin: 1.25rem auto 0;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  border-top: 1px solid var(--line);
}

.about-item {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

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

.about-item:hover {
  background: #fff8f4;
  color: #2b1712;
  transform: translateY(-2px);
  z-index: 1;
}

.about-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

.about-item:hover .about-label {
  color: rgba(43, 23, 18, 0.5);
}

.about-item h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.about-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.35s ease;
}

.about-item:hover p {
  color: rgba(43, 23, 18, 0.78);
}

.about-item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-item:hover a {
  color: var(--bg);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-item {
    border-right: 1px solid var(--line);
  }

  .about-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

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

  .about-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
  }
}

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

  .about-item,
  .about-item:nth-child(3n),
  .about-item:nth-child(2n),
  .about-item:last-child:nth-child(odd) {
    border-right: none;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-item:hover {
    transform: none;
  }
}

/* contact page */
.page-main {
  flex: 1;
  width: min(100% - (var(--pad) * 2), var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 7rem) 0 3rem;
}

.page-main h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-main p {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-main a[href^="mailto"],
.page-main a[href^="http"],
.page-main a[href^="/"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main--center {
  text-align: center;
  padding-top: clamp(5rem, 16vh, 8rem);
}

.jobs-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.jobs-line h1 {
  margin: 0;
}

.jobs-line p {
  margin: 0;
  max-width: none;
}

.page-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.page-block h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.page-block p {
  margin-top: 0.5rem;
}

/* culture + legal pages (shared layout) */
.culture-main,
.legal-main {
  flex: 1;
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 5.5rem) 0 3rem;
}

.culture-hero,
.legal-hero {
  max-width: var(--content);
  margin: 0 auto;
  text-align: center;
}

.culture-hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.culture-lead,
.legal-lead {
  margin: 1.5rem auto 0;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}

.culture-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 8vh, 4.5rem);
  border-top: 1px solid var(--line);
}

.culture-item,
.legal-item {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

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

.legal-item--wide {
  grid-column: 1 / -1;
  border-right: none;
}

.culture-item:hover,
.legal-item:hover {
  background: #fff8f4;
  color: #2b1712;
  transform: translateY(-2px);
  z-index: 1;
}

.culture-num,
.legal-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 248, 244, 0.14);
  transition: color 0.35s ease;
}

.culture-item:hover .culture-num,
.legal-item:hover .legal-num {
  color: rgba(165, 74, 56, 0.22);
}

.culture-label,
.legal-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

.culture-item:hover .culture-label,
.legal-item:hover .legal-label {
  color: rgba(43, 23, 18, 0.5);
}

.culture-item h2,
.legal-item h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.culture-item p,
.legal-item p,
.legal-item li {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.35s ease;
}

.culture-item:hover p,
.legal-item:hover p,
.legal-item:hover li {
  color: rgba(43, 23, 18, 0.78);
}

.legal-item h3 {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-item ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-item:hover a {
  color: var(--bg);
}

.legal-item strong {
  font-weight: 600;
}

.culture-close {
  margin: clamp(2rem, 5vh, 2.75rem) auto 0;
  max-width: var(--content);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.culture-close a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .culture-grid,
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .culture-item,
  .legal-item {
    border-right: 1px solid var(--line);
  }

  .culture-item:nth-child(3n),
  .legal-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

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

  .legal-item--wide {
    grid-column: 1 / -1;
    border-right: none;
  }
}

@media (max-width: 560px) {
  .culture-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .culture-item,
  .culture-item:nth-child(3n),
  .culture-item:nth-child(2n),
  .legal-item,
  .legal-item:nth-child(3n),
  .legal-item:nth-child(2n),
  .legal-item--wide {
    border-right: none;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .culture-item,
  .legal-item {
    transition: background 0.35s ease, color 0.35s ease;
  }

  .culture-item:hover,
  .legal-item:hover {
    transform: none;
  }
}

/* footer */
.bottom {
  padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
}

.bottom-row {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  text-align: center;
}

.bottom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.bottom-nav a {
  font-size: 14px;
  color: var(--muted);
}

.bottom-copy {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
