:root {
  color-scheme: dark;
  --dark: #151614;
  --accent: #e9fb7a;
  --paper: #f2f1ea;
  --ink: #21231c;
  --muted: #bdbfb0;
  --divider: #d6d7c8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--paper); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #809700; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
section, #inquiry { scroll-margin-top: 24px; }
.wrap { width: min(1224px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 12px; background: var(--accent); color: var(--dark); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #36382e; }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { width: fit-content; display: inline-flex; gap: 11px; align-items: center; font-weight: 750; font-size: 21px; letter-spacing: .08em; }
.brand-mark { width: 20px; height: 20px; display: inline-block; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 24%, 25% 24%, 25% 76%, 78% 76%, 78% 45%, 100% 45%, 100% 100%, 0 100%); }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; color: #d0d2c4; font-size: 14px; }
nav a { padding-block: 10px; }
nav a:hover, .contact-info a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { justify-self: end; color: var(--accent); font-size: 14px; font-weight: 650; padding: 12px 0 12px 8px; }
.header-cta span { margin-left: 4px; }

.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(30px, 5vw, 75px); padding-block: clamp(64px, 8vw, 116px); }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .09em; margin-bottom: 23px; }
.hero h1 { font-size: clamp(49px, 6.2vw, 94px); line-height: 1.14; font-weight: 850; letter-spacing: -.06em; }
.accent { color: var(--accent); }
.hero-description { max-width: 435px; margin-top: 26px; color: #cdcec1; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 4px; padding: 13px 19px; min-height: 49px; font-size: 14px; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--accent); color: #1a1c0e; }
.button-primary:hover { background: #f2ffac; }
.button-secondary { background: transparent; border-color: #55584b; color: var(--paper); }
.button-secondary:hover { background: #292b24; }

.edit-preview { min-width: 0; background: #1d1f1a; border: 1px solid #43463a; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 55px #08090563; }
.edit-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 15px; font-size: 12px; color: #d1d2c7; border-bottom: 1px solid #3c4034; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #646855; }
.window-dots i:first-child { background: var(--accent); }
.ratio { justify-self: end; font-variant-numeric: tabular-nums; }
.edit-screen { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 290px; padding: 21px; background: #22241e; overflow: hidden; }
.screen-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg, #424534 1px, transparent 1px), linear-gradient(#424534 1px, transparent 1px); background-size: 28px 28px; opacity: .35; mask-image: radial-gradient(#000, transparent 83%); }
.vertical-preview { position: relative; z-index: 1; width: clamp(142px, 15vw, 204px); aspect-ratio: 9 / 16; isolation: isolate; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid #8d9a56; border-radius: 5px; background: #354026; box-shadow: 0 12px 26px #0006; }
.preview-rules { position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(150deg, transparent 0 11px, #9bb85a38 12px 13px), radial-gradient(ellipse at 66% 44%, #a0ae56, #485732 52%, #29321f 73%); }
.preview-format, .preview-caption { align-self: flex-start; border-radius: 2px; background: #1e2715; padding: 4px 7px; font-size: 10px; color: #edf7cd; }
.preview-title { margin-top: auto; margin-bottom: 12px; color: #f7f6e9; font-size: clamp(20px, 2.35vw, 30px); font-weight: 850; line-height: 1.24; letter-spacing: -.04em; text-shadow: 0 1px 12px #1d2613; }
.preview-title span { color: var(--accent); }
.left-track, .right-track { position: absolute; width: 17%; display: grid; gap: 8px; }
.left-track { left: 12%; top: 31%; }
.right-track { right: 12%; bottom: 25%; }
.left-track i, .right-track i { display: block; height: 4px; background: #575c47; border-radius: 1px; }
.left-track i:nth-child(2), .right-track i:nth-child(4) { width: 66%; }
.left-track i:nth-child(4), .right-track i:nth-child(2) { width: 40%; background: #7d8a55; }
.timeline { position: relative; padding: 8px 14px 15px; border-top: 1px solid #404337; }
.time-ruler { display: flex; justify-content: space-between; color: #b1b59f; font: 10px/1.5 ui-monospace, monospace; }
.timeline-row { display: flex; gap: 4px; margin-top: 5px; }
.timeline-row i { flex: 1; display: block; height: 16px; border-radius: 2px; }
.video-clips i { background: repeating-linear-gradient(90deg, #5b6539 0 11px, #687647 11px 21px); }
.video-clips i:nth-child(2) { flex: 1.8; }
.video-clips i:nth-child(4) { flex: 1.5; }
.caption-clips i { background: #4f684e; height: 8px; }
.caption-clips i:nth-child(2n) { background: #66744a; flex: .65; }
.playhead { position: absolute; top: 4px; bottom: 9px; left: 49%; width: 1px; background: var(--accent); }
.playhead::before { content: ""; position: absolute; top: 0; left: -3px; width: 7px; height: 7px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }

.section-light { background: var(--paper); color: var(--ink); color-scheme: light; }
.services { padding-block: clamp(58px, 7vw, 92px); }
.section-heading h2, .contact-info h2 { font-size: clamp(31px, 4.3vw, 58px); line-height: 1.23; font-weight: 830; letter-spacing: -.055em; }
.section-heading > p { margin-top: 13px; color: #55584a; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 31px; }
.service { border: 1px solid var(--divider); border-radius: 6px; padding: clamp(20px, 2.8vw, 34px); background: #f9f8f3; }
.service h3 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.service p { color: #55584a; line-height: 1.75; }
.service-icon { position: relative; display: block; width: 34px; height: 25px; color: #38401d; }
.icon-captions, .icon-cover { border: 2px solid; border-radius: 3px; }
.icon-captions::after { content: ""; position: absolute; bottom: 6px; left: 6px; right: 6px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor; }
.icon-clips::before, .icon-clips::after { content: ""; position: absolute; border: 2px solid; border-radius: 3px; width: 23px; height: 16px; }
.icon-clips::after { right: 0; bottom: 0; background: #f9f8f3; }
.icon-cover::after { content: ""; position: absolute; inset: 4px; background: currentColor; clip-path: polygon(0 100%, 38% 30%, 57% 65%, 78% 36%, 100% 100%); }

.process { border-top: 1px solid var(--divider); padding-block: clamp(54px, 6.5vw, 88px); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--divider); }
.steps li:first-child { border-top: 1px solid var(--divider); }
.steps li::before { content: counter(step, decimal-leading-zero); color: #58621d; font: 650 13px/2 ui-monospace, monospace; grid-row: span 2; }
.steps h3 { font-size: 18px; }
.steps p { color: #55584a; margin-top: 3px; }

.contact { padding-block: clamp(62px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(30px, 7vw, 90px); align-items: start; }
.contact-info > p { margin-top: 14px; color: var(--muted); }
address { font-style: normal; margin-top: 32px; }
.company { display: inline-block; color: var(--accent); font-weight: 750; margin-bottom: 9px; }
address div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; margin-top: 8px; overflow-wrap: anywhere; font-size: 15px; }
address div > span:first-child { color: var(--muted); }
.inquiry { padding: clamp(18px, 3.2vw, 35px); border-radius: 8px; background: #20221c; border: 1px solid #454838; }
.inquiry h3 { font-size: 24px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form label { display: block; margin-bottom: 13px; font-size: 14px; }
form input, form select, form textarea { display: block; width: 100%; min-width: 0; border: 1px solid #595d4c; border-radius: 4px; background: #151614; color: var(--paper); padding: 10px 11px; margin-top: 6px; }
form textarea { resize: vertical; min-height: 105px; }
form input::placeholder, form textarea::placeholder { color: #a9ad9a; opacity: 1; }
.form-note, .form-status { color: var(--muted); font-size: 13px; }
.form-note { margin-top: 10px; }
.form-status:not(:empty) { margin-top: 8px; color: var(--accent); }
.site-footer { border-top: 1px solid #383a31; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 20px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(42px, 6.75vw, 64px); }
  .left-track { left: 7%; }
  .right-track { right: 7%; }
}

@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: auto; padding-top: 12px; gap: 3px 12px; }
  nav { grid-row: 2; grid-column: span 2; justify-content: flex-start; gap: 20px; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .hero, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { gap: 35px; padding-block: 49px; }
  .hero h1 { font-size: clamp(42px, 10.5vw, 67px); }
  .hero-description { margin-top: 18px; }
  .actions { margin-top: 23px; }
  .edit-screen { min-height: 266px; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service { padding: 20px; }
  .service h3 { margin-top: 10px; }
}

@media (max-width: 400px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

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