:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #696862;
  --paper: #f7f4ed;
  --paper-strong: #fffdf8;
  --line: rgba(23, 23, 23, 0.14);
  --red: #b73b2c;
  --green: #315f4b;
  --blue: #315e79;
  --gold: #b88a2f;
  --shadow: 0 24px 70px rgba(38, 34, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(183, 59, 44, 0.1), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(49, 94, 121, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(247, 244, 237, 0.94) 62%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.026) 1px, transparent 1px),
    linear-gradient(135deg, rgba(184, 138, 47, 0.06), transparent 42%);
  background-position: -1px -1px, -1px -1px, 0 0;
  background-size: 52px 52px, 52px 52px, 100% 100%;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.68) 58%, transparent 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(247, 244, 237, 0.78);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-color: currentColor;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
}

.lang-switch button {
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--paper-strong);
}

main {
  overflow: hidden;
}

.hero {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 78px);
}

.hero-copy {
  max-width: 840px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(58px, 11vw, 150px);
  line-height: 0.86;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  color: var(--green);
  font-size: clamp(38px, 7vw, 96px);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: #34332f;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

.hero-actions,
.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 23, 23, 0.12);
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.ghost {
  background: rgba(255, 253, 248, 0.55);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intro-section,
.services-section,
.principles-section,
.method-section,
.notes-section,
.contact-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(23, 23, 23, 0.1);
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(255, 253, 248, 0.44);
}

.intro-section h2,
.section-heading h2,
.contact-section h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.intro-section > p,
.contact-box p {
  margin-bottom: 0;
  color: #3f3d38;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.72;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 420px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.42);
}

.service-card:nth-child(2) {
  background: rgba(49, 95, 75, 0.08);
}

.service-card:nth-child(3) {
  background: rgba(49, 94, 121, 0.08);
}

.service-card:nth-child(4) {
  background: rgba(184, 138, 47, 0.09);
}

.service-number {
  display: block;
  margin-bottom: 72px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.1;
}

.service-card p {
  color: #44413b;
  line-height: 1.62;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.service-card li {
  padding-top: 8px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.principles-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: rgba(49, 95, 75, 0.08);
}

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

.principle-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 6px;
}

.principle-copy p {
  margin-bottom: 0;
  color: #3f3d38;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.72;
}

.method-section {
  background: #20201c;
  color: #f4efe4;
}

.method-section .section-kicker {
  color: #d79c36;
}

.name-meaning {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 36px;
  background: rgba(244, 239, 228, 0.16);
}

.name-meaning article {
  min-height: 210px;
  padding: 28px;
  background: #282821;
}

.name-meaning span {
  display: block;
  margin-bottom: 36px;
  color: #d79c36;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.name-meaning h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.08;
}

.name-meaning p {
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.76);
  line-height: 1.68;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notes-grid a {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  transition: transform 180ms ease, border-color 180ms ease;
}

.notes-grid a:hover {
  border-color: rgba(23, 23, 23, 0.34);
  transform: translateY(-3px);
}

.notes-grid span {
  display: block;
  margin-bottom: 46px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notes-grid strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  background: rgba(255, 253, 248, 0.42);
}

.contact-box {
  padding-top: 8px;
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .intro-section,
  .principles-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 42px;
  }

  .service-grid,
  .name-meaning,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
    width: 100%;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .service-grid,
  .name-meaning,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 38px;
  }

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