@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #f4f1ea;
  --ground-deep: #e6e1d6;
  --line: #cfc8ba;
  --ink: #0f2a33;
  --ink-soft: #3f5259;
  --petrol: #1a6c83;
  --sage: #7a9382;
  --sage-light: #adbeab;
  --terracotta: #ad4424;
  --on-dark: #d4e0e3;

  --font-display: "Raleway", sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 28px;
  --mark-width: clamp(260px, 38vw, 540px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: var(--petrol);
}

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

h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

em {
  font-style: normal;
  color: var(--terracotta);
}

/* Building blocks */

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: 56px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
}

.label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.panel {
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-ink {
  background: var(--ink);
  color: var(--ground);
}

.panel-petrol {
  background: var(--petrol);
  color: var(--ground);
}

.panel-sage {
  background: var(--sage-light);
}

.pill {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
}

.pill-dark {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--ground);
}

.pill-accent {
  background: var(--terracotta);
  color: var(--ground);
}

.pill-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.pill-sage {
  background: var(--sage-light);
  color: var(--ink);
}

.pill-ghost {
  border: 1px solid #5c7f8a;
  color: var(--ground);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.site-logo {
  height: 48px;
  width: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 16px;
}

.site-header nav a:not(.pill) {
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
}

.hero-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.hero h1 {
  flex: 999 1 640px;
  font-size: clamp(52px, 8.4vw, 128px);
}

.hero-pitch {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 12px;
}

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

.hero-photo {
  position: relative;
  height: clamp(320px, 42vw, 560px);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

/* The mark bleeds off the top right corner: top dots half in, right line just outside. */
.hero-mark {
  position: absolute;
  top: calc(var(--mark-width) / -6);
  right: calc(var(--mark-width) * -0.19);
  width: var(--mark-width);
  color: var(--ground);
  --mark-stroke: 10;
}

/* Expertise */

.expertise {
  margin-top: 40px;
}

.expertise-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0 16px;
  border-top: 1px solid var(--line);
}

.expertise-chips .label {
  margin-right: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.expertise input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.expertise label {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ground-deep);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.expertise label:hover {
  background: var(--sage-light);
}

.expertise input:checked + label {
  background: var(--ink);
  color: var(--ground);
}

.expertise input:focus-visible + label {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

.expertise-texts {
  padding: 14px 0 18px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.expertise-texts p {
  display: none;
}

/* Hovering previews a text; leaving falls back to the selected one. */
.expertise:not(:has(label:hover)) {
  &:has(#exp-0:checked) #exp-text-0,
  &:has(#exp-1:checked) #exp-text-1,
  &:has(#exp-2:checked) #exp-text-2,
  &:has(#exp-3:checked) #exp-text-3,
  &:has(#exp-4:checked) #exp-text-4,
  &:has(#exp-5:checked) #exp-text-5,
  &:has(#exp-6:checked) #exp-text-6,
  &:has(#exp-7:checked) #exp-text-7 {
    display: block;
  }
}

.expertise:has([for="exp-0"]:hover) #exp-text-0,
.expertise:has([for="exp-1"]:hover) #exp-text-1,
.expertise:has([for="exp-2"]:hover) #exp-text-2,
.expertise:has([for="exp-3"]:hover) #exp-text-3,
.expertise:has([for="exp-4"]:hover) #exp-text-4,
.expertise:has([for="exp-5"]:hover) #exp-text-5,
.expertise:has([for="exp-6"]:hover) #exp-text-6,
.expertise:has([for="exp-7"]:hover) #exp-text-7 {
  display: block;
}

/* Services */

.services {
  padding-top: 112px;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tile {
  flex: 1 1 280px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 48px;
  border-radius: 24px;
  color: var(--ground);
}

.tile-wide {
  flex: 2 1 560px;
}

.tile h3 {
  font-size: 30px;
  font-weight: 600;
}

.tile p {
  max-width: 460px;
  font-size: 16px;
}

.tile .label {
  font-size: 13px;
  color: inherit;
  opacity: 0.8;
}

.tile-sage {
  background: var(--sage-light);
  color: var(--ink);
}

.tile-petrol {
  background: var(--petrol);
}

.tile-terracotta {
  background: var(--terracotta);
}

.tile-ink {
  background: var(--ink);
}

/* AI */

.ai {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: clamp(32px, 5vw, 72px);
  margin-bottom: 56px;
}

.ai .label,
.ai-points p {
  color: #d4e6ec;
}

.ai-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
}

.ai-intro > div {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-intro .lead {
  flex: 1 1 360px;
  font-size: 19px;
  line-height: 1.6;
}

.ai-points {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.ai-points > div {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgb(244 241 234 / 0.35);
}

.ai-points h3 {
  font-size: 24px;
  font-weight: 700;
}

.ai-points p {
  font-size: 16px;
}

/* Approach */

.approach {
  display: flex;
  flex-wrap: wrap;
}

.approach img {
  flex: 1 1 340px;
  min-width: 0;
  min-height: 360px;
  object-fit: cover;
}

.steps {
  flex: 1.6 1 420px;
  margin: 0;
  padding: clamp(16px, 4vw, 48px) clamp(24px, 5vw, 64px);
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 32px;
}

.steps li + li {
  border-top: 1px solid rgb(15 42 51 / 0.25);
}

.steps .label {
  flex: 0 0 160px;
  padding-top: 8px;
  font-weight: 500;
  color: var(--ink);
}

.steps p {
  flex: 1 1 280px;
  font-size: 20px;
  line-height: 1.5;
}

/* Logo story */

.logo-story {
  display: flex;
  flex-wrap: wrap;
}

.logo-story-mark {
  flex: 1 1 360px;
  max-height: 560px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--ground);
  --mark-square: var(--terracotta);
}

.logo-story-mark svg {
  width: 62%;
}

.logo-story-text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 72px);
  color: var(--on-dark);
}

.logo-story-text .label {
  color: var(--sage-light);
}

.logo-story-text .title {
  color: var(--ground);
  font-size: clamp(36px, 4.5vw, 60px);
}

/* Vision */

.vision {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 32px 56px;
}

.vision > div:first-child {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-story {
  flex: 1.4 1 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 3px solid var(--terracotta);
  font-size: 20px;
}

/* About */

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-bottom: 96px;
}

.about img {
  flex: 1 1 300px;
  max-width: 420px;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.about-text {
  flex: 999 1 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text > p:not(.signature) {
  max-width: 640px;
  color: var(--ink-soft);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.signature {
  font-size: 17px;
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: clamp(40px, 6vw, 88px);
  margin-bottom: 64px;
}

.contact h2 {
  flex: 999 1 520px;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.95;
}

.contact em {
  color: var(--sage-light);
}

.contact-links {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-links .pill {
  font-size: 17px;
}

/* Brand and footer */

.brand {
  display: flex;
  justify-content: center;
  padding-block: 48px 24px;
}

.brand img {
  width: min(100%, 860px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
