:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #12171b;
  --muted: #59635f;
  --line: #dce3df;
  --teal: #0f766e;
  --teal-strong: #0b5f59;
  --teal-soft: #e8f7f4;
  --fava-canvas: #f5f1e8;
  --amber: #f59e0b;
  --kiri-blue: #0e5aec;
  --kiri-blue-strong: #0848c7;
  --kiri-soft: #edf4ff;
  --page: min(1280px, calc(100% - 64px));
  --font: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", "YuGothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

body,
button,
a {
  font-synthesis: none;
}

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

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.header-inner {
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.site-nav > a:not(.button),
.site-footer nav a {
  position: relative;
  font-size: 14px;
  font-weight: 650;
}

.site-nav > a:not(.button)::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 26px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--teal);
  color: var(--white);
}

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

.button-small {
  min-height: 48px;
  padding: 0 20px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
}

.hero {
  min-height: 820px;
  padding-top: 84px;
  position: relative;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 5vw, 72px);
}

.hero-copy {
  padding: 80px 0 94px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 5.4vw, 82px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy > p {
  max-width: 620px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 540;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 38px;
}

.hero-media {
  min-height: 680px;
  position: relative;
  align-self: end;
}

.product-count {
  position: absolute;
  top: 78px;
  left: -46px;
  z-index: 5;
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.product-count strong {
  margin-right: 5px;
  font-size: 18px;
}

.hero-fava-canvas,
.hero-kiri-canvas {
  position: absolute;
}

.hero-fava-canvas {
  width: 410px;
  height: 410px;
  top: 104px;
  right: -48px;
  border-radius: 50%;
  background: var(--fava-canvas);
}

.hero-kiri-canvas {
  width: 500px;
  height: 300px;
  left: -84px;
  bottom: 28px;
  border-radius: 22px;
  background: var(--kiri-soft);
}

.phone {
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 46px;
  background: #f8fafb;
  box-shadow: 0 30px 70px rgba(18, 23, 27, 0.16);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-hero {
  width: 270px;
  height: 570px;
  position: absolute;
  right: -4px;
  bottom: -44px;
  z-index: 3;
  border-width: 6px;
  border-radius: 34px;
  transform: rotate(1.2deg);
}

.hero-browser {
  position: absolute;
  left: -62px;
  bottom: 42px;
  z-index: 2;
  width: 500px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 22px 48px rgba(7, 27, 61, 0.14);
}

.hero-browser img {
  width: 100%;
  height: auto;
}

.hero-product-label {
  position: absolute;
  z-index: 5;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.hero-product-label strong {
  font-size: 42px;
  font-weight: 350;
  letter-spacing: -0.06em;
}

.hero-product-label--fava {
  top: 138px;
  left: -40px;
  color: var(--teal);
}

.hero-product-label--kiri {
  bottom: 4px;
  left: -40px;
  color: var(--kiri-blue);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 38px;
  display: block;
  background: var(--ink);
  transform-origin: top;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 132px 0;
}

.services {
  padding-top: 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 100px;
}

.section-name {
  margin: 0;
  color: var(--teal);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.service {
  --service-accent: var(--teal);
  --service-accent-strong: var(--teal-strong);
  --service-canvas: var(--fava-canvas);
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(520px, 1.05fr);
  gap: clamp(50px, 5.5vw, 76px);
  align-items: center;
}

.service + .service {
  margin-top: 120px;
  padding-top: 120px;
  border-top: 1px solid var(--line);
}

.service--kiri {
  --service-accent: var(--kiri-blue);
  --service-accent-strong: var(--kiri-blue-strong);
  --service-canvas: var(--kiri-soft);
}

.service--kiri .service-copy {
  grid-column: 2;
  grid-row: 1;
}

.service--kiri .service-media {
  grid-column: 1;
  grid-row: 1;
}

.service-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-index {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
  color: var(--service-accent);
}

.service-index span {
  font-size: 56px;
  font-weight: 350;
  letter-spacing: -0.06em;
}

.service-index i {
  width: 100%;
  height: 1px;
  background: var(--service-accent);
}

.service-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-brand img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

.service-brand p {
  margin: 0;
  font-size: 48px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.service-brand--word p {
  color: var(--kiri-blue);
  font-size: 54px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.service-copy h3 {
  margin: 50px 0 0;
  font-size: clamp(32px, 2.6vw, 42px);
  line-height: 1.42;
  letter-spacing: -0.045em;
}

.service-copy h3 span {
  display: block;
  white-space: nowrap;
}

.service-description {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.95;
}

.service-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.service .button-primary {
  border-color: var(--service-accent);
  background: var(--service-accent);
}

.service .button-primary:hover {
  border-color: var(--service-accent-strong);
  background: var(--service-accent-strong);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.text-link svg {
  width: 17px;
  height: 17px;
}

.service-media {
  min-height: 710px;
  position: relative;
  border-radius: 50% 50% 42% 42% / 36% 36% 60% 60%;
  background: var(--service-canvas);
  overflow: hidden;
}

.service-media--browser {
  min-height: 560px;
  padding: 46px 34px;
  display: flex;
  align-items: center;
  border-radius: 24px;
}

.browser-frame {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cad4e5;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 54px rgba(7, 27, 61, 0.14);
}

.browser-chrome {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #e1e6ef;
  background: #fbfcff;
}

.browser-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3ccdc;
}

.browser-frame img {
  width: 100%;
  height: auto;
}

.phone-pair {
  height: 100%;
  position: absolute;
  inset: 0;
}

.phone-pair .phone {
  width: min(340px, 47%);
  height: 650px;
  position: absolute;
  bottom: -26px;
  border-width: 7px;
  border-radius: 40px;
}

.phone-left {
  left: 7%;
  transform: rotate(-3deg);
}

.phone-right {
  right: 6%;
  transform: translateY(32px) rotate(3deg);
}

.capabilities {
  grid-column: 1 / -1;
  margin: 88px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capabilities li {
  min-height: 150px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 20px;
}

.capabilities li + li {
  border-left: 1px solid var(--line);
}

.capabilities span {
  grid-row: 1 / 3;
  align-self: start;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.capabilities strong {
  font-size: 22px;
}

.capabilities small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.next-service {
  margin-top: 86px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--ink);
}

.next-service > span {
  color: var(--muted);
  font-size: 40px;
  font-weight: 350;
}

.next-service p {
  margin: 0;
}

.next-service strong,
.next-service small {
  display: block;
}

.next-service strong {
  font-size: 26px;
}

.next-service small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.about {
  border-top: 1px solid var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 40px;
}

.about-copy > p {
  max-width: 640px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.about-action {
  margin-top: 94px;
  padding-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.about-action p {
  margin: 0;
  color: var(--teal);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.outline-link {
  min-width: 230px;
  min-height: 62px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 740;
  transition: background-color 160ms ease, color 160ms ease;
}

.outline-link:hover {
  background: var(--teal);
  color: var(--white);
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}

.footer-inner {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.footer-inner > p {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  :root {
    --page: min(100% - 44px, 900px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.82fr;
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 6.4vw, 66px);
  }

  .hero-media {
    min-height: 630px;
  }

  .hero-fava-canvas {
    width: 360px;
    height: 360px;
    right: -72px;
  }

  .hero-kiri-canvas {
    width: 430px;
    left: -76px;
  }

  .service {
    grid-template-columns: 1fr;
  }

  .service--kiri .service-copy,
  .service--kiri .service-media {
    grid-column: auto;
    grid-row: auto;
  }

  .service-copy {
    max-width: 700px;
  }

  .service-media {
    min-height: 720px;
  }

  .service-media--browser {
    min-height: 500px;
  }

  .phone-pair .phone {
    width: 40%;
  }

  .phone-left {
    left: 12%;
  }

  .phone-right {
    right: 12%;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 32px);
  }

  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    min-height: 70px;
  }

  .wordmark {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav > a:not(.button) {
    display: none;
  }

  .button-small {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 72px 0 18px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 8.8vw, 48px);
    line-height: 1.13;
  }

  .hero-copy > p {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-media {
    min-height: 520px;
  }

  .product-count {
    top: 20px;
    left: 0;
  }

  .hero-fava-canvas {
    width: 290px;
    height: 290px;
    top: 54px;
    right: -92px;
  }

  .hero-kiri-canvas {
    width: 340px;
    height: 220px;
    left: -38px;
    bottom: 44px;
  }

  .phone-hero {
    width: 190px;
    height: 400px;
    right: 0;
    bottom: -36px;
    border-width: 5px;
    border-radius: 28px;
  }

  .hero-browser {
    width: 310px;
    left: -16px;
    bottom: 48px;
    border-radius: 8px;
  }

  .hero-product-label strong {
    font-size: 30px;
  }

  .hero-product-label--fava {
    top: 70px;
    left: 0;
  }

  .hero-product-label--kiri {
    right: auto;
    bottom: 4px;
    left: 0;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 92px 0;
  }

  .section-heading,
  .about-grid,
  .next-service {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading {
    margin-bottom: 64px;
  }

  .section-heading h2,
  .about h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .service {
    gap: 58px;
  }

  .service + .service {
    margin-top: 78px;
    padding-top: 78px;
  }

  .service-index {
    margin-bottom: 34px;
  }

  .service-index span {
    font-size: 46px;
  }

  .service-brand img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .service-brand p {
    font-size: 42px;
  }

  .service-brand--word p {
    font-size: 42px;
  }

  .service-copy h3 {
    margin-top: 36px;
    font-size: 32px;
  }

  .service-copy h3 span {
    white-space: normal;
  }

  .service-description {
    font-size: 15px;
  }

  .service-actions {
    align-items: flex-start;
  }

  .service-actions .button {
    width: 100%;
  }

  .service-media {
    min-height: 480px;
    border-radius: 42% 42% 34% 34% / 30% 30% 56% 56%;
  }

  .service-media--browser {
    min-height: 300px;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .browser-frame {
    border-radius: 9px;
  }

  .browser-chrome {
    height: 24px;
    padding: 0 9px;
    gap: 5px;
  }

  .browser-chrome span {
    width: 5px;
    height: 5px;
  }

  .phone-pair .phone {
    width: 58%;
    height: 450px;
    bottom: -18px;
    border-width: 5px;
    border-radius: 29px;
  }

  .phone-left {
    left: -1%;
    z-index: 1;
  }

  .phone-right {
    right: -4%;
    z-index: 2;
  }

  .capabilities {
    margin-top: 58px;
    grid-template-columns: 1fr;
  }

  .capabilities li {
    min-height: 116px;
    padding: 22px 16px;
  }

  .capabilities li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .next-service {
    margin-top: 60px;
  }

  .about-copy > p {
    font-size: 16px;
  }

  .about-action {
    margin-top: 64px;
    padding-top: 32px;
    align-items: flex-start;
    flex-direction: column;
  }

  .about-action p {
    font-size: 29px;
  }

  .outline-link {
    width: 100%;
  }

  .footer-inner {
    padding: 34px 0;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer-inner > p {
    justify-self: start;
  }
}

@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;
  }
}
