@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Sora:wght@600;700&display=swap');

:root {
  --ink: #17191c;
  --ink-soft: #3a3f46;
  --muted: #6d747e;
  --bg: #f2f1ee;
  --bg-soft: #e6e4df;
  --white: #fafaf8;
  --line: rgba(23, 25, 28, 0.12);
  --accent: #c45f1a;
  --accent-deep: #9a4812;
  --hero-shade: linear-gradient(115deg, rgba(12,14,16,.84) 0%, rgba(12,14,16,.42) 52%, rgba(12,14,16,.18) 100%);
  --font: 'Anuphan', sans-serif;
  --brand: 'Sora', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --nav-h: 70px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@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;
  }
}
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 1.25rem; background: var(--ink); color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #e0a878; font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.75rem; border: 1px solid rgba(255,255,255,.25); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--accent); border-color: var(--accent); }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
}
.site-header.is-solid {
  position: fixed; top: var(--demo-h);
  background: rgba(242, 241, 238, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); animation: drop .3s var(--ease);
}
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
.site-header.is-solid .brand, .site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .nav-cta { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; height: var(--nav-h);
}
.brand {
  font-family: var(--brand); font-weight: 700; font-size: 1.25rem; color: #fff;
  display: flex; align-items: baseline; gap: .4rem;
}
.brand small {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .7; font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .92rem; }
.nav-cta {
  padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.45); font-weight: 600 !important;
}
.menu-toggle {
  display: none; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; padding: .4rem .75rem; font-weight: 600; cursor: pointer;
}
.site-header.is-solid .menu-toggle { color: var(--ink); border-color: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.35rem; font-weight: 600; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Hero + image motion */
.hero {
  position: relative; min-height: min(100svh, 860px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1) translate3d(0, -1.5%, 0); }
}
.hero__media::after {
  content: ''; position: absolute; inset: 0; background: var(--hero-shade); pointer-events: none;
}
.hero__content {
  position: relative; z-index: 1; padding: calc(var(--nav-h) + 2.5rem) 0 4rem; max-width: 38rem;
}
.hero__brand {
  font-family: var(--brand); font-size: clamp(2.8rem, 8vw, 4.5rem); font-weight: 700;
  letter-spacing: -.04em; line-height: .95; margin-bottom: 1rem;
  animation: rise .85s var(--ease) both;
}
.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 600; line-height: 1.4; margin-bottom: .85rem;
  animation: rise .85s var(--ease) .1s both;
}
.hero h1 em {
  display: block; margin-top: .35rem; font-style: normal; color: #f0b48a; font-weight: 500; font-size: .92em;
}
.hero__lead {
  color: rgba(255,255,255,.8); margin-bottom: 1.5rem; animation: rise .85s var(--ease) .18s both;
}
.hero .btn-row { animation: rise .85s var(--ease) .26s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4.75rem 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: .6rem;
}
.section__head { margin-bottom: 2.1rem; max-width: 36rem; }
.section__head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.3; margin-bottom: .5rem;
}
.section__head p { color: var(--muted); }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service {
  background: var(--white); border: 1px solid var(--line); padding: 1.4rem 1.25rem;
  transition: transform .25s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.service__num {
  font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .08em;
  display: block; margin-bottom: .65rem;
}
.service h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: .85rem; }
.price { font-weight: 700; color: var(--accent-deep); font-size: .92rem; }

.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.steps li {
  background: var(--white); border: 1px solid var(--line); padding: 1.25rem 1.1rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.steps li:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.steps span {
  font-family: var(--mono); font-size: .72rem; color: var(--accent); display: block; margin-bottom: .55rem;
}
.steps strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .9rem; }

/* Gallery — after process, before about */
.gallery {
  padding: 4.75rem 0 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.gallery .section__head { margin-bottom: 1.75rem; }
.gallery .section__head h2 { color: #fff; }
.gallery .section__head p { color: rgba(255,255,255,.65); }
.gallery .eyebrow { color: #f0b48a; }
.gallery__marquee { overflow: hidden; margin-bottom: 1.25rem; }
.gallery__track {
  display: flex; gap: 1rem; width: max-content;
  animation: gallery-drift 38s linear infinite;
  padding-inline: 1.25rem;
  will-change: transform;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
.gallery__item {
  margin: 0; width: min(48vw, 340px); flex-shrink: 0;
  position: relative; overflow: hidden;
}
.gallery__item img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  filter: saturate(.9) contrast(1.05);
  transition: transform .9s var(--ease), filter .4s;
  transform: scale(1.04);
}
.gallery__item:hover img {
  transform: scale(1.1);
  filter: saturate(1.05) contrast(1.08);
}
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  font-size: .85rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(8,10,12,.85));
  transform: translateY(6px); opacity: .9;
  transition: transform .35s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }
@keyframes gallery-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery__ticker {
  border-top: 1px solid rgba(255,255,255,.1);
  overflow: hidden; padding: .85rem 0;
  background: rgba(0,0,0,.25);
}
.gallery__ticker-track {
  display: flex; width: max-content;
  animation: ticker 22s linear infinite;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); white-space: nowrap;
}
.gallery__ticker-track span { padding-right: 2rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.about__visual {
  margin: 0; overflow: hidden; aspect-ratio: 5 / 4;
  background: #1a1d22;
  min-height: 280px;
}
.about__visual img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
  will-change: transform;
  opacity: 1;
}
.about__copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.3; margin-bottom: .85rem;
}
.about__copy > p { color: var(--muted); margin-bottom: 1.5rem; }
.stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.stats dt {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .2rem;
}
.stats dd { font-family: var(--brand); font-size: 1.55rem; font-weight: 700; }

.contact { background: var(--ink); color: #fff; padding: 4.5rem 0; }
.contact .eyebrow { color: #e0a878; }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.contact h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; margin: .4rem 0 .75rem;
}
.contact__info > p { color: rgba(255,255,255,.72); margin-bottom: 1.35rem; }
.info-list { list-style: none; display: grid; gap: .9rem; }
.info-list span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .2rem;
}
.contact__form {
  background: var(--white); color: var(--ink); padding: 1.5rem; display: grid; gap: .85rem;
}
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .7rem .8rem; border: 1px solid var(--line); background: var(--bg);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}

.site-footer { background: #101214; color: rgba(255,255,255,.7); padding: 2.75rem 0 1.25rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.site-footer .brand { color: #fff; }
.footer__grid h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: #e0a878; margin-bottom: .65rem; font-weight: 500;
}
.footer__grid a { display: block; margin-bottom: .35rem; font-size: .92rem; }
.footer__grid a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: .68rem; color: rgba(255,255,255,.4);
}

/* Reveals + stagger */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-stagger]:nth-child(1) { transition-delay: 0s; }
.reveal[data-stagger]:nth-child(2) { transition-delay: .08s; }
.reveal[data-stagger]:nth-child(3) { transition-delay: .16s; }
.reveal[data-stagger]:nth-child(4) { transition-delay: .24s; }
.img-reveal {
  opacity: 0; clip-path: inset(0 0 100% 0);
  transition: opacity .2s, clip-path 1s var(--ease);
}
.img-reveal.is-in { opacity: 1; clip-path: inset(0 0 0 0); }
.img-reveal.is-in img { animation: img-settle 1.1s var(--ease) both; }
@keyframes img-settle {
  from { transform: scale(1.12); }
  to { transform: scale(1.08); }
}
.stats dd span {
  display: inline-block;
  transition: transform .4s var(--ease);
}

@media (max-width: 900px) {
  .services, .steps, .about, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery__item { width: 72vw; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--ink); padding: .5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; }
  .site-header.is-solid .nav { background: var(--bg); }
  .site-header.is-solid .nav a { color: var(--ink); border-color: var(--line); }
  .field-row, .steps { grid-template-columns: 1fr; }
  .demo-bar { flex-direction: column; align-items: flex-start; }
  .gallery__track { animation-duration: 26s; }
  .gallery__ticker-track { animation-duration: 16s; }
}
