/* kitsune.company
   Each colour has one meaning, everywhere on the page:
   orange is AI (Kitsune and its agents) and every accent,
   green is people, gray is the past and quiet labels. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #FF6600;
  --green: #34D399;
  --gray: #8E97AD;
  --bg: #0B0F1A;
  --bg-deep: #070A12;
  --card: #131A2B;
  --card-orange: #2A1602;
  --card-green: #0F2A22;
  --text: #F6F1E8;
  --text-soft: #B9C0D0;
  --ink: #140A02;
  --hairline: rgba(142, 151, 173, 0.22);

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 15vh, 184px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
strong { font-weight: 600; color: var(--text); }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--wide { max-width: 1400px; }

/* Shared pieces ----------------------------------------------------------- */

.label {
  font: 600 0.8125rem/1.4 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}
.label--ink { color: var(--ink); }

.title {
  margin-top: 20px;
  max-width: 17ch;
  font: 700 clamp(2.25rem, 5.6vw, 4.5rem)/1.04 var(--display);
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

.section { padding-block: var(--section); }
.section--deep { background: var(--bg-deep); }

.closing-line {
  margin-top: clamp(48px, 7vh, 80px);
  max-width: 62ch;
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  line-height: 1.45;
}

/* 1. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(18px, 3vh, 30px);
  text-align: center;
  background: radial-gradient(ellipse 78% 62% at 50% 44%, #1A2238 0%, #0E1322 46%, var(--bg-deep) 100%);
  overflow: hidden;
}

.wordmark {
  /* The right margin takes back the space the last letter's tracking adds,
     so the word sits on the true centre. */
  margin-right: -0.46em;
  font: 700 clamp(1.375rem, 3.6vw, 2.375rem)/1 var(--display);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--text);
  animation: rise 1.2s 0.1s both;
}

.hero__center {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3.2vh, 34px);
  padding-block: clamp(20px, 4vh, 48px);
}

.hero__fox {
  position: relative;
  width: min(68vw, 460px);
  width: min(68vw, 46svh, 460px);
  animation: rise 1.4s 0.25s both;
}
.hero__fox img { position: relative; width: 100%; }

.hero__glow {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 102, 0, 0.30), rgba(255, 102, 0, 0.09) 58%, rgba(255, 102, 0, 0));
  animation: glow 7s ease-in-out infinite alternate;
}

.hero__line {
  font: 700 clamp(1.625rem, 4.6vw, 3.25rem)/1.1 var(--display);
  letter-spacing: -0.015em;
  color: var(--orange);
  text-wrap: balance;
  animation: rise 1.2s 0.55s both;
}

.hero__line span { display: inline-block; }

.hero__label {
  margin-right: -0.34em;
  font: 600 clamp(0.6875rem, 1.3vw, 0.875rem)/1.4 var(--body);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  animation: rise 1.2s 0.8s both;
}

.hero__scroll {
  display: grid;
  place-items: start center;
  width: 44px;
  height: 56px;
  animation: rise 1.2s 1.2s both;
}
.hero__scroll span {
  position: relative;
  width: 1px;
  height: 52px;
  background: linear-gradient(rgba(246, 241, 232, 0), rgba(246, 241, 232, 0.45));
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 18px;
  background: var(--orange);
  animation: drop 3.4s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes glow {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.05); }
}
@keyframes drop {
  0% { transform: translateY(-20px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* 2. The wave: the one section in brand orange ------------------------------ */

.wave { background: var(--bg-deep); }
.wave__edge { width: 100%; height: clamp(34px, 6.4vw, 92px); fill: var(--orange); }
.wave__edge--top { margin-bottom: -1px; }
.wave__edge--bottom { margin-top: -1px; background: var(--bg); }

.wave__body {
  padding-block: clamp(56px, 9vh, 112px) clamp(64px, 10vh, 128px);
  background: var(--orange);
  color: var(--ink);
}
.wave ::selection { background: var(--ink); color: var(--orange); }

.wave__title {
  margin-top: 20px;
  max-width: 13ch;
  font: 700 clamp(2.625rem, 7.6vw, 6.5rem)/0.98 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wave__text {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 7vh, 80px);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  font-weight: 500;
}
@media (min-width: 820px) {
  .wave__text { grid-template-columns: 1fr 1fr; max-width: 1040px; }
}

/* 3. Three questions ------------------------------------------------------ */

.questions { padding-block: var(--section); }

.question {
  max-width: 21ch;
  font: 700 clamp(2rem, 5.4vw, 4.5rem)/1.06 var(--display);
  letter-spacing: -0.024em;
  color: var(--text);
  text-wrap: balance;
}
.question::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: clamp(20px, 3vh, 32px);
  background: var(--orange);
}
.question + .question { margin-top: clamp(72px, 14vh, 168px); }
@media (min-width: 900px) {
  .question:nth-child(2) { margin-left: 12%; }
  .question:nth-child(3) { margin-left: 24%; }
}

/* 4. People move up ------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 7vh, 72px);
}

.step {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--card);
}
.step__when {
  font: 600 0.8125rem/1.4 var(--body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.step h3 {
  margin: 10px 0 14px;
  font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.12 var(--display);
  letter-spacing: -0.01em;
  color: var(--text);
}
.step p:not(.step__when) { color: var(--text); }

.step--before .step__when { color: var(--gray); }
.step--before h3, .step--before p:not(.step__when):not(.step__note) { color: var(--text-soft); }
.step--before p.step__note:not(.step__when) {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--orange);
}
.step--now { border: 2px solid var(--green); }
.step--next { border: 2px solid var(--green); background: var(--card-green); }
.step--now .step__when, .step--next .step__when { color: var(--green); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
  .step { min-height: 300px; }
  .step--before { margin-top: 112px; }
  .step--now { margin-top: 56px; }
}
/* On a phone the steps still rise: each one sits a little further in. */
@media (max-width: 859.98px) {
  .step--before { margin-right: 14%; }
  .step--now { margin-inline: 7%; }
  .step--next { margin-left: 14%; }
}
@media (max-width: 479.98px) {
  .step--before { margin-right: 8%; }
  .step--now { margin-inline: 4%; }
  .step--next { margin-left: 8%; }
}

/* 5. The shape of the company --------------------------------------------- */

.org {
  --line: 2px;
  --drop: 40px;
  --gap: 16px;
  margin-top: clamp(44px, 7vh, 76px);
  display: grid;
  justify-items: center;
}

.org__box {
  width: 100%;
  padding: 20px clamp(20px, 3vw, 32px);
  border-radius: 18px;
  border: 2px solid;
  text-align: center;
}
.org__box--people { max-width: 600px; border-color: var(--green); background: var(--card-green); }
.org__box--ai {
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  border-color: var(--orange);
  background: var(--card-orange);
}
.org__box--ai img { flex: none; width: clamp(52px, 7vw, 72px); }

.org__role {
  font: 600 0.8125rem/1.4 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.org__box--people .org__role { color: var(--green); }
.org__box--ai .org__role { color: var(--orange); }
.org__what {
  margin-top: 6px;
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.35;
  color: var(--text);
}

@media (max-width: 479.98px) {
  .org__role { font-size: 0.75rem; letter-spacing: 0.16em; }
}

.org__link { width: var(--line); height: 32px; background: var(--orange); }
.org__link--down { height: var(--drop); }

.depts { width: 100%; display: grid; gap: var(--gap); }

.dept {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 16px 16px;
  background: var(--card);
}
.dept h3 {
  font: 700 1.3125rem/1.18 var(--display);
  letter-spacing: -0.005em;
  color: var(--text);
}
.dept__promise { margin-top: 12px; color: var(--text); line-height: 1.45; }
.dept__agents { margin-top: 18px; font-size: 0.9375rem; color: var(--gray); }
.dept__human { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--green); }

/* Wide: five panels side by side, joined to Kitsune by a bar and five drops. */
@media (min-width: 1000px) {
  .depts { grid-template-columns: repeat(5, 1fr); padding-top: var(--drop); position: relative; }
  .depts::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100% - 4 * var(--gap)) / 10);
    right: calc((100% - 4 * var(--gap)) / 10);
    height: var(--line);
    background: var(--orange);
  }
  .dept::before {
    content: "";
    position: absolute;
    left: calc(50% - var(--line) / 2);
    bottom: 100%;
    width: var(--line);
    height: calc(var(--drop) + 3px);
    background: var(--orange);
  }
  .dept { min-height: 252px; }
}
/* Phone and tablet: the panels stack and one vertical line joins them. */
@media (max-width: 999.98px) {
  .depts { --rail: 26px; padding-left: var(--rail); }
  .dept::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--rail));
    top: 50%;
    width: var(--rail);
    height: var(--line);
    background: var(--orange);
  }
  .dept::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--rail));
    top: calc(-1 * var(--gap) - 3px);
    width: var(--line);
    height: calc(100% + var(--gap) + 3px);
    background: var(--orange);
  }
  .dept:last-child::after { height: calc(50% + var(--gap) + 3px + var(--line)); }
  .org__link--down { justify-self: start; height: 28px; }
  .dept__human { padding-top: 14px; }
}

.org__rule {
  margin: clamp(40px, 6vh, 64px) auto 0;
  max-width: 54ch;
  text-align: center;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text);
  text-wrap: balance;
}
.org__note {
  margin: 14px auto 0;
  max-width: 54ch;
  text-align: center;
  text-wrap: balance;
  font-size: 0.9375rem;
  color: var(--gray);
}

/* 6. Kitsune, the General Manager ----------------------------------------- */

.manager { display: grid; gap: clamp(36px, 6vh, 56px); }
@media (min-width: 960px) {
  .manager { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .manager__head { position: sticky; top: 15vh; }
}
.manager .title { font-size: clamp(2.125rem, 4.6vw, 3.75rem); max-width: 14ch; }
.manager .title span { display: block; }

.checks li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: start;
  padding-block: clamp(20px, 3vh, 30px);
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.42;
  color: var(--text);
}
.checks li:last-child { border-bottom: 1px solid var(--hairline); }
.checks svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--card-orange);
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 7. The fox behind the name ---------------------------------------------- */

.path {
  --gap: clamp(40px, 5vw, 72px);
  --sink: 124px;
  margin-top: clamp(44px, 7vh, 76px);
  display: grid;
  gap: 0;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: clamp(118px, 38vw, 200px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  max-width: 640px;
  padding-bottom: 76px;
}

.print__frame {
  aspect-ratio: 7 / 10;
  border: 1.5px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.print__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35);
}
.print figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--gray); }

.stop__no {
  font: 600 0.875rem/1.4 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.stop h3, .today h3 {
  margin: 8px 0 12px;
  font: 700 clamp(1.375rem, 2.1vw, 1.625rem)/1.15 var(--display);
  letter-spacing: -0.008em;
  color: var(--text);
}
.stop__text p:last-child { font-size: 1rem; line-height: 1.55; }

/* The path between the stops: a thin dashed orange line with an arrow head.
   Stacked, it runs straight down from under each print. */
.path__arrow {
  position: absolute;
  left: calc(clamp(118px, 38vw, 200px) / 2);
  bottom: 14px;
  height: 46px;
  border-left: 1.5px dashed var(--orange);
}
.path__arrow::after {
  content: "";
  position: absolute;
  left: -5.5px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  transform: rotate(45deg);
}

.today {
  display: grid;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(255, 102, 0, 0.55);
  border-radius: 20px;
  background: var(--card-orange);
}
.today img { width: clamp(88px, 12vw, 148px); }
.today h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); max-width: 24ch; text-wrap: balance; }
.today p:last-child { max-width: 62ch; color: var(--text); }
@media (min-width: 600px) {
  .today { grid-template-columns: auto 1fr; }
}

/* Wide: three stops side by side, the middle one lower, joined like a path. */
@media (min-width: 1200px) {
  .path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: stretch;
  }
  .stop {
    grid-template-columns: 43% minmax(0, 1fr);
    gap: 22px;
    max-width: none;
    padding-bottom: 0;
  }
  .stop--2 { top: var(--sink); }
  .stop__text p:last-child { font-size: 0.9375rem; }

  .path__arrow { left: auto; bottom: auto; height: auto; border-left: 1.5px dashed var(--orange); }
  .path__arrow::after { left: auto; bottom: auto; }

  /* 01 to 02: down from under the first stop, then across into the second print. */
  .stop--1 .path__arrow {
    left: 62%;
    top: calc(100% + 12px);
    width: calc(38% + var(--gap) - 16px);
    height: 40px;
    border-bottom: 1.5px dashed var(--orange);
    border-bottom-left-radius: 44px;
  }
  .stop--1 .path__arrow::after { right: -1px; bottom: -5.5px; transform: rotate(-45deg); }

  /* 02 to 03: up from above the second stop, then across into the third print. */
  .stop--2 .path__arrow {
    left: 72%;
    bottom: calc(100% + 12px);
    width: calc(28% + var(--gap) - 16px);
    height: 44px;
    border-top: 1.5px dashed var(--orange);
    border-top-left-radius: 44px;
  }
  .stop--2 .path__arrow::after { right: -1px; top: -5.5px; transform: rotate(-45deg); }

  /* 03 to 04: straight down into the panel of today. */
  .stop--3 .path__arrow {
    left: 21.5%;
    top: calc(100% + 12px);
    height: calc(var(--sink) + 20px);
  }
  .stop--3 .path__arrow::after { left: -5.5px; bottom: -1px; }

  .today { grid-column: 1 / -1; margin-top: calc(var(--sink) + 44px); }
}

/* 8. Control -------------------------------------------------------------- */

.rules {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 7vh, 72px);
}
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, 1fr); } }

.rule {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--card);
}
.rule svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rule h3 {
  margin: 22px 0 14px;
  font: 700 clamp(1.3125rem, 1.9vw, 1.5rem)/1.16 var(--display);
  letter-spacing: -0.008em;
  color: var(--text);
  text-wrap: balance;
}

/* 9. Closing -------------------------------------------------------------- */

.closing {
  padding-block: var(--section);
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #161D31 0%, var(--bg-deep) 70%);
}
.closing .wrap { display: grid; justify-items: center; }
.closing__fox { position: relative; width: clamp(120px, 18vw, 188px); margin-bottom: clamp(28px, 5vh, 48px); }
.closing__fox img { position: relative; width: 100%; }
.closing .title { max-width: 14ch; }
.closing__text {
  margin-top: clamp(22px, 4vh, 36px);
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  text-wrap: balance;
}

.button {
  display: inline-block;
  margin-top: clamp(32px, 5vh, 52px);
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 600 1.0625rem/1 var(--body);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255, 102, 0, 0.6); }
.button:focus-visible { border-radius: 999px; }

/* 10. Footer -------------------------------------------------------------- */

.footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
  font-size: 0.875rem;
  color: var(--gray);
}
.footer__in { display: grid; gap: 12px; justify-items: center; text-align: center; }
.footer__small { max-width: 60ch; font-size: 0.8125rem; text-wrap: balance; }

/* Motion ------------------------------------------------------------------
   Sections fade and rise a little as they enter. Only with scripts running,
   so the page is complete without them. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-d="1"] { transition-delay: 0.12s; }
.js [data-d="2"] { transition-delay: 0.24s; }
.js [data-d="3"] { transition-delay: 0.36s; }
.js [data-d="4"] { transition-delay: 0.48s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__scroll span::after { display: none; }
}

@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
}
