:root {
  color-scheme: light;
  --ivory: #f7f2e9;
  --ivory-deep: #eee6d8;
  --charcoal: #20201e;
  --charcoal-soft: #3b3934;
  --mineral: #74736c;
  --mineral-light: #b8b2a5;
  --beige: #ded2be;
  --sand: #c9b89c;
  --white: #fffdf8;
  --line: rgba(32, 32, 30, 0.14);
  --shadow: 0 22px 60px rgba(48, 43, 35, 0.08);
  --max: 1160px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.86), rgba(247, 242, 233, 0.72)),
    var(--ivory);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(32, 32, 30, 0.1);
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--charcoal);
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: none;
}

.site-nav a,
.site-footer a {
  color: var(--charcoal-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.header-action,
.button-primary {
  background: var(--charcoal);
  color: var(--white);
}

.header-action:hover,
.button-primary:hover {
  background: #000;
}

.button-secondary {
  background: transparent;
  color: var(--charcoal);
}

.button-secondary:hover {
  border-color: var(--mineral);
  background: rgba(255, 253, 248, 0.72);
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--charcoal);
  cursor: pointer;
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-6px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"] {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]::before {
  transform: translateY(1px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]::after {
  transform: translateY(0) rotate(-45deg);
}

.section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.hero {
  display: grid;
  align-items: center;
  padding: 54px 0 66px;
}

.hero-grid,
.editorial-grid,
.contact-grid {
  display: grid;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mineral);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.hero-subtitle,
.section-copy > p,
.philosophy p,
.legal-content p,
.legal-content li {
  color: var(--charcoal-soft);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.hero-subtitle {
  max-width: 690px;
  margin-bottom: 32px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.abstract-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(32, 32, 30, 0.055) 23% 24%, transparent 24% 55%, rgba(32, 32, 30, 0.055) 55% 56%, transparent 56%),
    linear-gradient(180deg, var(--white), #eee5d5);
  box-shadow: var(--shadow);
}

.abstract-panel::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(32, 32, 30, 0.16);
  content: "";
}

.panel-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(32, 32, 30, 0.2);
}

.panel-line-one {
  top: 34%;
}

.panel-line-two {
  top: 66%;
}

.panel-block {
  position: absolute;
  border: 1px solid rgba(32, 32, 30, 0.16);
  background: rgba(255, 253, 248, 0.72);
}

.panel-block-large {
  top: 18%;
  right: 13%;
  width: 42%;
  height: 34%;
}

.panel-block-small {
  bottom: 16%;
  left: 13%;
  width: 30%;
  height: 22%;
  background: rgba(222, 210, 190, 0.62);
}

.panel-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--mineral);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.panel-caption span:first-child {
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 0.8;
  text-transform: none;
}

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

.section-copy p {
  max-width: 720px;
}

.card-grid,
.focus-grid {
  display: grid;
  gap: 14px;
}

.info-card,
.focus-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.56);
}

.info-card p,
.focus-card p,
.note {
  margin-bottom: 0;
  color: var(--mineral);
}

.card-index {
  display: block;
  margin-bottom: 34px;
  color: var(--mineral);
  font-size: 0.78rem;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 30px;
}

.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(238, 230, 216, 0.58));
}

.focus-card span {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(32, 32, 30, 0.16);
  background:
    linear-gradient(90deg, transparent 48%, rgba(32, 32, 30, 0.16) 48% 50%, transparent 50%),
    linear-gradient(180deg, transparent 48%, rgba(32, 32, 30, 0.16) 48% 50%, transparent 50%);
}

.focus-card:nth-child(even) span {
  background:
    linear-gradient(135deg, transparent 47%, rgba(32, 32, 30, 0.16) 47% 51%, transparent 51%),
    rgba(222, 210, 190, 0.3);
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(222, 210, 190, 0.28), rgba(255, 253, 248, 0)),
    var(--ivory-deep);
}

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

.portfolio-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-row span:first-child {
  font-weight: 650;
}

.portfolio-row span:last-child {
  color: var(--mineral);
}

.portfolio-head {
  display: none;
}

.note {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 1px solid var(--sand);
}

.philosophy {
  text-align: center;
}

.narrow {
  max-width: 820px;
}

.philosophy p {
  margin-bottom: 0;
}

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

.contact-link {
  align-self: end;
  color: var(--charcoal);
  font-size: clamp(1.25rem, 4vw, 2.6rem);
  font-weight: 560;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--mineral);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.legal-hero {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.legal-content {
  padding: 48px 0 80px;
}

.legal-content .section-inner {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  font-weight: 650;
}

@media (max-width: 759px) {
  .header-action {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 18px 46px rgba(48, 43, 35, 0.1);
    transition: max-height 0.24s ease;
  }

  .site-nav.is-open {
    max-height: 360px;
  }

  .site-nav a {
    padding: 18px 24px;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.95rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    align-items: center;
  }

  .editorial-grid,
  .contact-grid {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  }

  .card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .portfolio-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.5fr);
    gap: 24px;
  }

  .portfolio-head {
    display: grid;
    padding: 12px 0;
    color: var(--mineral);
    font-size: 0.78rem;
    font-weight: 760;
    text-transform: uppercase;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1060px) {
  .section {
    padding: 104px 0;
  }

  .hero {
    padding: 72px 0 88px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
