@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #eeece4;
  --paper: #fbfaf6;
  --ink: #15171b;
  --muted: #5a5e64;
  --line: #dbd8ce;
  --signal: #2f5d54;
  --signal-soft: #e3ebe7;
  --dark: #15171b;
  --dark2: #1c1f23;
  --max: 1140px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto
}

/* ---------- header ----------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 236, 228, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 43, 51, 0.12);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  font-family: Fraunces, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.brand-tag {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-top: 3px;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

nav a:hover {
  border-bottom-color: var(--signal);
}

.rule {
  height: 3px;
  background: var(--signal);
  width: 100%;
}

/* ---------- hero ---------- */
.hero {
  padding: 120px 0 110px;
  background: var(--paper);
  border-bottom: 1px solid var(--line)
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 80px;
  align-items: end
}

.eyebrow {
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 18px;
}

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

h1 {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

h1 em {
  font-style: italic;
  color: var(--muted);
  font-weight: 400
}

h2 {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.01em;
  font-weight: 600
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 740px;
  color: var(--ink)
}

.intro,
.section-intro {
  color: var(--muted);
  max-width: 740px;
  font-size: 1rem
}

.actions,
.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px
}

.button {
  display: inline-flex;
  padding: 13px 22px;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

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

.button.primary:hover {
  background: var(--signal);
  border-color: var(--signal)
}

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

.button.secondary:hover {
  border-color: var(--signal);
  color: var(--signal)
}

.hero-card {
  background: var(--dark);
  color: #fff;
  padding: 34px
}

.card-label {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: .9rem;
  color: #a9b0ac;
  margin-bottom: 20px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.hero-card li {
  padding: 12px 0;
  border-top: 1px solid #2c2f33;
  font-size: .92rem
}

/* ---------- generic section rhythm ---------- */
.section {
  padding: 110px 0
}

.section-alt {
  background: #e6e4da
}

.section-dark {
  background: var(--dark);
  color: #fff
}

.section-dark .eyebrow {
  color: #9aa19c
}

.section-dark .section-intro {
  color: #b7bab6
}

/* ---------- capabilities ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article {
  background: var(--paper);
  padding: 34px 30px;
  min-height: 200px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid span {
  display: none
}

/* not a real sequence — number removed */
.capability-grid p {
  color: var(--muted);
  font-size: .94rem
}

/* ---------- case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid #34373b;
}

.case-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #34373b;
  padding: 34px 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px 40px;
  transition: padding-left .18s ease;
}

.case-card:hover {
  padding-left: 14px;
  border-color: #565a5e
}

.case-number {
  display: none
}

/* not a real sequence — number removed */
.case-card h3 {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin-top: 0;
  grid-column: 1;
}

.case-card p {
  color: #b3b6b3;
  max-width: 520px;
  grid-column: 1;
  margin-top: 8px
}

.case-card span {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: Inter, sans-serif;
  font-size: .85rem;
  color: var(--signal);
  white-space: nowrap;
  align-self: center;
}

/* ---------- experience ---------- */
.timeline {
  margin-top: 48px;
  border-top: 1px solid var(--line)
}

.timeline article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line)
}

.timeline-meta {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--muted)
}

.timeline h3 {
  margin-bottom: 6px
}

.timeline p {
  color: var(--muted);
  max-width: 720px
}

/* ---------- approach ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px
}

.principles>div {
  border-top: 1px solid #c7c4b8;
  padding: 22px 0
}

.principles strong {
  font-size: 1.02rem
}

.principles p {
  color: var(--muted);
  margin: 8px 0 0
}

/* ---------- technology ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

.tags span {
  font-family: Inter, sans-serif;
  font-size: .85rem;
  color: var(--muted);
  border: none;
  padding: 0;
  background: transparent;
}

/* ---------- contact ---------- */
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line)
}

.contact .eyebrow {
  color: var(--signal)
}

.contact h2 {
  max-width: 760px
}

footer {
  background: var(--dark);
  color: #9aa19c;
  padding: 26px 0;
  font-size: .8rem
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px
}

/* ---------- motion & accessibility ---------- */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    transition: none !important
  }
}

@media(max-width:800px) {
  nav {
    display: none
  }

  .hero {
    padding: 80px 0
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 45px
  }

  .capability-grid {
    grid-template-columns: 1fr
  }

  .case-card {
    grid-template-columns: 1fr
  }

  .case-card span {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .footer-wrap {
    flex-direction: column
  }
}