/* BrandSalad - main stylesheet */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --accent: #0071e3;
  --accent-dark: #0066cc;
  --link-on-dark: #2997ff;
  --radius-lg: 28px;
  --radius-md: 22px;
  --pill: 980px;
  --max: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

a { color: var(--accent-dark); text-decoration: none; transition: opacity .25s ease, background-color .25s ease, color .25s ease; }
a:hover { opacity: .7; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 120px 22px; }
.section--alt { background: var(--bg-alt); }
.h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.h2 .soft { color: var(--muted-2); }
.lede { font-size: 21px; line-height: 1.4; color: var(--muted); }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 25px; border-radius: var(--pill);
  font: inherit; font-size: 17px; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--accent); cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--lg { font-size: 19px; padding: 13px 26px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav { max-width: var(--max); margin: 0 auto; padding: 0 22px; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 24px; letter-spacing: -0.035em; line-height: 1; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); opacity: .85; }
.nav-links a:hover { opacity: .6; }
.nav-links .nav-cta { color: #fff; background: var(--accent); padding: 9px 20px; border-radius: var(--pill); font-weight: 500; opacity: 1; }
.nav-links .nav-cta:hover { opacity: .8; }

/* Hero */
.hero { text-align: center; padding: 96px 22px 0; }
.hero h1 { margin: 0 auto; max-width: 900px; font-size: clamp(48px, 8vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero .eyebrow { margin-bottom: 12px; }
.hero-sub { margin: 24px auto 0; max-width: 640px; font-size: 24px; line-height: 1.35; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }

.device { max-width: 1040px; margin: 72px auto 0; }
.device-frame { background: var(--ink); border-radius: 28px 28px 0 0; padding: 14px 14px 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35); }
.device-screen { background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; text-align: left; }
.device-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid #e5e5ea; }
.device-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.device-bar .url { margin-left: 16px; flex: 1; max-width: 360px; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--muted-2); }
.device-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); min-height: 340px; }
.mock-copy { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mock-copy .bar-accent { width: 64px; height: 8px; border-radius: 4px; background: var(--accent); }
.mock-copy .mock-title { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.mock-copy .line { height: 10px; border-radius: 5px; background: #e8e8ed; }
.mock-copy .pills { display: flex; gap: 10px; margin-top: 8px; }
.mock-copy .pill-dark { height: 36px; width: 120px; border-radius: var(--pill); background: var(--ink); }
.mock-copy .pill-line { height: 36px; width: 100px; border-radius: var(--pill); border: 1.5px solid var(--line); }
.mock-stats { background: linear-gradient(160deg, #e9f6ec 0%, #f6f1e4 100%); display: flex; align-items: center; justify-content: center; padding: 32px; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 340px; }
.tile { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.tile small { display: block; font-size: 12px; color: var(--muted-2); }
.tile strong { display: block; font-size: 28px; font-weight: 700; margin-top: 4px; }
.tile--wide { grid-column: span 2; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 4px; background: #d2e3fc; }
.bars i.on { background: var(--accent); }

/* Stats */
.stats { background: var(--bg-alt); padding: 56px 22px; }
.stats ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.stats strong { display: block; font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.stats span { display: block; font-size: 17px; color: var(--muted); margin-top: 6px; }

/* Services */
.services { padding-bottom: 40px; }
.cards { max-width: var(--max); margin: 56px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px 36px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.card svg { width: 40px; height: 40px; }
.card h3 { margin-top: 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.card p { font-size: 17px; color: var(--muted); }

/* Work */
.work { padding: 100px 22px; }
.work-head { text-align: center; }
.work-head .lede { margin: 20px auto 0; max-width: 680px; }
.work-grid { max-width: var(--max); margin: 56px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.project { border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.project-copy { padding: 40px 36px 0; }
.project .tag { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.project h3 { margin-top: 10px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.project p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.project picture { margin-top: auto; padding-top: 24px; }
.project img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.project--signature { background: #000; color: #f5f5f7; }
.project--signature .tag, .project--signature p { color: #a1a1a6; }
.project--villa { background: #fbf7f0; }
.project--villa .tag { color: #8a6d3b; }
.project--vimc { background: var(--bg-alt); }
.project--vimc .tag { color: var(--muted); }
.project--small { background: #f0f6ff; }
.project--small .tag { color: #0058b0; }

/* Process */
.process { padding: 100px 22px; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius-md); padding: 32px 28px; }
.steps .num { font-size: 15px; font-weight: 600; color: #1f8a3b; }
.steps h3 { margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* About */
.about-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-photo { flex: 1 1 320px; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-copy { flex: 999 1 420px; min-width: 0; }
.about-copy h2 { margin-top: 12px; font-size: clamp(40px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
.about-copy p.body { margin-top: 24px; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.about-copy p.body + p.body { margin-top: 18px; }
.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14px; padding: 8px 16px; border-radius: var(--pill); background: var(--bg-alt); }

/* Contact */
.contact { background: #000; color: #f5f5f7; text-align: center; }
.contact .icon { width: 72px; height: 72px; margin: 0 auto 28px; }
.contact h2 { margin: 0 auto; max-width: 820px; font-size: clamp(44px, 7vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.contact .lede { margin: 24px auto 0; max-width: 560px; color: #a1a1a6; }
.form { margin: 48px auto 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #a1a1a6; }
.field input, .field textarea {
  font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #424245; background: var(--ink); color: #f5f5f7; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--link-on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 10px; align-self: center; padding: 14px 28px; min-height: 48px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 24px; text-align: center; font-size: 17px; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff9a8f; }
.contact .alt { margin-top: 32px; font-size: 17px; color: #a1a1a6; }
.contact .alt a { color: var(--link-on-dark); }

/* Footer */
.site-footer { background: var(--bg-alt); padding: 28px 22px; font-size: 12px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-2); }

@media (max-width: 600px) {
  .section, .work, .process { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding-top: 64px; }
  .hero-sub { font-size: 20px; }
  .nav-links { gap: 4px 18px; }
  .card, .project-copy { padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Small screens: keep the header to logo + call to action */
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links .nav-cta { padding: 8px 16px; }
  .brand { font-size: 22px; gap: 5px; }
  .brand img { width: 30px; height: 30px; }
}

/* Scroll tilt: screens start angled back and straighten as they scroll into view */
.js [data-tilt] {
  transform: perspective(1600px) rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
.js .device[data-tilt] { transform-origin: 50% 100%; }
.js .project[data-tilt-wrap] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .js [data-tilt] { transform: none !important; }
}

/* Fade-in on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Hero eases in on page load */
.js .hero .eyebrow, .js .hero h1, .js .hero-sub, .js .hero-actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero h1 { animation-delay: .08s; }
.js .hero-sub { animation-delay: .18s; }
.js .hero-actions { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero .eyebrow, .js .hero h1, .js .hero-sub, .js .hero-actions { animation: none; }
}

/* hCaptcha box */
.form .h-captcha { align-self: center; margin-top: 6px; min-height: 78px; }
