/* ===== VARIABLES ===== */
:root {
  --bg: #fdf6ec;
  --ink: #1a1a1a;
  --accent-cool: #4fa8d8;
  --accent-warm: #ff5a3c;
  --accent-warm-soft: #ffe3d9;
  --accent-cool-soft: #e3f2fb;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: 'Arial', sans-serif;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
}

/* ===== SHARED LAYOUT ===== */
section { padding: 80px 24px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.head { text-align: center; margin-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.warm { color: var(--accent-warm); border: 1.5px solid var(--accent-warm); }
.eyebrow.cool { color: var(--accent-cool); border: 1.5px solid var(--accent-cool); }

h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

/* ===== BUTTONS ===== */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--accent-warm);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 0 #c73f28;
  transition: transform 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: var(--accent-cool); color: #fff; border-color: var(--accent-cool); }

/* ===== BACKGROUND BLOBS ===== */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; }
.blob-cool { background: var(--accent-cool); }
.blob-warm { background: var(--accent-warm-soft); }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-25px,-30px); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}
.hero .blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; animation: float1 9s ease-in-out infinite; }
.hero .blob-2 { width: 360px; height: 360px; bottom: -140px; right: -100px; animation: float2 11s ease-in-out infinite; }

.tag { position: relative; z-index: 1; display: inline-flex; gap: 10px; margin-bottom: 28px; }
.tag span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink);
  animation: pop 0.6s ease backwards;
}
.tag span:nth-child(1) { animation-delay: 0.1s; }
.tag span:nth-child(2) { animation-delay: 0.25s; color: var(--accent-warm); border-color: var(--accent-warm); }
.tag span:nth-child(3) { animation-delay: 0.4s; color: var(--accent-cool); border-color: var(--accent-cool); }
.tag span:nth-child(4) { animation-delay: 0.55s; color: #999; border-color: #ccc; border-style: dashed; font-weight: 600; }

.hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05; font-weight: 800; color: var(--ink);
  max-width: 900px; margin-bottom: 20px;
  animation: rise 0.7s ease 0.3s backwards;
}
.hero h1 .accent { color: var(--accent-warm); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--accent-cool); opacity: 0.35; z-index: -1; border-radius: 6px;
}
.hero p.subtitle {
  position: relative; z-index: 1; font-size: 18px; color: #555; max-width: 520px;
  margin-bottom: 36px; animation: rise 0.7s ease 0.45s backwards;
}
.hero .cta-row { position: relative; z-index: 1; animation: rise 0.7s ease 0.6s backwards; }
.scroll-hint {
  position: relative; z-index: 1; margin-top: 32px; font-size: 12px; color: #999;
  letter-spacing: 0.1em; text-transform: uppercase; animation: bounce 2s ease-in-out infinite;
}

/* ===== CARDS (services) ===== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 32px 28px;
  position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; min-height: 320px;
}
.card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--ink); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 20px;
}
.card.c1 .icon-badge, .card.c3 .icon-badge { background: var(--accent-warm-soft); }
.card.c2 .icon-badge, .card.c4 .icon-badge { background: var(--accent-cool-soft); }

.card h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: #555; line-height: 1.55; margin-bottom: 20px; flex-grow: 1; }
.card .badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge-row span { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); border: 1px solid #ddd; }
.card a { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card a::after { content: '→'; transition: transform 0.15s ease; }
.card a:hover::after { transform: translateX(4px); }
.card .stripe { position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; opacity: 0.5; z-index: 0; }
.card.c1 .stripe, .card.c3 .stripe { background: var(--accent-warm); }
.card.c2 .stripe, .card.c4 .stripe { background: var(--accent-cool); }

/* ===== PROCESS ===== */
.row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.row::before {
  content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(to right, #ddd 0 8px, transparent 8px 16px); z-index: 0;
}
@media (max-width: 850px) { .row { grid-template-columns: 1fr; } .row::before { display: none; } }

.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.num {
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  font-weight: 800; background: #fff; margin-bottom: 18px;
}
.step:nth-child(1) .num, .step:nth-child(3) .num { background: var(--accent-warm-soft); }
.step:nth-child(2) .num, .step:nth-child(4) .num { background: var(--accent-cool-soft); }
.step h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: #555; line-height: 1.55; margin-bottom: 12px; }
.step-tag { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid #ddd; color: #888; }

/* ===== CASES ===== */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 2px solid var(--ink); border-radius: 28px; padding: 40px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.case:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } }

.case-visual { display: flex; align-items: center; gap: 12px; }
.vs-box {
  flex: 1; border-radius: 16px; padding: 20px; text-align: center; min-height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.before-box { background: #f2f2f2; border: 2px dashed #ccc; }
.after-box { color: #fff; }
.case.c1 .after-box, .case.c3 .after-box { background: var(--accent-warm); }
.case.c2 .after-box { background: var(--accent-cool); }

.vs-box .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.vs-box .big { font-size: 28px; font-weight: 800; }
.arrow-icon { font-size: 22px; color: var(--ink); flex-shrink: 0; }

.case-body .tag-mini { display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.case.c1 .tag-mini, .case.c3 .tag-mini { background: var(--accent-warm-soft); color: var(--accent-warm); }
.case.c2 .tag-mini { background: var(--accent-cool-soft); color: var(--accent-cool); }
.case-body h3 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.case-body p { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.result-row { display: flex; gap: 24px; }
.result-row div { font-size: 13px; color: #888; }
.result-row strong { display: block; font-size: 20px; color: var(--ink); font-weight: 800; }

/* ===== TRUST ===== */
.trust .layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 850px) { .trust .layout { grid-template-columns: 1fr; } }
.trust .left h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.trust .left p { font-size: 15.5px; color: #555; line-height: 1.65; }

.points { display: flex; flex-direction: column; gap: 4px; }
.point { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 2px dashed #ddd; }
.point:last-child { border-bottom: none; }
.point-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 20px; font-weight: 800; border: 2px solid var(--ink);
}
.point:nth-child(1) .point-icon, .point:nth-child(3) .point-icon { background: var(--accent-warm-soft); }
.point:nth-child(2) .point-icon, .point:nth-child(4) .point-icon { background: var(--accent-cool-soft); }
.point-body h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.point-body p { font-size: 14px; color: #666; line-height: 1.5; }

/* ===== HORIZONTAL SCROLL GALLERY (marquee) ===== */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-row {
  display: flex;
  gap: 16px;
  width: max-content;
}
.marquee-row.row-left { animation: marquee-left 28s linear infinite; }
.marquee-row.row-right { animation: marquee-right 28s linear infinite; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.gallery-card {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card .ph-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  padding: 12px;
}
.gallery-card .ph-label svg { opacity: 0.5; }

/* ===== CONTACT / CTA PANEL ===== */
.contact { padding: 40px 24px 100px; }
.contact .wrap { max-width: 900px; }
.cta-panel { position: relative; background: var(--ink); border-radius: 32px; padding: 64px 40px; text-align: center; overflow: hidden; }
.cta-panel .blob-1 { width: 300px; height: 300px; background: var(--accent-warm); top: -80px; left: -60px; opacity: 0.35; }
.cta-panel .blob-2 { width: 260px; height: 260px; background: var(--accent-cool); bottom: -100px; right: -60px; opacity: 0.35; }
.cta-panel .eyebrow { color: #fff; border: 1.5px solid rgba(255,255,255,0.4); position: relative; z-index: 1; }
.cta-panel h2 { position: relative; z-index: 1; font-size: clamp(28px, 4.5vw, 44px); color: #fff; line-height: 1.2; max-width: 600px; margin: 0 auto 16px; }
.cta-panel h2 .accent { color: var(--accent-warm); }
.cta-panel p.sub { position: relative; z-index: 1; color: #ccc; font-size: 15.5px; max-width: 440px; margin: 0 auto 36px; }
.cta-panel .cta-row { position: relative; z-index: 1; margin-bottom: 40px; }
.cta-panel .btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.cta-panel .btn-secondary:hover { background: transparent; border-color: #fff; }

.channels { position: relative; z-index: 1; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15); }
.channels a { color: #ddd; text-decoration: none; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: color 0.15s ease; }
.channels a:hover { color: var(--accent-warm); }

/* ===== 404 PAGE ===== */
.page-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden; position: relative;
}
.page-404 .blob-1 { width: 380px; height: 380px; top: -100px; left: -80px; animation: float1 9s ease-in-out infinite; }
.page-404 .blob-2 { width: 320px; height: 320px; bottom: -120px; right: -80px; animation: float2 11s ease-in-out infinite; }

.block404 {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.num-wrap { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; animation: rise 0.7s ease backwards; }
.num-wrap svg { width: 280px; height: auto; }

.badge404 {
  position: absolute; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--ink); white-space: nowrap;
}
.badge404.b1 { top: 10%; right: -6%; color: var(--accent-warm); border-color: var(--accent-warm); transform: rotate(8deg); }
.badge404.b2 { bottom: 6%; left: -8%; color: var(--accent-cool); border-color: var(--accent-cool); transform: rotate(-6deg); }

.title-404 {
  font-family: 'Fraunces', serif; font-weight: 800; width: 100%; max-width: 400px; color: var(--ink);
  text-align: center; line-height: 1.15; font-size: 34px; margin-bottom: 4px;
  animation: rise 0.7s ease 0.15s backwards;
}
.title-404 .accent { color: var(--accent-warm); position: relative; display: inline-block; }
.title-404 .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--accent-cool); opacity: 0.35; z-index: -1; border-radius: 6px;
}
.subtitle-404 {
  width: 100%; max-width: 360px; color: #666; text-align: center; line-height: 1.5;
  font-size: 15px; margin-bottom: 28px; animation: rise 0.7s ease 0.3s backwards;
}
.btn404 {
  background: var(--accent-warm); color: #fff; border: none; border-radius: 999px;
  padding: 14px 32px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 #c73f28; transition: transform 0.15s ease; animation: rise 0.7s ease 0.45s backwards;
}
.btn404:hover { transform: translateY(-2px); }
