@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --ink: #342e2e;
  --warm: #cfcdc7;
  --light: #e8e8e8;
  --muted: #6f6a67;
  --display: Anton, 'Arial Narrow', Impact, sans-serif;
  --body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 104px);
  --icon-line: #8a5a3c;
  --icon-tone: rgba(138, 90, 60, 0.16);
  --icon-accent: #d9643a;
  --icon-green: #5e8b4a;
  --icon-green-tone: rgba(94, 139, 74, 0.24);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* Icons -------------------------------------------------------------- */
/* Line icons drawn on a 24px grid, sized by the font size of where they sit. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  color: var(--icon-line);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Round badges were sized for emoji glyphs; line icons need a little more to fill them. */
.service-badge .icon,
.scale-icon .icon,
.ai-badge .icon,
.work-icon .icon { font-size: 1.3em; }

.portfolio-page { overflow-x: hidden; }

/* Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 34px) var(--gutter);
  background: var(--warm);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  font-size: clamp(13px, 1.05vw, 15px);
}

.site-nav a { transition: opacity 0.2s ease; }
.site-nav a:hover { opacity: 0.55; }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(52, 46, 46, 0.45);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-toggle:hover { background: var(--ink); color: var(--warm); }
.toggle-icon { width: 14px; height: 14px; }

/* Hero -------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(80px, 13vw, 190px) var(--gutter) clamp(70px, 10vw, 150px);
  background: var(--warm);

  /* 0.72em of the .hero-lead scale, so both hero icons match regardless of their line. */
  --hero-icon-size: clamp(25px, 3.53vw, 53px);
}

.hero-lead,
.hero-trail {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  font-weight: 400;
  text-align: center;
}

.hero-lead { font-size: clamp(34px, 4.9vw, 74px); }
.hero-trail { font-size: clamp(24px, 3.1vw, 46px); padding-top: 0.1em; }

.hero-icon {
  display: inline-block;
  font-size: var(--hero-icon-size);
  line-height: 1;
  vertical-align: baseline;
}

.hero-trail .hero-icon { transform: translateY(0.08em) rotate(9deg); }

/* Request, processing, done: one drawing that plays the sequence on a loop. */
.hero-flow { width: 4em; transform: translateY(0.1em); }
.hero-flow .flow-tone { fill: var(--icon-tone); stroke: none; }
.hero-flow .flow-accent { fill: var(--icon-accent); stroke: none; }
.hero-flow .flow-teeth { stroke-width: 3.4; stroke-linecap: butt; }
.hero-flow .flow-line { stroke-width: 1.4; stroke-dasharray: 0.1 3; opacity: 0.4; }
.hero-flow .flow-tick { stroke: var(--icon-accent); stroke-width: 2; stroke-dasharray: 13; }
.hero-flow .flow-dot { opacity: 0; }
.hero-flow .flow-ping,
.hero-flow .flow-gear,
.hero-flow .flow-check { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero-flow * { animation: 3s ease-in-out infinite; }
  .hero-flow .flow-ping { animation-name: flow-ping; }
  .hero-flow .flow-dot-1 { animation-name: flow-dot-1; animation-timing-function: linear; }
  .hero-flow .flow-gear { animation-name: flow-gear; }
  .hero-flow .flow-dot-2 { animation-name: flow-dot-2; animation-timing-function: linear; }
  .hero-flow .flow-tick { animation-name: flow-tick; }
  .hero-flow .flow-check { animation-name: flow-check; }
}

@keyframes flow-ping {
  0% { transform: scale(0); }
  8% { transform: scale(1.3); }
  12%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

@keyframes flow-dot-1 {
  0%, 12% { opacity: 0; transform: translateX(0); }
  14% { opacity: 1; }
  26% { opacity: 1; transform: translateX(11px); }
  28%, 100% { opacity: 0; transform: translateX(11px); }
}

/* The gear has eight teeth, so half a turn ends where it began and the loop is seamless. */
@keyframes flow-gear {
  0%, 28% { transform: rotate(0deg); }
  56%, 100% { transform: rotate(180deg); }
}

@keyframes flow-dot-2 {
  0%, 56% { opacity: 0; transform: translateX(0); }
  58% { opacity: 1; }
  70% { opacity: 1; transform: translateX(11px); }
  72%, 100% { opacity: 0; transform: translateX(11px); }
}

@keyframes flow-tick {
  0%, 72% { stroke-dashoffset: 13; opacity: 1; }
  84%, 94% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes flow-check {
  0%, 74% { transform: scale(1); }
  81% { transform: scale(1.12); }
  88%, 100% { transform: scale(1); }
}

/* Chapter photos ----------------------------------------------------- */
/* Each full-bleed photo opens the section that follows it. The source photos are
   panoramic (~2.16:1); a taller box crops the left and right edges instead of the top
   and bottom, so each reads less like a letterbox. */
.chapter-image {
  margin: 0;
  overflow: hidden;
  background: var(--warm);
}

.chapter-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Scroll-driven motion, CSS only: photos settle from a slight zoom as they scroll in,
   and section content rises into place. It finishes once an element is fully in view.
   Nothing moves for people who ask for reduced motion, and browsers without scroll
   timelines show everything as is. */
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .chapter-image img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 50%;
    }

    .vision > *,
    .services-intro,
    .service-card,
    .block-head,
    .examples-head,
    .scale-list li,
    .about-ai > *,
    .work-step,
    .closing > *,
    .credential,
    .about-chapter > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* Product vision ---------------------------------------------------- */
.section-eyebrow {
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.vision {
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  background: var(--ink);
  color: var(--warm);
}

.vision-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
}

.vision-body {
  max-width: 60ch;
  margin: clamp(24px, 3vw, 44px) 0 0;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  opacity: 0.85;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 52px);
  margin: clamp(48px, 6vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.pillar {
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid rgba(207, 205, 199, 0.35);
}

.pillar-step {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  opacity: 0.45;
}

.pillar h3 {
  margin: clamp(14px, 1.6vw, 22px) 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  text-transform: uppercase;
}

.pillar p {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
  opacity: 0.8;
}

/* Services ------------------------------------------------------------ */
.services {
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  background: radial-gradient(120% 150% at 0% 0%, var(--warm) 0%, var(--light) 58%);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  margin-bottom: clamp(36px, 5vw, 76px);
}

.services-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: 0.95;
  text-transform: uppercase;
}

.services-body {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

/* The offer, then examples of what it builds. */
/* The space sits on the heading: `.scale-list` resets its own margins later on. */
.examples-head { margin: clamp(56px, 7vw, 104px) 0 clamp(24px, 3vw, 40px); }

.examples-title {
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 0.95;
  text-transform: uppercase;
}

.examples-body {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

/* Six tracks: the first three cards take two each, the last two take three. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid rgba(52, 46, 46, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.service-card:nth-child(n + 4) { grid-column: span 3; }

.service-badge {
  display: grid;
  place-items: center;
  width: clamp(46px, 4.2vw, 60px);
  height: clamp(46px, 4.2vw, 60px);
  border: 1px solid rgba(52, 46, 46, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1;
}

.service-title {
  margin: clamp(18px, 2vw, 28px) 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 0.95;
  text-transform: uppercase;
}

.service-body {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
}

/* Footer ------------------------------------------------------------- */
.site-footer {
  padding: clamp(56px, 8vw, 118px) var(--gutter);
  background: var(--light);
  text-align: center;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 50px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.footer-email:hover { opacity: 0.6; }

.footer-icon {
  width: 0.72em;
  height: 0.72em;
  stroke-width: 1.9;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .service-card:nth-child(n + 4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero,
  .services-intro,
  .vision-pillars,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .hero { padding-top: clamp(48px, 14vw, 96px); padding-inline: 16px; }
  /* "Tech that works with you" is 10.46em wide in Anton: sized so it holds one line on a phone. */
  .hero-lead { font-size: min((100vw - 32px) / 10.8, 64px); }
  .hero-flow { display: block; margin: 0.3em auto 0; transform: none; }
  .site-header { flex-wrap: wrap; row-gap: 12px; }
}

/* About page --------------------------------------------------------- */
.about-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.2vw, 36px);
  margin: 0;
  padding: clamp(30px, 3.6vw, 52px) var(--gutter) clamp(40px, 5vw, 76px);
  background: var(--warm);
}

.credential {
  padding-top: clamp(16px, 1.8vw, 24px);
  border-top: 1px solid rgba(52, 46, 46, 0.28);
}

.credential-value {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.credential-label {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
  opacity: 0.6;
}

.about-hero {
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 72px);
  background: var(--warm);
}

.about-eyebrow {
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.about-title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 0.93;
  text-transform: uppercase;
}

.about-lead {
  max-width: 58ch;
  margin: clamp(22px, 2.6vw, 36px) 0 0;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
}

.about-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  gap: clamp(28px, 4vw, 72px);
  padding: 0 var(--gutter) clamp(30px, 4vw, 56px) 0;
  background: var(--warm);
}

.about-chapter {
  padding: 0 var(--gutter) clamp(56px, 7vw, 104px);
  background: var(--warm);
}

.about-chapter p {
  max-width: 58ch;
  margin: 0 0 clamp(14px, 1.4vw, 20px);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
}

.portrait {
  margin: 0;
  align-self: start;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait figcaption {
  padding: 14px var(--gutter) 0;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.story-copy {
  padding-top: clamp(24px, 4vw, 64px);
}

.story-title {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 0.95;
  text-transform: uppercase;
}

.story-copy p {
  max-width: 58ch;
  margin: 0 0 clamp(14px, 1.4vw, 20px);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
}

.about-block,
.work {
  padding: clamp(52px, 7vw, 104px) var(--gutter);
  background: var(--light);
}

.block-head { margin-bottom: clamp(28px, 3.6vw, 54px); }

.block-title {
  margin: 0 0 clamp(12px, 1.4vw, 20px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 0.93;
  text-transform: uppercase;
}

.block-body {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

.scale-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(52, 46, 46, 0.18);
}

.scale-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(14px, 2vw, 30px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid rgba(52, 46, 46, 0.18);
}

.scale-step {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  opacity: 0.35;
}

.scale-icon {
  display: inline-grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  margin-left: 0.5em;
  border: 1px solid rgba(52, 46, 46, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.7em;
  line-height: 1;
  vertical-align: middle;
}

.scale-list h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.5vw, 23px);
  letter-spacing: -0.01em;
}

.scale-list p {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
}

.about-ai {
  padding: clamp(56px, 8vw, 118px) var(--gutter);
  background: radial-gradient(110% 140% at 100% 0%, var(--warm) 0%, var(--light) 62%);
  text-align: center;
}

.ai-badge {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(52, 46, 46, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  font-size: 30px;
  line-height: 1;
}

.ai-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 0.93;
  text-transform: uppercase;
}

.ai-lead {
  max-width: 66ch;
  margin: clamp(20px, 2.4vw, 32px) auto 0;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.6;
}

.work-list {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-step {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(52, 46, 46, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.work-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(52, 46, 46, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 24px;
  line-height: 1;
}

.work-step h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.work-when {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.work-step p {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
}

/* Closing: the dark band bookends the vision section and opens an email. */
.closing {
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  background: var(--ink);
  color: var(--warm);
  text-align: center;
}

.closing-title {
  max-width: 16ch;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
}

.closing-body {
  max-width: 58ch;
  margin: clamp(22px, 2.8vw, 40px) auto 0;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  opacity: 0.85;
}

.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(30px, 3.6vw, 52px);
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--ink);
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.closing-cta:hover { opacity: 0.85; }
.cta-icon { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .about-credentials { grid-template-columns: 1fr; }

  .about-story {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .portrait figcaption { padding-bottom: 8px; }
  .story-copy { padding: 0 var(--gutter); }
  .about-lead { max-width: none; }
}
