@font-face {
  font-family: "Jakarta";
  src: url("fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #111111;
  --ink-2: #444444;
  --muted: #777777;
  --line: #e8e8e6;
  --accent: #ff5a1f;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --header-h: 64px;
  --tabs-h: 54px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  background: var(--ink); color: #fff !important; border: 1px solid var(--ink);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.light { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.btn.light:hover { border-color: var(--ink); background: #fff; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.link:hover { color: var(--accent); }
.arrow { transition: transform .2s; display: inline-block; }
a:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; font-size: 15px; }
.logo-text span { font-size: 12px; color: var(--muted); }
.head-right { display: flex; align-items: center; gap: 18px; }
.head-right .ig { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.head-right .ig:hover { color: var(--ink); }
@media (max-width: 600px) { .head-right .ig { display: none; } }

/* Category tabs */
.tabs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.tabs .wrap { display: flex; gap: 8px; align-items: center; height: var(--tabs-h); overflow-x: auto; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; transition: all .2s;
}
.tabs a:hover { background: var(--bg-soft); color: var(--ink); }
.tabs a.active { background: var(--ink); color: #fff; }

/* ---------- Intro ---------- */
.intro { padding: clamp(36px, 6vw, 64px) 0 clamp(8px, 2vw, 16px); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.intro h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; max-width: 20ch; }
.intro h1 span { color: var(--accent); }
.intro p { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 58ch; margin: 14px 0 0; }
.intro .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Service sections ---------- */
.svc { padding: clamp(44px, 6vw, 72px) 0 0; }
.svc + .svc { border-top: 0; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.svc-head .kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; display: block; }
.svc-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.svc-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.svc-foot { display: none; margin-top: 18px; }
@media (max-width: 700px) {
  .svc-head .link { display: none; }
  .svc-foot { display: block; }
  .svc-foot .btn { width: 100%; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(12px, 1.8vw, 20px); }
.grid.r-9x16, .grid.r-4x5 { grid-template-columns: repeat(3, 1fr); }
.grid.r-16x9 { grid-template-columns: repeat(2, 1fr); }
.page .grid.r-9x16, .page .grid.r-4x5 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
  .grid.r-16x9 { grid-template-columns: 1fr; }
  .page .grid.r-9x16, .page .grid.r-4x5 { grid-template-columns: repeat(2, 1fr); }
  .grid.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .grid.swipe::-webkit-scrollbar { display: none; }
  .grid.swipe > * { flex: 0 0 62%; scroll-snap-align: start; }
}

.card { margin: 0; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); isolation: isolate; }
.r-9x16 .frame { aspect-ratio: 9 / 16; }
.r-16x9 .frame { aspect-ratio: 16 / 9; }
.r-4x5 .frame { aspect-ratio: 4 / 5; }
.frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }

.cover { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); transition: background .3s; }
.cover:hover::after { background: rgba(0,0,0,.18); }
.cover:hover img { transform: scale(1.03); }
.cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.fallback { position: absolute; inset: 0; display: none; background: linear-gradient(160deg, #ececea, #dcdcd8); }
.frame.no-thumb .fallback { display: block; }
.frame.no-thumb img { display: none; }

.play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: transform .25s, background .25s;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--ink); transition: fill .25s; }
.cover:hover .play { transform: scale(1.08); background: var(--accent); }
.cover:hover .play svg { fill: #fff; }

.caption { margin-top: 10px; font-size: 14px; font-weight: 600; }

/* placeholders */
.placeholder .frame { background: var(--bg-soft); border: 1.5px dashed #d6d6d2; display: grid; place-items: center; text-align: center; }
.ph-inner { color: var(--muted); font-size: 14px; padding: 16px; }
.ph-inner svg { width: 28px; height: 28px; margin: 0 auto 8px; display: block; stroke: #b5b5b0; }
.placeholder .caption { color: var(--muted); font-weight: 500; }

/* ---------- How it works ---------- */
.how { padding: clamp(64px, 9vw, 104px) 0 0; }
.how h2, .contact h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.step h3 { font-size: 18px; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tools { margin-top: 20px; color: var(--muted); font-size: 14px; }
.tools span { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 3px 12px; margin: 4px 4px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 9vw, 104px) 0; }
.contact-box { background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.contact-box p { color: #c9c9c9; margin: 10px 0 0; max-width: 46ch; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-actions .btn { background: #fff; color: var(--ink) !important; border-color: #fff; justify-content: space-between; padding: 16px 20px; }
.contact-actions .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.contact-actions .btn.alt { background: transparent; color: #fff !important; border-color: #444; }
.contact-actions .btn.alt:hover { border-color: #fff; background: transparent; }
.contact-actions small { color: #9a9a9a; font-size: 13px; }
.copy-note { color: var(--accent); font-weight: 600; opacity: 0; transition: opacity .2s; }
.copy-note.show { opacity: 1; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Service page ---------- */
.page-top { padding: clamp(28px, 4vw, 44px) 0 8px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.page-top h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; }
.page-top .lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 12px 0 0; }
.included { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.included li { font-size: 14px; background: var(--bg-soft); border-radius: 999px; padding: 6px 14px 6px 12px; display: inline-flex; gap: 6px; align-items: center; }
.included li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.page-work { padding-top: 32px; }
.others { padding: clamp(56px, 8vw, 88px) 0 0; }
.others h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.others .list { display: flex; flex-wrap: wrap; gap: 10px; }
.others .list a { text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: 15px; transition: border-color .2s; }
.others .list a:hover { border-color: var(--ink); }
.others .list small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Desktop: title on the left, videos on the right ---------- */
h1, h2, h3 { letter-spacing: -0.015em; }
@media (min-width: 1000px) {
  .svc .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
  .svc-head { flex-direction: column; align-items: flex-start; gap: 18px; margin: 0; position: sticky; top: calc(var(--header-h) + var(--tabs-h) + 28px); }
  .svc-head .link { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; }
  .svc-head .link:hover { border-color: var(--ink); color: var(--ink); }
  .svc { padding-top: 64px; }
  .svc + .svc .wrap { padding-top: 64px; background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--pad)) 1px; }
  .svc + .svc { padding-top: 0; margin-top: 64px; }
}

/* "See all" pages: 4 vertical videos per row on desktop */
@media (min-width: 900px) { .page .grid.r-9x16 { grid-template-columns: repeat(4, 1fr); } }
