:root {
  --ink: #14120f;
  --ink-soft: #1c1712;
  --gold: #b8863a;        /* accent on light/white backgrounds */
  --gold-solid: #c9974a;  /* solid fills — buttons, badges (pair with dark text) */
  --gold-bright: #e3b568; /* accent on dark backgrounds (hero, portfolio, featured card) */
  --gold-deep: #a9782c;
  --gold-mid: #c9974a;
  --gold-light: #e0b568;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: #fff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

section[id] { scroll-margin-top: 60px; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
  will-change: transform;
}
.tilt-card:hover { box-shadow: 0 40px 80px -30px rgba(0,0,0,.3); }
.tilt-card > * { transform: translateZ(40px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-logo { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: #1d1d1f; text-decoration: none; opacity: .85;
  padding: 10px 2px; margin: -10px -2px;
  transition: opacity .2s ease, color .2s ease;
}
.nav-links a:not(.nav-cta):hover { opacity: 1; color: var(--gold); }
.nav-cta {
  font-size: 13px; font-weight: 600; color: var(--ink) !important; background: var(--gold-solid);
  padding: 9px 18px; border-radius: 980px; text-decoration: none; opacity: 1 !important;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--gold-bright); box-shadow: 0 8px 18px -8px rgba(201,151,74,.6); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  padding: 0; margin: 0;
  border: none; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: #1d1d1f; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 99;
  flex-direction: column;
  background: rgba(20,18,15,.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(230,190,120,.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-menu.is-open { max-height: 320px; }
.mobile-menu a {
  font-size: 16px; font-weight: 500; color: #f5f0e6; text-decoration: none;
  padding: 16px 24px; border-top: 1px solid rgba(230,190,120,.12);
}
.mobile-menu a:first-child { border-top: none; }
.mobile-menu a:active { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #221c13 0%, #16130e 55%, #0e0c09 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(90% 60% at 50% 32%, rgba(227,181,104,.10) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }

/* ---------- Floating tool medallions ---------- */
.tool-icons { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tool-icon {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
}
.tool-icon-shadow {
  position: absolute;
  left: 50%; bottom: -22%;
  width: 76%; height: 20%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 72%);
  filter: blur(5px);
  animation: iconShadow 10s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.tool-icon-body {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,224,170,.34) 0%, rgba(120,86,32,.08) 55%, rgba(10,8,6,.22) 78%);
  border: 1px solid rgba(230,190,120,.35);
  box-shadow:
    inset 0 1px 1px rgba(255,241,214,.35),
    inset 0 -6px 10px rgba(0,0,0,.4),
    0 22px 34px -18px rgba(0,0,0,.75);
  animation: iconFloat 10s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.tool-icon-body svg {
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)) drop-shadow(0 -1px 0 rgba(255,238,208,.25));
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(2px) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 5deg)); }
}
@keyframes iconShadow {
  0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50%      { opacity: .22; transform: translateX(-50%) scale(.68); }
}
@media (prefers-reduced-motion: reduce) {
  .tool-icon-body, .tool-icon-shadow { animation: none; }
}
@media (max-width: 820px) {
  .tool-icons { display: none; }
}

.tool-icon--cam      { top: 12%; left: 6%;    width: 76px; --r: -12deg; opacity: .8; --delay: 0s; }
.tool-icon--play     { top: 18%; right: 8%;   width: 64px; --r: 10deg;  opacity: .7; --delay: 1.4s; }
.tool-icon--wheel    { bottom: 15%; left: 9%; width: 70px; --r: 6deg;   opacity: .6; --delay: 3.2s; }
.tool-icon--timeline { bottom: 10%; right: 7%; width: 84px; --r: -8deg; opacity: .7; --delay: 2.1s; }
.tool-icon--scissors { top: 43%; left: 3%;    width: 50px; --r: 18deg; opacity: .5; --delay: 4.3s; }
.tool-icon--spark    { top: 47%; right: 4%;   width: 54px; --r: -16deg; opacity: .55; --delay: 5.6s; }

.portfolio .tool-icon--cam      { top: 8%; left: 5%;    width: 58px; opacity: .5; }
.portfolio .tool-icon--timeline { bottom: 8%; right: 6%; width: 66px; opacity: .5; }
.portfolio .tool-icon--wheel    { top: 10%; right: 8%;  width: 54px; opacity: .42; bottom: auto; left: auto; }
.hero-eyebrow { font-size: 15px; font-weight: 600; color: var(--gold-bright); margin-bottom: 18px; }
.hero-title {
  font-size: clamp(38px, 6.2vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto;
  color: #f5f0e6;
  text-wrap: balance;
}
.hero-title-accent { color: var(--gold-bright); }
.hero-sub {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 400;
  color: #b8b0a2;
  line-height: 1.4;
  max-width: 32ch;
  margin: 28px auto 0;
}
.hero-actions {
  display: flex; gap: 24px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 40px;
}
.btn-primary {
  display: inline-block;
  font-size: 17px; font-weight: 600; color: var(--ink); background: var(--gold-solid);
  padding: 13px 28px; border-radius: 980px; text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--gold-bright); box-shadow: 0 14px 30px -10px rgba(227,181,104,.55); transform: translateY(-1px); }
.btn-link {
  display: inline-block; padding: 4px 2px;
  font-size: 17px; font-weight: 400; color: var(--gold-bright); text-decoration: none;
  transition: color .2s ease;
}
.btn-link:hover { color: #f3dcae; }

/* ---------- Shared section layout ---------- */
section { padding: 120px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-inner--narrow { max-width: 980px; margin: 0 auto; }
.section-inner--faq { max-width: 760px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head--tight { margin-bottom: 64px; }
.section-kicker { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(30px, 4vw, 46px); }
.section-desc { font-size: clamp(20px, 2.4vw, 28px); color: #86868b; font-weight: 400; margin-top: 12px; }
.section-desc--sm { font-size: clamp(19px, 2.2vw, 24px); color: #86868b; margin-top: 12px; }
.section-note { font-size: 16px; color: #86868b; margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- User stories ---------- */
.stories { background: #f5f5f7; }
.story-card {
  background: #fff;
  border-radius: 22px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.18);
}
.story-num {
  display: inline-flex; width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.story-num--1 { background: var(--gold-deep); }
.story-num--2 { background: var(--gold-mid); }
.story-num--3 { background: var(--gold-light); }
.story-quote { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 14px; }
.story-copy { font-size: 15px; color: #86868b; line-height: 1.6; }

/* ---------- Services ---------- */
.services { background: #fff; }
.service-card {
  display: block; background: #f5f5f7; border-radius: 24px; padding: 48px;
  text-decoration: none;
  transition: background .25s ease;
}
.service-card:not(.service-card--cta):hover { background: #efe8d8; }
.service-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.service-card p { font-size: 17px; color: #86868b; line-height: 1.6; }
.service-card-hint {
  display: inline-block; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--gold);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.service-card:hover .service-card-hint { opacity: 1; transform: translateY(0); }
.service-card--cta {
  background: linear-gradient(135deg, var(--ink), #2c2419);
  display: flex; flex-direction: column; justify-content: center;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: #a89e8e; margin-bottom: 24px; }
.service-card--cta a {
  font-size: 16px; font-weight: 500; color: var(--gold-bright); text-decoration: none;
  display: inline-block; padding: 4px 2px;
  transition: color .2s ease;
}
.service-card--cta a:hover { color: #f3dcae; }

/* ---------- Portfolio ---------- */
.portfolio { position: relative; overflow: hidden; background: #000; color: #fff; }
.portfolio .section-inner { position: relative; z-index: 1; }
.portfolio .section-kicker { color: var(--gold-bright); }
.portfolio .section-title { color: #f5f5f7; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Featured projects ---------- */
.projects { background: #fff; }
.project-list { display: flex; flex-direction: column; gap: 20px; }
.project-card {
  background: #f5f5f7; border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
}
.project-index { font-size: clamp(40px, 6vw, 72px); font-weight: 700; color: #d2d2d7; letter-spacing: -0.03em; line-height: 1; }
.project-heading { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.project-heading h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.project-role { font-size: 13px; font-weight: 500; color: var(--gold); }
.project-desc { font-size: 18px; color: #515154; line-height: 1.6; }

/* ---------- About ---------- */
.about { background: #f5f5f7; }
.about-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center;
}
.about-photo {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.25);
}
.about-kicker { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.about-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
.about-lead { font-size: 19px; color: #1d1d1f; line-height: 1.6; margin-bottom: 20px; }
.about-copy { font-size: 17px; color: #86868b; line-height: 1.6; margin-bottom: 36px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-values dt { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.about-values dd { font-size: 14px; color: #86868b; }

/* ---------- Pricing ---------- */
.pricing { background: #fff; }
.price-grid { align-items: start; }
.price-card { background: #f5f5f7; border-radius: 24px; padding: 44px 36px; }
.price-tier { font-size: 15px; font-weight: 600; color: #86868b; margin-bottom: 16px; }
.price-amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-amount span { font-size: 22px; font-weight: 600; }
.price-period { font-size: 15px; color: #86868b; margin-top: 6px; margin-bottom: 32px; }
.price-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.price-features li { font-size: 15px; color: #1d1d1f; list-style: none; }
.price-btn {
  display: block; text-align: center; font-size: 16px; font-weight: 500;
  color: var(--gold); border: 1px solid var(--gold); padding: 12px; border-radius: 980px; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.price-btn:hover { background: rgba(184,134,58,.08); transform: translateY(-1px); }
.pricing-note { text-align: center; font-size: 14px; color: #86868b; margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq { background: #f5f5f7; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 1px solid #d2d2d7; }
.faq-item:last-child { border-bottom: 1px solid #d2d2d7; }
.faq-toggle {
  all: unset;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; box-sizing: border-box;
  padding: 24px 4px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #1d1d1f;
  cursor: pointer;
}
.faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-toggle[aria-expanded="true"] .faq-icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  font-size: 16px; color: #86868b; line-height: 1.6;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
.faq-answer.is-open { max-height: 240px; opacity: 1; padding-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 24px; background: #f5f5f7; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-size: 13px; color: #86868b; }
.footer-contact { display: flex; gap: 24px; align-items: center; }
.footer-contact a {
  font-size: 13px; text-decoration: none;
  display: inline-block; padding: 12px 4px; margin: -12px -4px;
  transition: opacity .2s ease;
}
.footer-contact a:hover { opacity: .7; }
.footer-phone { color: #86868b; }
.footer-zalo { color: var(--gold); }
.footer-copy { font-size: 13px; color: #86868b; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  section { padding-block: 76px !important; padding-inline: 20px !important; }
  .nav { padding-inline: 18px !important; }
  .footer { padding-inline: 20px !important; }
  .nav-links { gap: 10px !important; }
  .nav-links a:not(.nav-cta) { display: none !important; }
  .nav-toggle { display: flex !important; }
  .mobile-menu { display: flex !important; }
  .grid-3, .grid-2, .price-grid { grid-template-columns: 1fr !important; }
  .about-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .project-card { grid-template-columns: 1fr !important; gap: 16px !important; text-align: center; }
  .project-heading { justify-content: center !important; }
  .hero { min-height: auto !important; padding-top: 108px !important; }
}
