:root {
  --paper: #f8f5ed;
  --paper-deep: #eee8dc;
  --ink: #27221f;
  --ink-soft: #625951;
  --line: rgba(39, 34, 31, 0.16);
  --teal: #ad4b35;
  --teal-dark: #763326;
  --aqua: #ead8bf;
  --aqua-light: #f8eee0;
  --coral: #eba186;
  --coral-dark: #a84430;
  --sun: #f1d77b;
  --white: #fffdf7;
  --display: "Bricolage Grotesque", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --shell: min(1240px, calc(100vw - 64px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}
.skip-link:focus { transform: translateY(0); }

.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  width: var(--shell);
  height: 94px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; text-decoration: none; }
.brand img { width: auto; height: 38px; display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease-out;
}
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-cta {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background: var(--ink);
}
.site-nav .nav-cta:hover { color: var(--white); background: var(--teal-dark); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  width: var(--shell);
  min-height: 790px;
  margin: 24px auto 0;
  padding: clamp(54px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(39, 34, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 34, 31, 0.055) 1px, transparent 1px),
    var(--white);
  background-size: 56px 56px;
  border-radius: 28px;
}

.hero-copy, .conversation-card { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; display: block; background: var(--coral); border-radius: 50%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  hyphens: none;
  page-break-after: avoid;
}

h1 { max-width: 780px; font-size: clamp(4rem, 6.8vw, 7.2rem); line-height: 0.91; }
h1 em { color: var(--teal); font-style: normal; }
.hero-lede { max-width: 59ch; margin: 34px 0 0; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.56; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; }

.button {
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms ease-out;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 18px 45px rgba(118, 51, 38, 0.16); }
.button-primary:hover { background: var(--teal-dark); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--teal-dark); }
.text-link { font-size: 0.88rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.text-link:hover { color: var(--teal); border-color: var(--teal); }

.hero-notes { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-notes span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.conversation-card {
  min-height: 560px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  color: var(--ink);
  background: var(--aqua);
  box-shadow: 24px 34px 70px rgba(39, 34, 31, 0.13);
  transform: rotate(1.4deg);
}

.card-orbit { position: relative; height: 300px; border-radius: 16px; overflow: hidden; background: var(--aqua-light); }
.orbit { position: absolute; border: 1px solid rgba(118, 51, 38, 0.24); border-radius: 50%; animation: float 8s ease-in-out infinite; }
.orbit-one { width: 260px; height: 260px; top: 20px; left: calc(50% - 130px); }
.orbit-two { width: 188px; height: 188px; top: 56px; left: calc(50% - 94px); animation-delay: -2s; }
.orbit-three { width: 110px; height: 110px; top: 95px; left: calc(50% - 55px); animation-delay: -4s; }
.orbit-center {
  position: absolute;
  width: 84px;
  height: 84px;
  top: 108px;
  left: calc(50% - 42px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
}
.orbit-label { position: absolute; padding: 7px 10px; border-radius: 30px; background: var(--white); font-family: var(--mono); font-size: 0.59rem; }
.label-one { top: 44px; left: 28px; }
.label-two { top: 82px; right: 20px; }
.label-three { right: 72px; bottom: 28px; }

.card-copy { padding: 30px 18px 14px; }
.card-index { color: var(--teal-dark); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; }
.card-copy h2 { max-width: 15ch; margin-top: 14px; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.card-copy p { max-width: 43ch; margin: 16px 0 20px; color: #62554c; font-size: 0.88rem; }
.card-copy a { font-size: 0.8rem; font-weight: 650; text-decoration: none; }

.hero-shape { position: absolute; z-index: 1; border-radius: 50%; }
.shape-one { width: 220px; height: 220px; right: -60px; top: -70px; background: var(--coral); opacity: 0.72; }
.shape-two { width: 130px; height: 130px; left: 48%; bottom: -62px; background: var(--sun); }

.welcome-line { width: var(--shell); margin: 0 auto; padding: 36px 12px; overflow: hidden; }
.welcome-line p { margin: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 42px); color: var(--ink-soft); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.welcome-line i { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; }

.capabilities { padding-block: 130px; }
.section-intro { display: grid; grid-template-columns: 220px 1fr; gap: 50px; }
.section-tag { color: var(--ink-soft); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
.section-tag span { margin-right: 12px; color: var(--coral-dark); }
.section-intro h2, .approach-copy h2, .why-statement h2, .contact-copy h2 { max-width: 18ch; font-size: clamp(2.7rem, 4.7vw, 5.25rem); }
.section-intro > div > p { max-width: 58ch; margin: 26px 0 0; color: var(--ink-soft); }

.service-list { margin-top: 78px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  min-height: 480px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  transition: transform 240ms var(--ease), box-shadow 240ms ease-out;
}
.service:hover { transform: translateY(-7px) rotate(-0.5deg); box-shadow: 0 24px 55px rgba(39, 34, 31, 0.11); }
.service-ai { background: var(--aqua); }
.service-automation { background: #f5d6ca; }
.service-software { background: #f3e6ae; }
.service-number { align-self: flex-end; font-family: var(--mono); font-size: 0.64rem; }
.service-icon { width: 54px; height: 54px; margin-top: 38px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.3rem; }
.service > div:nth-of-type(2) { margin-top: auto; }
.service-type { margin: 0 0 10px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; }
.service h3 { max-width: 12ch; font-size: clamp(1.75rem, 2.7vw, 2.8rem); }
.service p:last-child { max-width: 39ch; margin: 18px 0 0; color: #61564e; font-size: 0.84rem; }
.service > a { margin-top: 28px; align-self: flex-end; font-size: 1.35rem; text-decoration: none; transition: transform 180ms var(--ease); }
.service > a:hover { transform: translate(3px, -3px); }

.approach { padding-block: 140px; color: var(--white); background: var(--ink); }
.approach-grid { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: clamp(70px, 10vw, 150px); align-items: center; }
.approach .section-tag { color: #b8aaa0; }
.approach-copy h2 { margin-top: 40px; }
.approach-copy > p { max-width: 56ch; margin: 30px 0 0; color: #c9bbb0; line-height: 1.6; }
.approach-steps { margin: 0; padding: 0; list-style: none; }
.approach-steps li { padding: 26px 0; display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-top: 1px solid rgba(255, 253, 247, 0.16); }
.approach-steps li:last-child { border-bottom: 1px solid rgba(255, 253, 247, 0.16); }
.approach-steps span { color: var(--coral); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.approach-steps p { max-width: 42ch; margin: 0; color: #e5dad0; }

.why { padding-block: 140px; display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(70px, 10vw, 150px); }
.why-statement h2 { margin-top: 40px; }
.why-statement > p { max-width: 59ch; margin: 30px 0 0; color: var(--ink-soft); line-height: 1.62; }
.why-facts { display: flex; flex-direction: column; justify-content: center; }
.why-facts article { padding: 26px 0; border-top: 1px solid var(--line); }
.why-facts article:last-child { border-bottom: 1px solid var(--line); }
.why-facts strong { font-size: 1rem; }
.why-facts p { margin: 7px 0 0; color: var(--ink-soft); font-size: 0.85rem; }

.contact { padding-bottom: 110px; }
.contact-panel {
  position: relative;
  padding: clamp(40px, 6vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(48px, 6vw, 88px);
  overflow: hidden;
  border-radius: 28px;
  background: #f5dfbd;
}
.contact-panel::after { content: ""; position: absolute; width: 340px; height: 340px; right: -160px; top: -150px; border: 1px solid rgba(39, 34, 31, 0.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(39, 34, 31, 0.025), 0 0 0 120px rgba(39, 34, 31, 0.018); }
.contact-copy, .contact-form { position: relative; z-index: 1; }
.contact-copy .eyebrow { color: #71331f; }
.contact-copy .eyebrow span { background: var(--ink); }
.contact-copy > p:not(.eyebrow) { max-width: 50ch; margin: 28px 0; color: #613527; }
.contact-copy .contact-trust { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.contact-copy > a { font-family: var(--mono); font-size: 0.78rem; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(39, 34, 31, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.76);
}
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-heading { padding-bottom: 24px; border-bottom: 1px solid rgba(39, 34, 31, 0.16); }
.form-heading p { margin: 0 0 14px; color: #71331f; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.form-heading h3 { margin: 0; font-size: clamp(1.75rem, 2.3vw, 2.55rem); line-height: 1.02; letter-spacing: -0.045em; }
.form-heading span { max-width: 48ch; margin-top: 12px; display: block; color: #6a493d; font-size: 0.86rem; line-height: 1.5; }
.contact-form label { display: flex; flex-direction: column; gap: 9px; color: #5d3023; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { min-height: 54px; padding: 14px 15px; border: 1px solid rgba(39, 34, 31, 0.28); border-radius: 8px; outline: none; color: var(--ink); background: rgba(255, 253, 249, 0.84); font-family: var(--display); font-size: 1rem; text-transform: none; resize: vertical; transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out; }
.contact-form textarea { min-height: 132px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(39, 34, 31, 0.48); }
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(39, 34, 31, 0.46); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral-dark); background: #fffdf9; box-shadow: 0 0 0 3px rgba(188, 72, 48, 0.13); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.form-footer p, .form-status { margin: 0; color: #6a3728; font-family: var(--mono); font-size: 0.61rem; text-transform: none; }
.form-footer .button { min-width: 224px; }
.form-status { min-height: 1em; color: var(--ink); }
.form-status.is-error { color: #8b2018; }
.contact-form button:disabled { cursor: wait; opacity: 0.58; transform: none; }

.site-footer { min-height: 170px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.7rem; }
.site-footer .brand img { height: 34px; }
.site-footer > p { margin: 0; }
.site-footer > div { display: flex; gap: 22px; }
.site-footer > div a { text-decoration: none; }
.site-footer > p:last-child { grid-column: 1 / -1; margin-top: -44px; text-align: right; font-family: var(--mono); }

.legal-page { min-height: calc(100vh - 110px); padding-block: clamp(70px, 10vw, 140px); }
.legal-shell { width: min(1060px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: minmax(190px, 0.34fr) minmax(0, 0.66fr); gap: clamp(42px, 8vw, 110px); }
.legal-aside { padding-top: 12px; color: var(--ink-soft); font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; }
.legal-aside p { margin: 0 0 16px; }
.legal-copy { max-width: 70ch; }
.legal-copy > .eyebrow { margin-bottom: 28px; }
.legal-copy h1 { max-width: 12ch; margin: 0 0 36px; font-size: clamp(3.4rem, 8vw, 6.5rem); }
.legal-copy h2 { max-width: none; margin: 54px 0 14px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.legal-copy p, .legal-copy li { color: var(--ink-soft); line-height: 1.65; }
.legal-copy li + li { margin-top: 10px; }
.legal-actions { margin-top: 36px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-copy.reveal { transition-delay: 60ms; }
.conversation-card.reveal { transition-delay: 180ms; }
.service:nth-child(2).reveal { transition-delay: 100ms; }
.service:nth-child(3).reveal { transition-delay: 200ms; }

@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.015); } }

@media (max-width: 1020px) {
  :root { --shell: min(100% - 42px, 920px); }
  .hero { grid-template-columns: 1fr; padding: 72px; }
  .hero-copy { max-width: 800px; }
  .conversation-card { width: min(100%, 620px); justify-self: end; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: 1 / -1; }
  .approach-grid, .why, .contact-panel { grid-template-columns: 1fr; }
  .contact-copy { max-width: 720px; }
  .contact-form { max-width: 760px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 32px); }
  .site-header { height: 76px; }
  .brand img { height: 31px; }
  .menu-toggle { min-height: 44px; padding: 0; border: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); background: transparent; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .menu-toggle span, .menu-toggle span::before { width: 18px; height: 1px; display: block; background: currentColor; transition: transform 180ms ease-out; }
  .menu-toggle span::before { content: ""; transform: translateY(-5px); }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(-90deg); }
  .site-nav { position: absolute; z-index: 20; top: 76px; right: 16px; left: 16px; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 24px 55px rgba(39, 34, 31, 0.16); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .site-nav .nav-cta { margin-top: 10px; justify-content: space-between; }
  .hero { min-height: auto; margin-top: 12px; padding: 58px 22px 70px; gap: 58px; border-radius: 20px; background-size: 42px 42px; }
  h1 { font-size: clamp(3.35rem, 15.7vw, 5.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-notes { margin-top: 44px; }
  .conversation-card { min-height: 520px; padding: 14px; transform: none; }
  .card-copy { padding-inline: 10px; }
  .shape-one { width: 130px; height: 130px; }
  .shape-two { left: 70%; }
  .welcome-line { overflow: hidden; }
  .welcome-line p { justify-content: flex-start; }
  .capabilities, .why { padding-block: 92px; }
  .section-intro { grid-template-columns: 1fr; gap: 38px; }
  .service-list { margin-top: 52px; grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .service { min-height: 430px; }
  .approach { padding-block: 96px; }
  .approach-grid { gap: 62px; }
  .approach-steps li { grid-template-columns: 86px 1fr; gap: 16px; }
  .why { gap: 58px; }
  .contact { padding-bottom: 72px; }
  .contact-panel { padding: 42px 22px; border-radius: 20px; }
  .contact-copy h2 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .wide { grid-column: auto; }
  .contact-form { padding: 24px 18px; border-radius: 14px; }
  .form-heading { padding-bottom: 20px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .legal-shell { width: min(100% - 32px, 1060px); grid-template-columns: 1fr; gap: 24px; }
  .legal-copy h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .site-footer { padding-block: 42px; grid-template-columns: 1fr; align-items: start; }
  .site-footer > p:last-child { grid-column: auto; margin-top: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
