:root {
  --ink: #111311;
  --ink-soft: #2b302c;
  --paper: #f8f7f3;
  --paper-warm: #eee7da;
  --line: #d6cdbc;
  --brass: #b88a43;
  --brass-dark: #6f532f;
  --sage: #5d6e63;
  --oxide: #8a3d32;
  --white: #ffffff;
  --shadow: 0 24px 64px rgba(17, 19, 17, 0.16);
  --max: 1180px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(248, 247, 243, 0.16);
  background: rgba(17, 19, 17, 0.86);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 15rem;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header) - 170px);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4.6rem max(1.25rem, calc((100vw - var(--max)) / 2)) 4.2rem;
  background: var(--ink);
  color: var(--white);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: -1;
  background: rgba(10, 12, 10, 0.42);
  box-shadow: inset 56vw 0 120px rgba(10, 12, 10, 0.58);
}

.hero__content {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.3rem;
  font-weight: 600;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  font-weight: 600;
}

h3 {
  font-size: 1.12rem;
  font-weight: 850;
}

.hero__lead {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

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

.button--primary:hover {
  background: #c99b51;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin: 2.5rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(17, 19, 17, 0.5);
  backdrop-filter: blur(16px);
}

.hero__facts div {
  padding: 1rem;
}

.hero__facts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

dt {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.section,
.contact-band {
  padding: 5.25rem max(1.25rem, calc((100vw - var(--max)) / 2));
}

.section--intro {
  background: var(--white);
  padding-top: 3.4rem;
}

.section--muted {
  background: var(--paper-warm);
}

.section__header {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section__header p,
.contact-band p {
  margin: 1rem 0 0;
  color: #4e554f;
  font-size: 1rem;
}

.section__header--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.structure-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.unit {
  min-height: 245px;
  padding: 1.5rem;
  background: var(--paper);
}

.unit--parent {
  background: var(--ink-soft);
  color: var(--white);
}

.unit__label,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  background: rgba(93, 110, 99, 0.12);
  color: var(--sage);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.unit--parent .unit__label {
  background: rgba(184, 138, 67, 0.18);
  color: #e2bb78;
}

.unit h3,
.portfolio-row h3,
.principles h3 {
  margin-top: 1rem;
}

.unit p,
.portfolio-row p,
.principles p {
  margin: 0.85rem 0 0;
  color: #4f5751;
}

.unit--parent p {
  color: rgba(255, 255, 255, 0.72);
}

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

.portfolio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-row > a,
.portfolio-row__meta {
  justify-self: end;
  white-space: nowrap;
}

.portfolio-row > a {
  border-radius: 6px;
  color: var(--oxide);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.portfolio-row > a:hover {
  color: var(--brass-dark);
}

.portfolio-row__meta {
  color: #68706a;
  font-size: 0.9rem;
  font-weight: 800;
}

.status--active {
  background: rgba(138, 61, 50, 0.11);
  color: var(--oxide);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.principles article {
  min-height: 210px;
  padding: 1.35rem;
  background: var(--paper);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.48fr);
  gap: 3rem;
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.contact-band h2 {
  max-width: 18ch;
}

.contact-band p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
}

.contact-panel dl {
  margin: 0;
}

.contact-panel div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-panel dd {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: #4f5751;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (max-width: 920px) {
  :root {
    --header: 118px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .site-nav a {
    min-width: 0;
    text-align: center;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .section__header--split,
  .structure-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --header: 142px;
  }

  .site-header {
    position: relative;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .site-nav a {
    min-width: 0;
    padding: 0.52rem 0.2rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 3.8rem;
    padding-bottom: 3.4rem;
  }

  .hero__shade {
    background: rgba(10, 12, 10, 0.64);
    box-shadow: none;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

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

  .hero__facts div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .section,
  .contact-band {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }

  .portfolio-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .portfolio-row > a,
  .portfolio-row__meta {
    justify-self: start;
    white-space: normal;
  }

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

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

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