/* Design system (ui-ux-pro-max): Portfolio + hero-centric, warm grey + gold, Cinzel / Josefin Sans, light liquid-glass accents */
:root {
  --color-primary: #78716C;
  --color-secondary: #A8A29E;
  --color-accent: #E9A042;        /* brand orange, from the logo dot */
  --color-accent-text: #8A4F08;   /* brand orange darkened for text on light surfaces (AA) */
  --color-cta: #E9A042;
  --color-on-cta: #1C1917;        /* dark ink on brand orange, 8:1 contrast */
  --color-background: #FAF5F2;
  --color-surface: #FFFFFF;
  --color-foreground: #1C1917;
  --color-text-muted: #57534E;
  --color-muted: #F3EEEA;
  --color-border: #E7E1DC;
  --color-destructive: #DC2626;
  --glass-bg: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .55);
  --shadow: 0 10px 40px rgba(68, 50, 36, .10);
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-input: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-accent-text: #F0B464;
    --color-background: #161412;
    --color-surface: #1F1C1A;
    --color-foreground: #F5F0EB;
    --color-text-muted: #B8B0A8;
    --color-muted: #221F1C;
    --color-border: #34302C;
    --color-destructive: #F87171;
    --glass-bg: rgba(31, 28, 26, .62);
    --glass-border: rgba(255, 255, 255, .10);
    --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-background); color: var(--color-foreground);
  font: 400 18px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
button { font: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--color-surface); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
section[id] { scroll-margin-top: 60px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--color-text-muted); margin-top: 16px; }
.rule { width: 48px; height: 2px; background: var(--color-accent); margin: 0 auto 20px; border: 0; }

/* Buttons: pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font-body); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--color-cta); color: var(--color-on-cta); }
.btn-cta:hover { background: #D98E2C; }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Nav: transparent over hero, glass after */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s; color: #fff; }
.nav.solid { background: var(--glass-bg); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--color-border); color: var(--color-foreground); }
.nav .container { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo: light artwork over the hero photo and in dark mode, dark artwork on light surfaces */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 60px; width: auto; transition: opacity .3s var(--ease); }
.logo .on-light { display: none; }
.nav.solid .logo .on-dark { display: none; }
.nav.solid .logo .on-light { display: block; }
.footer .logo img { height: 84px; }
@media (prefers-color-scheme: dark) {
  .nav.solid .logo .on-dark, .footer .logo .on-dark { display: block; }
  .nav.solid .logo .on-light, .footer .logo .on-light { display: none; }
}
@media (prefers-color-scheme: light) {
  .footer .logo .on-dark { display: none; }
  .footer .logo .on-light { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 16px; letter-spacing: .04em; opacity: .85; transition: opacity .2s; padding: 12px 0; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a[aria-current]:not(.btn) { opacity: 1; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links a[aria-current]:not(.btn)::after, .nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 12px 22px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; place-items: center; }
.menu-btn .icon { width: 24px; height: 24px; }

/* Hero: full-bleed */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 1.6s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.45) 0%, rgba(20,16,12,.15) 35%, rgba(20,16,12,.72) 100%); }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero .container { width: 100%; padding-bottom: 150px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.1; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); animation: up .8s .15s var(--ease) both; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; margin: 22px 0 34px; color: rgba(255,255,255,.9); animation: up .8s .3s var(--ease) both; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; animation: up .8s .45s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Value strip: glass card overlapping hero */
.values { position: relative; z-index: 5; margin-top: -84px; }
.values-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--glass-bg); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.value { display: flex; gap: 14px; align-items: flex-start; padding: 28px 26px; }
.value + .value { border-left: 1px solid var(--color-border); }
.value .icon { width: 26px; height: 26px; color: var(--color-accent); margin-top: 2px; }
.value strong { display: block; font: 500 1.05rem/1.3 var(--font-heading); margin-bottom: 4px; }
.value span { font-size: 15px; color: var(--color-text-muted); line-height: 1.5; }

/* Portfolio */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -24px 0 40px; }
.filter {
  min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--color-border);
  background: transparent; color: var(--color-text-muted); cursor: pointer; letter-spacing: .03em;
  transition: all .2s var(--ease);
}
.filter:hover { color: var(--color-foreground); border-color: var(--color-primary); }
.filter[aria-pressed="true"] { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 20px; grid-auto-flow: dense; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--color-muted);
  border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left;
}
.card.big { grid-column: span 2; grid-row: span 2; }
.card.wide { grid-column: span 2; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,16,12,.78)); transition: opacity .3s; }
.card:hover img { transform: scale(1.05); }
.card-info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.card-info h3 { font-size: 1.2rem; }
.card.big .card-info h3 { font-size: 1.6rem; }
.card-info span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.85); margin-top: 4px; }
.card-info span .icon { width: 15px; height: 15px; }
.card-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 13px; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3);
}
.card.hide { display: none; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.btn-outline { border-color: var(--color-foreground); color: var(--color-foreground); background: transparent; }
.btn-outline:hover { background: var(--color-foreground); color: var(--color-background); }

/* Services */
.services { background: var(--color-muted); }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc {
  grid-column: span 2; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 32px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); margin-bottom: 22px; }
.svc .ic .icon { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 10px; }
.svc p { color: var(--color-text-muted); font-size: 16px; line-height: 1.65; }

/* About / philosophy */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius-card); }
.about-badge {
  position: absolute; right: -20px; bottom: 32px; padding: 20px 24px; border-radius: var(--radius-card);
  background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.about-badge strong { display: block; font: 600 2rem/1 var(--font-heading); color: var(--color-accent-text); }
.about-badge span { font-size: 14px; color: var(--color-text-muted); }
.about-copy .rule { margin: 0 0 20px; }
.about-copy > p { color: var(--color-text-muted); margin: 20px 0 36px; }
.pillars { display: grid; gap: 26px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.pillar .ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-accent); }
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillar p { color: var(--color-text-muted); font-size: 16px; line-height: 1.6; }

/* Journey timeline */
.journey { background: var(--color-surface); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10%; right: 10%; height: 1px; background: var(--color-border); }
.timeline li { position: relative; text-align: center; padding-top: 40px; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 19px; height: 19px; transform: translateX(-50%);
  border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-accent);
}
.timeline li:last-child::before { background: var(--color-accent); }
.timeline .yr { font: 600 1.4rem/1 var(--font-heading); color: var(--color-accent-text); }
.timeline h3 { font-size: 1rem; margin: 10px 0 8px; }
.timeline p { color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }

/* Testimonials */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; margin: 0;
}
.t-card .q { width: 32px; height: 32px; color: var(--color-accent); fill: currentColor; stroke: none; margin-bottom: 18px; opacity: .85; }
.t-card blockquote { margin: 0 0 28px; font-size: 17px; line-height: 1.7; flex: 1; }
.t-who { display: flex; align-items: center; gap: 14px; }
.t-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--color-muted); }
.t-who strong { display: block; font-weight: 600; font-size: 16px; }
.t-who span { font-size: 14px; color: var(--color-text-muted); }

/* Contact: photo + glass form */
.contact { position: relative; isolation: isolate; color: #fff; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 16, 12, .72); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.contact-copy .rule { margin: 0 0 20px; }
.contact-copy p { color: rgba(255,255,255,.85); margin: 18px 0 32px; max-width: 40ch; }
.contact-list { display: grid; gap: 14px; }
.contact-list a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 17px; min-height: 44px; width: fit-content; }
.contact-list a:hover { color: var(--color-accent); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.form-card {
  background: rgba(250, 245, 242, .94); color: #1C1917; border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (prefers-color-scheme: dark) { .form-card { background: rgba(31, 28, 26, .94); color: #F5F0EB; } }
.form-card h3 { font-size: 1.4rem; margin-bottom: 24px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
label { font-size: 15px; font-weight: 600; }
label .req { color: var(--color-accent-text); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font-body); color: inherit;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-input);
  transition: border-color .2s, box-shadow .2s;
}
@media (prefers-color-scheme: light) { .form-card input, .form-card select, .form-card textarea { background: #fff; border-color: #D6CFC8; } }
input::placeholder, textarea::placeholder { color: #78716C; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(233, 160, 66, .35); }
textarea { min-height: 104px; resize: vertical; }
.err { font-size: 14px; color: var(--color-destructive); }
.field.invalid input, .field.invalid select { border-color: var(--color-destructive); }
.form-foot { grid-column: 1 / -1; display: grid; gap: 12px; }
.form-foot .btn { width: 100%; }
.form-status { font-size: 15px; text-align: center; }
.form-status.ok { color: #15803D; font-weight: 500; }
.form-status.warn { color: var(--color-accent-text); }
@media (prefers-color-scheme: dark) { .form-status.ok { color: #4ADE80; } }
.btn:disabled { opacity: .6; cursor: progress; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form { position: relative; }

/* Footer */
.footer { padding: 64px 0 32px; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border); }
.footer p { color: var(--color-text-muted); font-size: 16px; margin-top: 14px; max-width: 32ch; }
.footer .footer-title { font: 600 1rem/1 var(--font-heading); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--color-text-muted); font-size: 16px; transition: color .2s; }
.footer ul a:hover { color: var(--color-accent-text); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-text-muted); transition: all .2s; }
.socials a:hover { color: var(--color-accent-text); border-color: var(--color-accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 14px; color: var(--color-text-muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 72px 16px; background: rgba(12, 10, 9, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: calc(100dvh - 190px); max-width: 100%; object-fit: contain; border-radius: 8px; animation: lbIn .3s var(--ease); }
.lightbox figcaption { color: #E7E5E4; font-size: 15px; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive: 1024 / 768 / 375 */
@media (max-width: 1024px) {
  .values-card { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--color-border); }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
  .svc:nth-child(5) { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 8px; }
  .timeline::before { top: 0; bottom: 0; left: 17px; right: auto; width: 1px; height: auto; }
  .timeline li { text-align: left; padding: 0 0 0 48px; }
  .timeline li::before { left: 0; top: 2px; transform: none; }
  .t-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--color-background); color: var(--color-foreground); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child { margin-top: 16px; }
  .nav-links .btn { width: 100%; }
  .hero .container { padding-bottom: 120px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-badge { right: 12px; }
  .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .values-card { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--color-border); }
  .value { padding: 20px; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .card.big, .card.wide { grid-column: auto; grid-row: auto; }
  form { grid-template-columns: 1fr; }
  .hero .ctas .btn { flex: 1 1 100%; }
}

/* ---------- Inner pages ---------- */

/* Page hero: same photo-led language as the homepage, shorter */
.page-hero { position: relative; min-height: clamp(420px, 62dvh, 620px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 1.6s var(--ease) both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.25) 40%, rgba(20,16,12,.78) 100%); }
.page-hero .container { width: 100%; padding-bottom: 64px; padding-top: 120px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 20ch; animation: up .8s .1s var(--ease) both; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 54ch; margin-top: 16px; color: rgba(255,255,255,.9); animation: up .8s .25s var(--ease) both; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; color: rgba(255,255,255,.8); animation: up .8s var(--ease) both; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* Prose block */
.prose { max-width: 720px; }
.prose p { color: var(--color-text-muted); }
.prose p + p { margin-top: 18px; }
.prose h2 { margin: 0 0 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }
.split img.wide { aspect-ratio: 4 / 3; }

/* Closing CTA band */
.cta-band { background: var(--color-foreground); color: var(--color-background); text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band p { color: color-mix(in srgb, var(--color-background) 78%, transparent); max-width: 52ch; margin: 16px auto 32px; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-line { border-color: color-mix(in srgb, var(--color-background) 50%, transparent); color: var(--color-background); background: transparent; }
.cta-band .btn-line:hover { background: color-mix(in srgb, var(--color-background) 12%, transparent); }

/* Portfolio index */
.proj-list { display: grid; gap: clamp(64px, 9vw, 112px); }
.proj { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.proj:nth-child(even) > .proj-media { order: 2; }
.proj-media { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--color-muted); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-media:hover img { transform: scale(1.04); }
.proj-copy .tag { display: inline-block; font-size: 14px; letter-spacing: .06em; color: var(--color-accent-text); margin-bottom: 12px; }
.proj-copy h2 { margin-bottom: 14px; }
.proj-copy p { color: var(--color-text-muted); max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 30px; padding: 18px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.facts dd { margin: 0; font-weight: 600; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; color: var(--color-foreground); border-bottom: 2px solid var(--color-accent); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Project page */
.proj-intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.proj-intro .facts { flex-direction: column; gap: 18px; margin: 0; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.proj-intro .facts .btn { margin-top: 6px; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--color-muted); cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.next-proj { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.next-proj a { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; background: var(--color-muted); }
.next-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.next-proj a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,16,12,.8)); }
.next-proj a:hover img { transform: scale(1.04); }
.next-proj span { position: absolute; left: 24px; bottom: 20px; z-index: 1; }
.next-proj small { display: block; font-size: 14px; opacity: .85; letter-spacing: .04em; }
.next-proj strong { font: 500 1.4rem/1.2 var(--font-heading); }

/* Services page */
.svc-rows { display: grid; gap: clamp(64px, 9vw, 112px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc-row:nth-child(even) > .svc-media { order: 2; }
.svc-media { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--color-muted); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 14%, transparent); color: var(--color-accent-text); margin-bottom: 20px; }
.svc-row .ic .icon { width: 26px; height: 26px; }
.svc-row h2 { margin-bottom: 14px; }
.svc-row p { color: var(--color-text-muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--color-text-muted); }
.ticks .icon { width: 20px; height: 20px; color: var(--color-accent-text); margin-top: 3px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 28px 24px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 1.6rem/1 var(--font-heading); color: var(--color-accent-text); margin-bottom: 16px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--color-text-muted); font-size: 16px; line-height: 1.6; }

/* Contact page */
.contact-page { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
a.contact-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 14%, transparent); color: var(--color-accent-text); }
.contact-card small { display: block; font-size: 14px; color: var(--color-text-muted); }
.contact-card strong { font-weight: 600; }
.contact-page .form-card { box-shadow: var(--shadow); border: 1px solid var(--color-border); }
@media (prefers-color-scheme: light) { .contact-page .form-card { background: var(--color-surface); } }

@media (max-width: 1024px) {
  .proj, .proj-intro, .svc-row, .split, .contact-page { grid-template-columns: 1fr; }
  .proj:nth-child(even) > .proj-media, .svc-row:nth-child(even) > .svc-media, .split.flip > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps, .next-proj { grid-template-columns: 1fr; }
  .page-hero .container { padding-bottom: 48px; }
}
[data-cat].hide { display: none; }
a.card { display: block; text-decoration: none; }
.timeline img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 16px; background: var(--color-muted); }
.svc { text-decoration: none; display: block; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal a { color: var(--color-accent-text); }
.notfound { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.notfound p { color: var(--color-text-muted); margin: 14px 0 30px; }

/* ---------- Conversion polish ---------- */

/* Project cards: explicit "View project" cue (visible on touch, slides in on hover) */
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: .03em; color: var(--color-accent); }
.card-cta .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .card-cta .icon, .card:focus-visible .card-cta .icon { transform: translateX(4px); }
@media (hover: hover) {
  .card-cta { opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .card:hover .card-cta, .card:focus-visible .card-cta { opacity: 1; transform: none; }
}

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--color-accent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 18px 24px; font: 500 1.08rem/1.4 var(--font-heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 14%, transparent); color: var(--color-accent-text); }
.faq summary .icon { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(-90deg); }
.faq details p { padding: 0 24px 22px; color: var(--color-text-muted); max-width: 68ch; }

/* Mobile quick-contact bar: thumb-reach Call / Book on phones */
.mobile-bar { display: none; }
.btn-line-dark { border-color: var(--color-border); color: var(--color-foreground); background: var(--color-surface); }
@media (max-width: 768px) {
  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass-bg); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--color-border);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 12px 18px; }
  .mobile-bar .icon { width: 18px; height: 18px; }
  body.has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* WhatsApp: WhatsApp's darker brand green keeps the white mark readable */
.btn-wa { background: #128C7E; color: #fff; }
.btn-wa:hover { background: #0E7A6E; }
.contact-card.wa .ic { background: #128C7E; color: #fff; }
.btn-sq { width: 48px; padding: 0 !important; flex: none; }
.btn-sq .icon { width: 22px !important; height: 22px !important; }
@media (max-width: 768px) { .mobile-bar { grid-template-columns: auto auto 1fr; } }

.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 34; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: #128C7E; color: #fff; text-decoration: none;
  font-weight: 600; letter-spacing: .02em; box-shadow: 0 12px 32px rgba(18, 140, 126, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: #0E7A6E; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18, 140, 126, .45); }
.wa-float:active { transform: scale(.97); }
@media (max-width: 768px) { .wa-float { display: none; } }

/* ---------- Video ---------- */
/* Video testimonials */
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.v-card { margin: 0; }
.v-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; background: #1C1917; box-shadow: var(--shadow); }
.v-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-frame.portrait video { object-fit: contain; }
.v-card figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--color-text-muted); }
.v-card figcaption .icon { width: 14px; height: 14px; fill: var(--color-accent); stroke: none; }
.v-card figcaption span { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 1024px) { .v-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .v-grid { grid-template-columns: 1fr; } }

/* Post Sales Support: photo with call badge, numbered care list */
.post-sales { background: var(--color-muted); }
.ps-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ps-media { position: relative; }
.ps-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.ps-badge { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--color-foreground); text-decoration: none; transition: transform .25s var(--ease); }
.ps-badge:hover { transform: translateY(-2px); }
.ps-badge small { font-size: .82rem; color: var(--color-text-muted); letter-spacing: .02em; }
.ps-badge strong { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ps-badge .icon { width: 18px; height: 18px; color: var(--color-accent-text); }
.ps-body .rule { margin: 0 0 18px; }
.ps-kicker { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 600; margin-bottom: 10px; }
.ps-lead { color: var(--color-text-muted); margin-top: 16px; max-width: 58ch; font-size: 1.05rem; line-height: 1.75; }
.ps-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.ps-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 22px 0; border-top: 1px solid var(--color-border); position: relative; }
.ps-num { position: absolute; top: 22px; right: 0; font-family: var(--font-heading); font-size: .85rem; color: var(--color-secondary); font-variant-numeric: tabular-nums; }
.ps-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-accent-text); }
.ps-list h3 { font-size: 1.02rem; margin: 8px 0 6px; padding-right: 28px; }
.ps-list p { color: var(--color-text-muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .ps-list { grid-template-columns: 1fr; }
  .ps-actions .btn { flex: 1 1 100%; justify-content: center; }
}
