:root {
  color-scheme: light;
  --ink: #17222b;
  --muted: #5c6a73;
  --steel: #24516b;
  --steel-dark: #17384b;
  --river: #3d7f86;
  --amber: #c98a20;
  --paper: #f7f5ef;
  --concrete: #e7e4da;
  --white: #ffffff;
  --line: rgba(23, 34, 43, 0.14);
  --shadow: 0 24px 70px rgba(23, 34, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 34, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto minmax(13rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white);
  background: var(--steel-dark);
  border: 3px solid var(--amber);
  font-weight: 800;
  letter-spacing: 0;
}

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

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

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.header-name {
  justify-self: center;
  color: var(--steel-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tab-link {
  min-height: 2.5rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.tab-link:hover,
.tab-link:focus-visible,
.tab-link.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.tab-panel {
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 8.5rem);
}

.eyebrow,
.summary-label {
  margin: 0 0 0.65rem;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lead {
  max-width: 41rem;
  color: #394852;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--steel-dark);
  border-color: var(--steel-dark);
}

.button.secondary {
  color: var(--steel-dark);
  background: var(--white);
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: clamp(22rem, 42vw, 34rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(22rem, 42vw, 34rem);
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  width: 40%;
  height: 0.75rem;
  background: var(--amber);
}

.summary-grid,
.artefact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.summary-grid article,
.artefact-card,
.profile-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-grid article,
.artefact-card {
  min-height: 13.5rem;
  padding: 1.35rem;
}

.summary-grid strong,
.profile-panel strong {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.36;
}

.summary-grid p,
.artefact-card p {
  margin-bottom: 0;
}

.page-intro {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-intro p:last-child {
  font-size: 1.1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-story {
  display: grid;
  gap: 1rem;
}

.story-card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 34, 43, 0.08);
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-card p {
  text-align: justify;
}

.story-number {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--white);
  background: var(--river);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.panel-image,
.section-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.panel-image {
  height: 14rem;
  margin-bottom: 0.25rem;
}

.section-image {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 34, 43, 0.1);
}

.section-image img {
  height: clamp(16rem, 36vw, 28rem);
}

.artefact-selection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.artefact-selection article {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.artefact-selection h3 {
  margin-bottom: 0.55rem;
}

.artefact-selection p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.artefact-timeline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.artefact-timeline::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.4rem;
  width: 2px;
  background: linear-gradient(var(--steel), var(--river), var(--amber));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: 1.25rem;
  color: var(--white);
  background: var(--steel-dark);
  border: 4px solid var(--paper);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 34, 43, 0.18);
}

.featured-artefact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(23, 34, 43, 0.11);
}

.timeline-item .featured-artefact {
  margin-bottom: 0;
}

.featured-artefact-media {
  margin: 0;
  background: var(--concrete);
  aspect-ratio: 16 / 7;
}

.featured-artefact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-artefact-content {
  padding: clamp(1.35rem, 4vw, 2.35rem);
}

.featured-artefact-content h3 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.featured-artefact-content p {
  text-align: justify;
}

.featured-artefact-content h4 {
  margin: 0 0 0.75rem;
  color: var(--steel-dark);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-block,
.reflection-block {
  margin: 1.35rem 0;
  padding: 1.1rem;
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding: 0.45rem 0.65rem;
  color: var(--steel-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.reflection-block {
  border-left: 5px solid var(--river);
}

.reflection-block p {
  margin-bottom: 0;
}

.project-details {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.project-details div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.project-details div:last-child {
  border-bottom: 1px solid var(--line);
}

.project-details dt {
  color: var(--steel-dark);
  font-weight: 800;
}

.project-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.source-note {
  margin: 1.25rem 0 0;
  font-size: 0.86rem;
}

.featured-artefact-content .source-note {
  text-align: left;
}

.source-note a {
  color: var(--steel-dark);
  font-weight: 800;
}

.profile-panel div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.profile-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.artefact-card {
  position: relative;
  overflow: hidden;
}

.artefact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--steel), var(--river), var(--amber));
}

.artefact-card span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.4rem;
  color: var(--white);
  background: var(--steel-dark);
  border-radius: 50%;
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .header-name {
    justify-self: start;
  }

  .tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
  }

  .summary-grid,
  .artefact-grid,
  .artefact-selection {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    padding: 0.85rem;
  }

  .brand {
    min-width: 0;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .tab-link {
    display: flex;
    justify-content: center;
    padding: 0.7rem 0.35rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .artefact-timeline::before {
    left: 1.2rem;
  }

  .timeline-item {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .timeline-marker {
    width: 2.4rem;
    height: 2.4rem;
    border-width: 3px;
    font-size: 0.74rem;
  }

  .project-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .featured-artefact-media {
    aspect-ratio: 16 / 9;
  }
}
