:root {
  color-scheme: dark;
  --navy: #0b161e;
  --ink: #101a21;
  --paper: #f1e8df;
  --white: #fffaf2;
  --amber: #efa738;
  --gutter: clamp(20px, 4.5vw, 72px);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  --sans: system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--navy); color: var(--white); font: 1rem/1.75 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.22; }
h1, h2, h3 { line-break: strict; text-wrap: balance; }
.heading-line { display: inline-block; max-inline-size: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 2 * var(--gutter), 1340px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: absolute; z-index: 5; inset: 12px auto auto 12px; padding: 8px 14px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 2; inset: 0 0 auto; background: linear-gradient(#090c10d9, #090c1000); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 16px; }
.brand { display: block; width: clamp(160px, 17vw, 238px); flex: none; }
.brand img { width: 100%; filter: invert(1); }
.menu-toggle { display: none; }
.site-nav ul { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; }
.site-nav li + li { border-inline-start: 1px solid #fffaf274; }
.site-nav a { position: relative; display: flex; gap: 8px; min-width: clamp(49px, 6.3vw, 92px); min-height: 44px; padding-inline: 10px; justify-content: center; align-items: center; text-decoration: none; }
.site-nav svg, .menu-toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform 180ms ease; }
.site-nav b { font: 600 .78rem var(--sans); }
.site-nav a:is(:hover, :focus-visible) { color: var(--amber); }
.site-nav a:is(:hover, :focus-visible) svg { transform: translateY(-3px); }
.site-nav a span { position: absolute; z-index: 1; top: 100%; left: 50%; translate: -50% 4px; white-space: nowrap; border-radius: 4px; padding: 5px 10px; background: #111418; color: var(--white); font-size: .78rem; opacity: 0; pointer-events: none; transition: opacity 180ms ease, translate 180ms ease; }
.site-nav li:last-child a span { left: auto; right: 0; translate: 0 4px; }
.site-nav a:is(:hover, :focus-visible) span { opacity: 1; translate: -50% 0; }
.site-nav li:last-child a:is(:hover, :focus-visible) span { translate: 0; }

.hero { position: relative; display: grid; align-items: end; isolation: isolate; min-height: clamp(505px, 63vw, 820px); background: #101218; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #080d14bf 0%, #080d1466 38%, transparent 65%), linear-gradient(0deg, #080d146b, transparent 32%); }
.hero-copy { padding-block: 130px clamp(40px, 6vw, 86px); }
.hero h1 { font-size: clamp(3rem, 6.05vw, 6.25rem); letter-spacing: -.045em; }
.hero p { margin-top: .14em; font: 600 clamp(1.7rem, 3.6vw, 3.75rem)/1.3 var(--serif); }
.button { display: inline-flex; min-height: 48px; min-width: min(100%, 205px); gap: 24px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 9px 21px; color: #16100a; background: var(--amber); text-decoration: none; font-weight: 650; font-size: .92rem; }
.button:focus-visible { outline-color: var(--white); }
.product .button:focus-visible { outline-color: var(--ink); }
.button:hover { background: #ffc366; }
.button span, .text-link span { transition: transform 180ms ease; }
.button:is(:hover, :focus-visible) span, .text-link:is(:hover, :focus-visible) span { transform: translateX(4px); }

.services { padding-block: clamp(26px, 4vw, 58px); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.service-card { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: end; overflow: hidden; padding: clamp(18px, 2.7vw, 36px); min-height: 215px; aspect-ratio: 1.76; background: #17252d; text-decoration: none; }
.service-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.service-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #050910ef, #05091040 54%, transparent 80%); }
.service-card h2, .motion-link h2 { font-size: clamp(1.38rem, 2.9vw, 2.8rem); }
.service-card p { margin-top: 4px; font-size: .9rem; }
.service-card div::after, .accent-heading::after, .accent-label::after { content: ""; display: block; width: 42px; height: 2px; margin-top: 12px; background: var(--amber); }
.service-card:is(:hover, :focus-visible) img { transform: scale(1.035); }
.service-arrow { font-size: 1.45rem; }
.motion-link { display: grid; grid-template-columns: minmax(max-content, .9fr) 1.1fr; align-items: center; gap: clamp(20px, 3vw, 45px); margin-top: clamp(23px, 4vw, 50px); text-decoration: none; }
.motion-link p { border-inline-start: 1px solid var(--amber); padding-inline-start: clamp(20px, 3vw, 45px); font-size: clamp(.86rem, 1.3vw, 1rem); }
.motion-link span { margin-inline-start: .5rem; }
.motion-link:is(:hover, :focus-visible) h2, .text-link:hover { color: var(--amber); }

.product { background: var(--paper); color: var(--ink); }
.product-inner { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(38px, 6vw, 90px); }
.accent-label { font-size: .88rem; font-weight: 650; }
.product h2 { margin-block: .24em; font: 500 clamp(2.6rem, 5.6vw, 6rem)/.99 Georgia, serif; letter-spacing: -.04em; }
.product-macbook {
  display: grid;
  min-width: 0;
}
.product-macbook-display {
  position: relative;
  width: 86%;
  margin-inline: auto;
  padding: 2.8% 1.7% 1.9%;
  border: 1px solid #303136;
  border-bottom: 0;
  border-radius: clamp(9px, 1.5vw, 20px) clamp(9px, 1.5vw, 20px) 2px 2px;
  background: #111216;
  box-shadow: inset 0 1px 2px #ffffff38;
}
.product-macbook-display::before {
  content: "";
  position: absolute;
  top: 2.1%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(3px, .35vw, 5px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #343940;
}
.product-screenshot { width: 100%; border-radius: 2px; }
.product-macbook-base {
  position: relative;
  height: clamp(8px, 1.4vw, 19px);
  border-radius: 1px 1px 10% 10% / 1px 1px 70% 70%;
  background: linear-gradient(#e3e4e7 0%, #bec1c7 46%, #777a81 53%, #a1a4aa 84%, #777980 100%);
  box-shadow: 0 9px 12px -6px #18212965;
}
.product-macbook-base::before {
  content: "";
  position: absolute;
  inset: 0 42% 53%;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#777980, #a5a7ac);
}
.about { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(24px, 6vw, 90px); align-items: center; padding-block: clamp(36px, 5.5vw, 82px); }
.about img { width: 100%; }
.accent-heading { font-size: clamp(1.8rem, 3.3vw, 3.4rem); }
.about p, .contact p { margin-block-start: 16px; max-width: 34em; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 16px; padding-bottom: 2px; border-bottom: 1px solid; text-decoration: none; }
.contact { background: linear-gradient(90deg, #131211 13%, #131211ec 31%, #13121100 74%), url("../images/home/consultation.jpg") right center / auto 100% no-repeat, #131211; }
.contact-copy { padding-block: clamp(40px, 6.5vw, 95px); }
.site-footer { border-top: 1px solid #fffaf21a; }
.footer-inner { display: flex; align-items: center; gap: clamp(12px, 4vw, 60px); padding-block: 26px; }
.footer-inner .brand { width: clamp(150px, 15vw, 200px); }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: .8rem; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }

@media (max-width: 750px) {
  .site-header { position: relative; background: #0a131b; }
  .header-inner { flex-wrap: wrap; min-height: 66px; row-gap: 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 0 5px 8px; border: 0; background: transparent; color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
  .site-nav { width: 100%; padding-block: 6px 12px; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav li + li { border: 0; }
  .site-nav a { justify-content: flex-start; gap: 9px; padding: 5px 4px; }
  .site-nav a span, .site-nav li:last-child a span, .site-nav a:is(:hover, :focus-visible) span { position: static; translate: none; white-space: normal; padding: 0; background: none; color: inherit; opacity: 1; }
  .site-nav svg { flex: 0 0 22px; }
  .site-nav b { display: none; }
  .hero { min-height: clamp(420px, 108vw, 580px); }
  .hero-image { object-position: 71% center; }
  .hero::after { background: linear-gradient(0deg, #080d14 0%, #080d14b5 30%, transparent 76%); }
  .hero-copy { padding-block: 135px 30px; }
  .hero h1 { font-size: clamp(2.4rem, 9.5vw, 4.5rem); }
  .hero p { font-size: clamp(1.4rem, 6vw, 2.45rem); }
  .service-grid, .motion-link, .product-inner, .about { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .motion-link { gap: 9px; }
  .motion-link p { padding-inline-start: 0; border: 0; }
  .product-inner { gap: 25px; }
  .about { gap: 20px; }
  .contact { background-image: linear-gradient(90deg, #131211f7, #1312115c), url("../images/home/consultation.jpg"); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
