:root {
  --bg: #0d0d0f;
  --bg-soft: #151518;
  --surface: #1b1b1f;
  --surface-light: #f1eee6;
  --ink: #f5f3ed;
  --ink-dark: #171719;
  --muted: #aaa8a1;
  --muted-dark: #686761;
  --gold: #d7ad58;
  --gold-light: #f1d18f;
  --silver: #c8c8c5;
  --line: rgba(255, 255, 255, 0.11);
  --shell: min(1180px, calc(100% - 48px));
  --radius: 24px;
  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--gold);
  color: var(--ink-dark);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink-dark);
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
  height: 76px;
  border-color: var(--line);
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 2;
  width: 142px;
}

.brand img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav > a {
  position: relative;
  color: #d5d3cc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.site-header nav > a:not(.nav-management)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold);
  content: "";
  transition: transform 160ms ease;
}

.site-header nav > a:hover,
.site-header nav > a:focus-visible {
  color: #fff;
}

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

.nav-management {
  padding: 10px 15px;
  border: 1px solid rgba(215, 173, 88, 0.55);
  border-radius: 999px;
  color: var(--gold-light) !important;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 64px;
  padding: 148px max(24px, calc((100vw - 1180px) / 2)) 96px;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.2;
}

.hero-glow-one {
  top: 8%;
  right: 1%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, var(--gold), transparent 68%);
}

.hero-glow-two {
  bottom: -15%;
  left: -18%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #666970, transparent 66%);
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 7.3vw, 104px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--gold-light);
}

.hero-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: #bab8b0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #18130b;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-light);
}

.button-quiet {
  border-color: var(--line);
  color: #dedcd4;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 42px;
  color: #8f8d87;
  font-size: 12px;
}

.hero-notes span::before {
  margin-right: 8px;
  color: var(--gold);
  content: "◆";
  font-size: 7px;
  vertical-align: 2px;
}

.hero-object {
  position: relative;
  width: min(480px, 40vw);
  aspect-ratio: 1;
  justify-self: center;
  perspective: 1000px;
}

.object-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(42deg);
  transform-style: preserve-3d;
  animation: float-object 8s ease-in-out infinite;
}

.object-face,
.object-core {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 23%;
  inset: 0;
}

.face-one {
  transform: translateZ(56px);
  background: linear-gradient(145deg, #f0d28e 0%, #9b7333 45%, #332613 100%);
  box-shadow: inset 10px 10px 30px rgba(255, 255, 255, 0.25), 0 45px 80px rgba(0, 0, 0, 0.55);
}

.face-two {
  transform: translateZ(28px);
  background: #7f602d;
}

.object-core {
  inset: 27%;
  transform: translateZ(58px);
  border-radius: 18%;
  background: #121214;
  box-shadow: inset 0 0 20px #000;
}

.object-orbit {
  position: absolute;
  border: 1px solid rgba(215, 173, 88, 0.35);
  border-radius: 50%;
  inset: 8%;
  transform: rotateX(67deg) rotateZ(-12deg);
}

.orbit-one::before,
.orbit-two::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px var(--gold);
  content: "";
}

.orbit-two {
  inset: 19%;
  transform: rotateY(60deg) rotateZ(18deg);
  border-color: rgba(200, 200, 197, 0.25);
}

.object-label {
  position: absolute;
  display: grid;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 20, 23, 0.72);
  backdrop-filter: blur(10px);
}

.object-label small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.object-label strong {
  color: #eeeae0;
  font-size: 12px;
}

.label-material {
  top: 17%;
  right: -3%;
}

.label-detail {
  bottom: 14%;
  left: 1%;
}

@keyframes float-object {
  0%, 100% { transform: translate(-50%, -50%) rotateX(58deg) rotateZ(42deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(48deg) translateY(-16px); }
}

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

.intro {
  display: grid;
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 70px;
}

.intro h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.intro > div p {
  max-width: 790px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.services,
.process {
  padding: 110px 0 130px;
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: 58px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: 70px;
}

.section-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  min-height: 340px;
  padding: 30px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.service-card:hover {
  z-index: 1;
  transform: translateY(-6px);
  background: var(--surface);
}

.service-number {
  color: #696862;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.service-card h3 {
  margin: 43px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin-top: 38px;
  transform: rotate(30deg);
  border: 1px solid rgba(215, 173, 88, 0.55);
}

.cube-icon::after,
.model-icon::after,
.prototype-icon::after,
.layers-icon::after {
  position: absolute;
  border: 1px solid rgba(215, 173, 88, 0.28);
  content: "";
}

.cube-icon::after { inset: 8px; }
.model-icon { border-radius: 50% 50% 12% 50%; }
.model-icon::after { inset: 10px; border-radius: 50%; }
.prototype-icon { transform: rotate(45deg); border-radius: 8px; }
.prototype-icon::after { inset: -9px 9px 9px -9px; }
.layers-icon { height: 38px; margin-top: 46px; transform: skewY(-18deg); }
.layers-icon::after { inset: 8px -8px -8px 8px; }

.projects {
  padding: 120px 0 140px;
  background: var(--surface-light);
  color: var(--ink-dark);
}

.projects .section-index {
  color: #9a6d20;
}

.projects .section-heading > p {
  color: var(--muted-dark);
}

.project-list {
  display: grid;
  gap: 22px;
}

.project-card {
  display: grid;
  min-height: 410px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd8cd;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.project-card:nth-child(even) .project-visual {
  order: 2;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  overflow: hidden;
  background-color: #202024;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
}

.project-visual > span {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.project-copy p {
  margin: 0 0 16px;
  color: #966a24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.project-copy span {
  color: var(--muted-dark);
  font-size: 13px;
}

.key-body {
  width: 210px;
  height: 180px;
  transform: rotate(-8deg);
  border: 1px solid #f0ce85;
  border-radius: 48% 48% 20% 20%;
  background: radial-gradient(circle at 34% 24%, #e4be6c, #8b652e 60%, #362719);
  box-shadow: 30px 50px 80px rgba(0, 0, 0, 0.5), inset 12px 16px 22px rgba(255, 255, 255, 0.16);
}

.key-body::after {
  position: absolute;
  right: 68px;
  bottom: -2px;
  width: 72px;
  height: 60px;
  border-radius: 35px 35px 0 0;
  background: #202024;
  content: "";
}

.key-blade {
  position: absolute;
  top: calc(50% + 66px);
  width: 38px;
  height: 130px;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, #797a79, #e1e0d9 48%, #777874);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 70% 75%, 70% 88%, 100% 88%, 100% 100%, 0 100%);
}

.hinge-plate {
  position: relative;
  width: 300px;
  height: 58px;
  transform: rotate(-12deg);
  border-radius: 12px;
  background: linear-gradient(180deg, #d7ad58, #735124);
  box-shadow: 30px 50px 80px rgba(0, 0, 0, 0.5);
}

.hinge-plate::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 17% 50%, #252527 0 7px, #b98a3a 8px 13px, transparent 14px), radial-gradient(circle at 50% 50%, #252527 0 7px, #b98a3a 8px 13px, transparent 14px), radial-gradient(circle at 83% 50%, #252527 0 7px, #b98a3a 8px 13px, transparent 14px);
  content: "";
}

.hinge-axis {
  position: absolute;
  top: calc(50% - 66px);
  width: 58px;
  height: 132px;
  transform: rotate(-12deg);
  border-radius: 29px;
  background: linear-gradient(90deg, #5b401d, #dfba6b 45%, #6c4c23);
}

.vase-shape {
  width: 190px;
  height: 240px;
  border: 1px solid rgba(240, 206, 133, 0.7);
  border-radius: 34% 34% 22% 22% / 18% 18% 38% 38%;
  background: repeating-linear-gradient(8deg, #b2833d 0 3px, #d6ac5b 4px 7px);
  box-shadow: 30px 50px 80px rgba(0, 0, 0, 0.5), inset 14px 0 22px rgba(255, 255, 255, 0.18);
}

.vase-shape::before {
  position: absolute;
  top: calc(50% - 126px);
  left: 50%;
  width: 100px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #211d18;
  box-shadow: inset 0 0 0 8px #bd9148;
  content: "";
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px minmax(0, 1fr);
}

.process-list li > span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.process-list h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
}

.process-list p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.contact {
  padding: 40px 0 130px;
}

.contact-panel {
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(38px, 7vw, 86px);
  overflow: hidden;
  border: 1px solid rgba(215, 173, 88, 0.35);
  border-radius: 30px;
  background: linear-gradient(135deg, #262116, #151518 55%);
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 64px;
}

.contact-panel::after {
  position: absolute;
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(215, 173, 88, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(215, 173, 88, 0.035), 0 0 0 110px rgba(215, 173, 88, 0.025);
  content: "";
}

.contact h2 {
  max-width: 760px;
}

.contact-panel > div > p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
}

.contact-action {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.contact-action small {
  color: #85837d;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.contact-placeholder {
  cursor: not-allowed;
  opacity: 0.72;
}

footer {
  position: relative;
  display: grid;
  width: var(--shell);
  margin: 0 auto;
  padding: 72px 0 34px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(240px, 1fr) 180px 220px;
  gap: 50px;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 20px 0 0;
  color: #76746f;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
}

footer > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 9px;
}

footer strong {
  margin-bottom: 7px;
  color: #797772;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer a {
  color: #c5c2ba;
  font-size: 13px;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold-light);
}

.copyright {
  margin: 40px 0 0;
  color: #5f5e5a;
  font-size: 11px;
  grid-column: 1 / -1;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 820px); }

  .site-header { height: 78px; padding-inline: 20px; }
  .brand { width: 126px; }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(20, 20, 22, 0.8);
    place-content: center;
    gap: 4px;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: #fff;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(360px, 88vw);
    height: 100dvh;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    padding: 90px 36px 40px;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    border-left: 1px solid var(--line);
    background: #141416;
    box-shadow: -30px 0 60px #0008;
    transition: transform 220ms ease;
  }

  .site-header nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .site-header nav > a { padding: 8px 0; font-size: 18px; }
  .nav-management { margin-top: 12px; text-align: center; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 138px 24px 80px;
  }

  .hero-copy { width: var(--shell); margin: auto; }
  .hero-object { width: min(520px, 88vw); margin-top: 10px; }
  .label-material { right: 3%; }
  .label-detail { left: 4%; }

  .intro { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-visual { order: 0; }
  .project-visual { min-height: 340px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }

  .hero { padding-inline: 14px; }
  .hero h1 { font-size: clamp(51px, 15vw, 76px); }
  .hero-lead { margin-top: 27px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-notes { display: grid; }
  .hero-object { width: 100%; }
  .object-label { padding: 8px 10px; }

  .intro,
  .services,
  .process { padding: 80px 0; }
  .projects { padding: 80px 0; }
  .section-heading { margin-bottom: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .project-card { min-height: auto; border-radius: 18px; }
  .project-visual { min-height: 280px; }
  .project-copy { padding: 34px 26px 38px; }
  .key-body { width: 160px; height: 138px; }
  .key-body::after { right: 50px; width: 60px; height: 48px; }
  .key-blade { top: calc(50% + 51px); height: 94px; }
  .hinge-plate { width: 225px; }
  .vase-shape { width: 150px; height: 195px; }

  .process-list li { grid-template-columns: 54px 1fr; }
  .contact { padding-bottom: 90px; }
  .contact-panel { padding: 32px 24px; border-radius: 20px; gap: 38px; }

  footer { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@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 { transform: none; opacity: 1; }
}
