:root {
  --black: #020202;
  --black-soft: #080808;
  --charcoal: #121212;
  --charcoal-2: #1b1b1b;
  --silver: #e5e4dc;
  --silver-deep: #9f9f98;
  --white: #f7f5ef;
  --line: rgba(245, 243, 236, 0.15);
  --line-strong: rgba(245, 243, 236, 0.34);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.52);
  --metal-edge: rgba(255, 255, 255, 0.58);
  --brushed: rgba(255, 255, 255, 0.07);
  --section-pad: clamp(72px, 9vw, 128px);
  --radius: 8px;
  --font-display: "Astonpoliz", "Creato Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Creato Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@keyframes borderTrace {
  to {
    transform: rotate(1turn);
  }
}

@font-face {
  font-family: "Astonpoliz";
  src: url("assets/Astonpoliz/Astonpoliz.otf") format("opentype"),
    url("assets/Astonpoliz/Astonpoliz.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato Display";
  src: url("assets/Creato%20Display/CreatoDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato Display";
  src: url("assets/Creato%20Display/CreatoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato Display";
  src: url("assets/Creato%20Display/CreatoDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato Display";
  src: url("assets/Creato%20Display/CreatoDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato Display";
  src: url("assets/Creato%20Display/CreatoDisplay-Black.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.065), transparent 20rem),
    linear-gradient(180deg, #020202, #090909 34%, #030303);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 24%),
    url("assets/rlon-black-silver-texture.png"),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-position: center, center, 0 0, 0 0;
  background-size: cover, cover, 72px 72px, 72px 72px;
  filter: grayscale(1) contrast(1.18);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(rgba(255, 255, 255, 0.28) 0.45px, transparent 0.65px);
  background-position: center, 0 0;
  background-size: 160vw 100vh, 3px 3px;
  mix-blend-mode: screen;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(2, 2, 2, 0.78);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(1.1);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.wordmark span {
  background: linear-gradient(135deg, #ffffff 0%, #cfcfc8 48%, #ffffff 100%);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 400;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.15);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.wordmark small {
  color: var(--silver-deep);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: rgba(244, 242, 236, 0.72);
  font-size: 0.82rem;
}

.site-nav a {
  position: relative;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--white);
  text-shadow: 0 0 22px rgba(244, 242, 236, 0.18);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 9px 13px;
  border: 1px solid rgba(245, 243, 236, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  color: var(--white);
}

.nav-contact::after {
  display: none;
}

.nav-contact.is-active {
  border-color: rgba(245, 243, 236, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 28px rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section::before {
  position: absolute;
  top: 0;
  right: clamp(18px, 5vw, 56px);
  left: clamp(18px, 5vw, 56px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  --hero-x: 0px;
  --hero-y: 0px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 118px;
  padding-bottom: 72px;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: 34%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--black) 86%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) saturate(0.72) contrast(1.2) brightness(0.84);
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.05);
  transition: transform 360ms ease-out;
  will-change: transform;
}

.hero-media::before,
.hero-vignette {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-media::before {
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.96) 0%, rgba(2, 2, 2, 0.78) 38%, rgba(2, 2, 2, 0.36) 72%, rgba(2, 2, 2, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.18), rgba(2, 2, 2, 0.52) 64%, var(--black));
}

.hero-vignette {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 72% 50%, transparent 0, rgba(2, 2, 2, 0.68) 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: clamp(36px, 8vw, 96px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(229, 228, 220, 0.9);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  position: relative;
  background: linear-gradient(105deg, #ffffff 0%, #deddd5 42%, #8d8d88 62%, #ffffff 88%);
  background-size: 160% 100%;
  width: fit-content;
  max-width: 12ch;
  margin-bottom: 22px;
  overflow: hidden;
  font-size: clamp(3.1rem, 7.6vw, 6.6rem);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 26px 80px rgba(0, 0, 0, 0.7);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

h1 span {
  display: block;
}

h1 span:first-child {
  font-size: 1.03em;
}

h1 span:last-child {
  font-size: 0.64em;
}

h2 {
  background: linear-gradient(115deg, #ffffff, #cacac3 58%, #f7f5ef);
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.7vw, 5rem);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 1.55vw, 1.7rem);
  line-height: 1.1;
}

.tagline,
.tagline-cn {
  margin: 0;
  color: rgba(240, 239, 232, 0.95);
  font-size: clamp(1.12rem, 2.3vw, 1.95rem);
  font-weight: 600;
}

.tagline-cn {
  margin-top: 4px;
  color: rgba(244, 242, 236, 0.78);
  font-size: clamp(0.98rem, 1.6vw, 1.28rem);
}

.hero-description {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(247, 245, 239, 0.78);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.hero-description.cn,
.cn {
  color: rgba(244, 242, 236, 0.62);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  --button-x: 50%;
  --button-y: 50%;
  --magnet-x: 0px;
  --magnet-y: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 13px 18px;
  border: 1px solid rgba(245, 243, 236, 0.32);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 650;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  will-change: transform;
}

.button::before {
  position: absolute;
  inset: -40% auto -40% -70%;
  z-index: -1;
  width: 68%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  transition: left 420ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  content: "";
  background: radial-gradient(
    circle at var(--button-x) var(--button-y),
    rgba(255, 255, 255, 0.3),
    transparent 44%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) - 2px), 0);
  border-color: rgba(244, 242, 236, 0.58);
  box-shadow:
    0 18px 58px rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: saturate(1.08);
}

.button:hover::before,
.button:focus-visible::before {
  left: 118%;
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
}

.button-primary {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(148, 148, 141, 0.92) 44%, rgba(255, 255, 255, 0.95)),
    linear-gradient(180deg, #f7f7f2, #a6a6a0);
  color: #070707;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 42px rgba(216, 216, 210, 0.2);
}

.button-secondary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  color: var(--white);
}

.hero-panel,
.portfolio-board,
.contact-card {
  border: 1px solid rgba(245, 243, 236, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028) 42%, rgba(255, 255, 255, 0.07)),
    rgba(5, 5, 5, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.15);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.hero-panel > div {
  padding: 22px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.075), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.panel-index,
.service-topline,
.term-card span,
.process-step span,
.timeline span {
  color: var(--silver-deep);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 16px;
  font-size: 1rem;
}

.hero-panel p,
.service-card p,
.term-card p,
.process-step p,
.timeline p,
.portfolio-copy p,
.section-heading p,
.body-copy p {
  color: rgba(244, 242, 236, 0.68);
}

.hero-panel p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.split-layout,
.portfolio-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.about-section,
.workflow-section,
.terms-section {
  border-top: 1px solid var(--line);
}

.about-section,
.services-section,
.workflow-section,
.terms-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 34%);
}

.section-heading.compact {
  max-width: 770px;
  margin-bottom: 42px;
}

.section-heading.compact h2 {
  max-width: 14ch;
}

.section-heading.compact p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
}

.body-copy {
  max-width: 680px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.body-copy p:first-child {
  margin-top: 2px;
}

.service-grid,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.term-card,
.process-step,
.timeline li {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 243, 236, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    var(--black-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 20px 60px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-card::before,
.term-card::before,
.process-step::before,
.timeline li::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(rgba(255, 255, 255, 0.16) 0.45px, transparent 0.8px);
  background-size: 100% 100%, 4px 4px;
  opacity: 0.42;
}

.service-card::after {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent,
    transparent 58%,
    rgba(245, 243, 236, 0.18) 68%,
    rgba(255, 255, 255, 0.72) 74%,
    rgba(150, 150, 144, 0.18) 82%,
    transparent
  );
  opacity: 0;
  transition: opacity 220ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.service-card:hover,
.term-card:hover,
.process-step:hover,
.timeline li:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 242, 236, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--black-soft);
}

.service-card:hover::after,
.service-card:focus-within::after {
  opacity: 1;
  animation: borderTrace 2.8s linear infinite;
}

.service-card {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: 24px;
}

.service-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  color: rgba(244, 242, 236, 0.72);
  font-size: 0.94rem;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(180deg, #ffffff, #898984);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.32);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-link::after {
  content: "↗";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translate(2px, -2px);
}

.portfolio-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 243, 236, 0.1), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(173, 173, 166, 0.12), transparent 30%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.045), transparent 26%),
    linear-gradient(180deg, #090909 0%, #050505 100%),
    #090909;
  background-position: center;
  background-size: cover;
}

.portfolio-layout {
  align-items: center;
}

.portfolio-copy h2 {
  max-width: 14ch;
}

.portfolio-board {
  --spotlight-x: 50%;
  --spotlight-y: 48%;
  position: relative;
  min-height: 430px;
  padding: 20px;
  overflow: hidden;
}

.portfolio-board::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    repeating-linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(180deg, rgba(2, 2, 2, 0.28), rgba(2, 2, 2, 0.74));
  opacity: 0.7;
}

.portfolio-board::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle at var(--spotlight-x) var(--spotlight-y),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05) 22%,
    transparent 48%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.portfolio-board:hover::after,
.portfolio-board.is-spotlit::after {
  opacity: 1;
}

.portfolio-board > * {
  position: relative;
  z-index: 2;
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 242, 236, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
}

.portfolio-tags span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(245, 243, 236, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
  color: rgba(244, 242, 236, 0.82);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.portfolio-board:hover .portfolio-tags span,
.portfolio-board.is-spotlit .portfolio-tags span {
  border-color: rgba(245, 243, 236, 0.34);
  color: rgba(255, 255, 255, 0.95);
}

.portfolio-tags span:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.34);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.process-step,
.term-card {
  padding: 22px;
}

.timeline strong,
.process-step strong {
  display: block;
  margin-top: 26px;
  line-height: 1.18;
}

.timeline p,
.process-step p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.timeline li {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.process-step.reveal,
.term-card.reveal {
  transition:
    opacity 620ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.timeline li::after,
.process-step::after,
.term-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.timeline li > *,
.process-step > *,
.term-card > * {
  position: relative;
  z-index: 2;
}

.timeline li.is-active {
  transform: translateY(-4px);
  border-color: rgba(245, 243, 236, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--black-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 255, 255, 0.06);
}

.timeline li.is-active span {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.timeline li:hover,
.timeline li:focus-within,
.process-step.reveal:hover,
.process-step.reveal:focus-within,
.term-card.reveal:hover,
.term-card.reveal:focus-within {
  transform: translateY(-8px);
  border-color: rgba(245, 243, 236, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    var(--black-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 30px 82px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(255, 255, 255, 0.1);
}

.timeline li:hover::after,
.timeline li:focus-within::after,
.process-step.reveal:hover::after,
.process-step.reveal:focus-within::after,
.term-card.reveal:hover::after,
.term-card.reveal:focus-within::after {
  opacity: 1;
}

.process-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #060606;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.terms-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.term-card {
  min-height: 360px;
}

.term-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.term-card h3 {
  margin-top: 24px;
  font-size: 1.15rem;
  line-height: 1.16;
}

.term-toggle-icon {
  display: none;
}

.term-body {
  position: relative;
  z-index: 1;
}

.term-card p {
  font-size: 0.88rem;
}

.contact-section {
  padding-bottom: 88px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.065)),
    var(--black);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  font-style: normal;
}

.contact-card div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.038);
}

.contact-card span {
  color: var(--silver-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card a,
.contact-card strong {
  min-width: 0;
  color: var(--white);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-actions {
  grid-column: 2;
  margin-top: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #030303;
  color: rgba(244, 242, 236, 0.52);
  font-size: 0.86rem;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.floating-cta {
  position: fixed;
  right: clamp(18px, 4vw, 42px);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  isolation: isolate;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(245, 243, 236, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(2, 2, 2, 0.82);
  color: var(--white);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, 0) scale(0.96);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(18px);
}

.floating-cta::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  content: "";
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.32), transparent 32%, rgba(255, 255, 255, 0.12));
  opacity: 0;
  transition: opacity 180ms ease;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.floating-cta:hover,
.floating-cta:focus-visible {
  border-color: rgba(245, 243, 236, 0.54);
  box-shadow:
    0 20px 68px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.floating-cta:hover::before,
.floating-cta:focus-visible::before {
  opacity: 1;
}

.floating-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #9f9f98);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 67px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.is-active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 54%);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-contact {
    border: 0;
    border-radius: 0;
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero-grid,
  .split-layout,
  .portfolio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

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

  .service-card,
  .term-card {
    min-height: auto;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-actions {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 68px;
  }

  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .wordmark small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-media img {
    object-position: 60% center;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3.15rem, 15.5vw, 5rem);
  }

  h2 {
    max-width: 10.5ch;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .timeline,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-board {
    min-height: auto;
  }

  .portfolio-tags span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .term-card {
    min-height: auto;
    padding: 0;
  }

  .term-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 18px;
    cursor: pointer;
  }

  .term-toggle h3 {
    margin: 0;
    font-size: 1.06rem;
  }

  .term-toggle-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(245, 243, 236, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
  }

  .term-toggle-icon::before,
  .term-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1px;
    content: "";
    background: var(--silver);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease;
  }

  .term-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .term-card.is-open .term-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(0);
  }

  .term-body {
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 260ms ease,
      padding 260ms ease,
      opacity 200ms ease;
  }

  .term-card.is-open .term-body {
    max-height: 420px;
    padding-bottom: 18px;
    opacity: 1;
  }

  .contact-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .floating-cta {
    right: 18px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 18px;
    justify-content: center;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
