/* Tobykemsworth — public site styles */
:root {
  --brand: #f26f21;
  --brand-600: #dc5c10;
  --brand-50: #fff3eb;
  --brand-100: #ffe2cf;
  --ink: #17191d;
  --ink-2: #24272d;
  --ink-3: #343841;
  --slate: #8b9ea8;
  --text: #2a2d33;
  --muted: #6a707b;
  --line: #e8e4df;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --success: #1f9d55;
  --danger: #d64545;
  --warn: #c98a0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 25, 29, .06), 0 2px 8px rgba(23, 25, 29, .04);
  --shadow: 0 10px 30px -12px rgba(23, 25, 29, .18), 0 2px 6px rgba(23, 25, 29, .05);
  --shadow-lg: 0 30px 60px -20px rgba(23, 25, 29, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --container: 1240px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #c9cdd4; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.text-center .eyebrow::after { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.text-center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }
.accent-serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--brand); letter-spacing: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 111, 33, .7); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------------- header ---------------- */
.topbar { background: var(--ink); color: #b9bec7; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a:hover { color: #fff; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar i { color: var(--brand); margin-right: 6px; }
.topbar .social a { display: inline-grid; place-items: center; width: 28px; height: 28px; }
.topbar .social i { color: inherit; margin: 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .12em; color: var(--ink); }
.brand-sub { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 13px; font-weight: 600; font-size: 15px; color: var(--ink-3); border-radius: 999px; position: relative; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a.active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; color: var(--ink); }

/* home: header floats over hero */
.home .site-header { position: fixed; left: 0; right: 0; top: 42px; background: transparent; border-color: transparent; backdrop-filter: none; }
.home .site-header .brand-name, .home .site-header .nav a { color: #fff; }
.home .site-header .brand-sub { color: rgba(255, 255, 255, .75); }
.home .site-header .nav a:hover, .home .site-header .nav a.active { color: var(--brand-100); }
.home .site-header .nav a.active::after { background: #fff; }
.home .site-header .nav-toggle { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.home .site-header.scrolled { top: 0; background: rgba(255, 255, 255, .97); border-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.home .site-header.scrolled .brand-name, .home .site-header.scrolled .nav a { color: var(--ink-3); }
.home .site-header.scrolled .brand-name { color: var(--ink); }
.home .site-header.scrolled .brand-sub { color: var(--muted); }
.home .site-header.scrolled .nav a:hover, .home .site-header.scrolled .nav a.active { color: var(--brand); }
.home .site-header.scrolled .nav a.active::after { background: var(--brand); }
.home .site-header.scrolled .nav-toggle { background: #fff; color: var(--ink); border-color: var(--line); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 16, 19, .55); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; padding: 22px; overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 20px; cursor: pointer; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.drawer nav a.active { color: var(--brand); }
.drawer-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }

/* ---------------- hero slider ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 760px; max-height: 1040px; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; z-index: 1; }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); }
.hero-slide.is-active .bg { animation: kenburns 9s ease-out forwards; }
.hero-slide:nth-child(even).is-active .bg { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate(-1%, 0); } to { transform: scale(1.14) translate(1%, -1%); } }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 18, .86) 0%, rgba(14, 15, 18, .55) 45%, rgba(14, 15, 18, .12) 100%), linear-gradient(0deg, rgba(14, 15, 18, .65) 0%, transparent 40%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding: 130px 0 240px; }
.hero-content .container { width: 100%; }
.hero-text { max-width: 720px; }
.hero-text > * { opacity: 0; transform: translateY(28px); }
.hero-slide.is-active .hero-text > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-slide.is-active .hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-slide.is-active .hero-text > :nth-child(3) { animation-delay: .3s; }
.hero-slide.is-active .hero-text > :nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(242, 111, 33, .3); }
.hero h1, .hero .h1-like { color: #fff; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.06; letter-spacing: -.025em; word-spacing: .04em; margin-bottom: 22px; text-wrap: balance; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 136px; pointer-events: none; }
.hero-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-counter { font-weight: 700; font-size: 15px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.hero-counter b { color: #fff; font-size: 26px; }
.hero-dots { display: flex; gap: 10px; pointer-events: auto; }
.hero-dot { position: relative; width: 56px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .28); cursor: pointer; overflow: hidden; }
.hero-dot::before { content: ''; position: absolute; inset: -10px 0; }
.hero-dot span { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.hero-dot.done span { transform: scaleX(1); }
.hero-dot.is-active span { animation: progress var(--hero-delay, 7s) linear forwards; }
.hero.paused .hero-dot.is-active span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; pointer-events: auto; }
.hero-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }

/* search card overlapping the hero */
.hero-search-wrap { position: relative; z-index: 10; margin-top: -96px; }
.search-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; }
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab { padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.search-tab.active { background: var(--ink); color: #fff; }
.search-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 8px; align-items: stretch; }
.search-field { background: var(--bg-soft); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.search-field label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.search-field input, .search-field select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; color: var(--ink); outline: none; width: 100%; font-size: 15px; }
.search-card .btn { border-radius: 14px; padding: 0 30px; min-height: 60px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 8px 0; }
.stat-num { font-size: clamp(36px, 4.2vw, 54px); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.stat-num span { color: var(--brand); }
.stat-label { color: var(--muted); font-weight: 600; margin-top: 8px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.collage .c1 { inset: 0 22% 22% 0; width: 78%; height: 78%; }
.collage .c2 { right: 0; bottom: 0; width: 52%; height: 52%; border: 8px solid #fff; }
.collage-badge { position: absolute; left: 6%; bottom: 6%; background: var(--brand); color: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); max-width: 190px; }
.collage-badge b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-3); }
.check-list i { color: var(--brand); font-size: 18px; margin-top: 1px; }
.quote { border-left: 3px solid var(--brand); padding: 6px 0 6px 20px; margin: 0 0 30px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-3); }

/* property card */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.p-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.p-card:hover .p-media img { transform: scale(1.07); }
.p-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.p-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); line-height: 1.3; }
.badge-brand { background: var(--brand); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-sold { background: var(--danger); color: #fff; }
.badge-soft { background: var(--brand-50); color: var(--brand-600); }
.badge-green { background: #e5f6ec; color: #17794a; }
.badge-amber { background: #fdf3dc; color: #946300; }
.badge-red { background: #fde8e8; color: #b42318; }
.badge-gray { background: #eef0f3; color: #4b5563; }
.p-price { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.p-price small { font-weight: 500; font-size: 13px; opacity: .85; }
.p-photos { position: absolute; right: 14px; bottom: 14px; z-index: 2; color: #fff; font-size: 13px; font-weight: 600; display: flex; gap: 5px; align-items: center; }
.p-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.p-type { font-size: 12.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.p-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-title a:hover { color: var(--brand); }
.p-loc { color: var(--muted); font-size: 14.5px; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 16px; }
.p-loc i { color: var(--brand); }
.p-meta { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.p-meta span { display: inline-flex; gap: 6px; align-items: center; }
.p-meta i { color: var(--slate); }
.p-agent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--brand-100); color: var(--brand-600); display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 96px; height: 96px; font-size: 32px; }

/* promo band */
.promo { position: relative; overflow: hidden; border-radius: 28px; background: var(--brand); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.promo::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.promo::after { content: ''; position: absolute; right: 80px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.promo h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.promo p { color: rgba(255, 255, 255, .9); font-size: 17px; }
.promo-steps { position: relative; z-index: 1; display: grid; gap: 12px; }
.promo-step { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); padding: 16px 18px; border-radius: 16px; backdrop-filter: blur(4px); }
.promo-step b { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.promo-step strong { display: block; color: #fff; }
.promo-step span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* service cards */
.s-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; display: flex; flex-direction: column; }
.s-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.s-card:hover::before { transform: scaleX(1); }
.s-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; transition: background .3s, color .3s; }
.s-card:hover .s-icon { background: var(--brand); color: #fff; }
.s-card h3 { font-size: 19px; margin-bottom: 10px; }
.s-card p { color: var(--muted); font-size: 15px; }
.s-card .link-arrow { margin-top: auto; font-size: 14.5px; }

/* projects rail */
.proj-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.proj-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .88) 0%, rgba(10, 11, 13, .1) 60%); z-index: -1; }
.proj-card:hover img { transform: scale(1.08); }
.proj-card .inner { padding: 24px; }
.proj-card h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.proj-card p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.proj-card .badge { position: absolute; top: 16px; left: 16px; }

/* events */
.e-card { display: flex; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.e-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.e-media { position: relative; width: 42%; min-height: 220px; flex-shrink: 0; }
.e-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.e-date { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 14px; text-align: center; padding: 8px 12px; line-height: 1.1; box-shadow: var(--shadow-sm); }
.e-date b { display: block; font-size: 26px; color: var(--brand); letter-spacing: -.03em; }
.e-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.e-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.e-body h3 { font-size: 20px; margin: 0; }
.e-body h3 a:hover { color: var(--brand); }
.e-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; }
.e-meta i { color: var(--brand); margin-right: 6px; }
.e-body .btn { margin-top: auto; align-self: flex-start; }

/* blog cards */
.b-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.b-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.b-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.b-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.b-card:hover .b-media img { transform: scale(1.06); }
.b-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 10px; align-items: center; }
.b-body h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.35; }
.b-body h3 a:hover { color: var(--brand); }
.b-body p { color: var(--muted); font-size: 15px; }
.b-body .link-arrow { margin-top: auto; font-size: 14.5px; }

/* TRECON band */
.trecon-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #c9cdd4; display: grid; grid-template-columns: 1fr 1fr; }
.trecon-band .txt { padding: 60px 56px; }
.trecon-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); }
.trecon-band .img { position: relative; min-height: 360px; }
.trecon-band .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trecon-band .img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 40%); z-index: 1; }
.steps { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: rgba(242, 111, 33, .18); color: var(--brand); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.steps strong { color: #fff; display: block; }

/* CTA */
.cta { text-align: center; padding: 80px 20px; border-radius: 28px; background: linear-gradient(135deg, rgba(23, 25, 29, .9), rgba(23, 25, 29, .7)), url('/img/seed/hero-bungalows.jpg') center/cover; color: #fff; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); max-width: 760px; margin: 0 auto 14px; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* page hero */
.page-hero { position: relative; padding: 110px 0 90px; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; opacity: .45; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 18, .92), rgba(14, 15, 18, .55)); z-index: -1; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(242, 111, 33, .18); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin-bottom: 12px; letter-spacing: -.03em; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .65); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 11px; align-self: center; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242, 111, 33, .14); }
.textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.alert i { font-size: 18px; margin-top: 1px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #e8f7ee; color: #14633c; border: 1px solid #bfe6cf; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert-info { background: var(--brand-50); color: #8a3a08; border: 1px solid var(--brand-100); }
.flash-stack { position: fixed; top: 96px; right: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow); animation: slideIn .4s cubic-bezier(.2, .8, .2, 1); }
.flash-stack .alert button { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; font-size: 18px; line-height: 1; padding: 0 0 0 8px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }

.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 20px; }

/* properties page */
.listing-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters .field { margin-bottom: 14px; }
.filters h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 a { font-size: 13px; color: var(--brand); font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 8px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid rgba(242, 111, 33, .5); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.results-bar .select { width: auto; padding: 10px 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; font-weight: 700; }
.chip:hover { background: var(--brand-100); }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 70px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 44px; color: var(--slate); display: block; margin-bottom: 12px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; background: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* property detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 10px; border-radius: 22px; overflow: hidden; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; position: relative; overflow: hidden; background: var(--bg-soft); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 480px; }
.gallery.n2 button:first-child, .gallery.n1 button:first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 button:nth-child(4) { grid-column: span 2; }
.gallery .more { position: absolute; inset: 0; background: rgba(15, 16, 19, .55); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; margin-top: 40px; align-items: start; }
.detail-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 36px; }
.detail-head h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.detail-price { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--brand); letter-spacing: -.03em; text-align: right; line-height: 1.1; }
.detail-price small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 36px; }
.fact { background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; }
.fact small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fact b { color: var(--ink); font-size: 16.5px; }
.fact i { color: var(--brand); margin-right: 6px; }
.prose { font-size: 16.5px; line-height: 1.8; color: var(--ink-3); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.4em 0; height: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 3px solid var(--brand); margin: 1.4em 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--muted); }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose-pre { white-space: pre-line; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features i { color: var(--success); margin-top: 2px; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.contact-person { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.contact-person strong { display: block; color: var(--ink); }
.contact-person small { color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.share { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.preview-bar { background: #fdf3dc; color: #7a5200; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 11, 13, .94); z-index: 400; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: var(--brand); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 20px; color: rgba(255, 255, 255, .7); font-weight: 600; }

/* team */
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.team-card .photo { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, var(--brand-50), var(--bg-soft)); overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card .body { padding: 22px; }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.team-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.team-lead { display: grid; grid-template-columns: 380px 1fr; gap: 0; background: var(--ink); color: #c9cdd4; border-radius: 24px; overflow: hidden; margin-bottom: 32px; }
.team-lead .photo { background: linear-gradient(160deg, #2d3038, #1b1d22); }
.team-lead .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-lead .body { padding: 48px; align-self: center; }
.team-lead h3 { color: #fff; font-size: 28px; }
.team-lead .role { color: var(--brand); font-weight: 700; margin-bottom: 18px; }

.value-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value-card i { font-size: 28px; color: var(--brand); display: block; margin-bottom: 14px; }
.value-card h3 { font-size: 18px; margin-bottom: 6px; }
.value-card p { color: var(--muted); margin: 0; font-size: 15px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { padding: 40px; border-radius: 22px; background: var(--bg-soft); position: relative; overflow: hidden; }
.vm-card.dark { background: var(--ink); color: #c9cdd4; }
.vm-card.dark h3 { color: #fff; }
.vm-card .big-icon { position: absolute; right: -10px; bottom: -30px; font-size: 160px; opacity: .06; }
.vm-card h3 { font-size: 24px; }

/* service division blocks */
.division { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.division:last-child { border-bottom: 0; }
.division:nth-child(even) .division-media { order: 2; }
.division-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.division-media img { width: 100%; height: 100%; object-fit: cover; }
.division-media .logo { position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 14px; padding: 10px 14px; max-width: 170px; box-shadow: var(--shadow-sm); }
.division-media .logo img { height: 44px; width: auto; object-fit: contain; }
.division h2 { font-size: clamp(24px, 2.6vw, 32px); }
.division ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.division li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-3); }
.division li i { color: var(--brand); margin-top: 3px; }
.div-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.div-nav a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; display: inline-flex; gap: 8px; align-items: center; }
.div-nav a:hover { border-color: var(--brand); color: var(--brand); }
.div-nav i { color: var(--brand); }

/* event detail */
.ev-hero { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--ink); }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-facts { display: grid; gap: 16px; }
.ev-fact { display: flex; gap: 14px; align-items: flex-start; }
.ev-fact .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ev-fact small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev-fact b { color: var(--ink); }
.seats { height: 8px; border-radius: 8px; background: var(--bg-soft); overflow: hidden; margin: 8px 0 4px; }
.seats span { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.ticket { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.ticket-top { background: var(--brand); color: #fff; padding: 36px; text-align: center; }
.ticket-top i { font-size: 54px; }
.ticket-top h1 { color: #fff; font-size: 30px; margin: 10px 0 6px; }
.ticket-body { padding: 32px 36px; border-top: 2px dashed var(--line); position: relative; }
.ticket-ref { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .12em; color: var(--ink); background: var(--bg-soft); border-radius: 14px; padding: 14px; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.ticket dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
.ticket dt { color: var(--muted); font-weight: 600; font-size: 14px; }
.ticket dd { margin: 0; font-weight: 600; color: var(--ink); }

/* contact */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.contact-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); margin: 0; font-size: 15px; }
.contact-card a:hover { color: var(--brand); }
.map { border-radius: 22px; overflow: hidden; height: 420px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* agent profile + directory */
.agent-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s; }
.agent-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.agent-card h3 { font-size: 18px; margin: 14px 0 2px; }
.agent-card small { color: var(--muted); }
.verified { color: #1d8cf8; }

/* auth pages */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--ink) center/cover; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 15, 18, .92), rgba(14, 15, 18, .3)); z-index: -1; }
.auth-side h2 { color: #fff; font-size: 34px; }
.auth-side p { color: rgba(255, 255, 255, .8); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-form .inner { width: 100%; max-width: 480px; }
.auth-form h1 { font-size: 32px; }

/* agent dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dash-stat small { color: var(--muted); font-weight: 600; }
.dash-stat b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; background: var(--bg-soft); white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table .thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-3); transition: all .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.inline { display: inline; }

/* image uploader (shared with admin) */
.uploader { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--bg-soft); }
.uploader:hover, .uploader.drag { border-color: var(--brand); background: var(--brand-50); }
.uploader i { font-size: 32px; color: var(--brand); }
.uploader input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb-item { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.thumb-item button:hover { background: var(--danger); }
.thumb-item .cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.thumb-item.new { outline: 2px solid var(--brand); outline-offset: -2px; }
.thumb-item.uploading img { opacity: .45; }
.thumb-item .progress { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.thumb-item.failed { outline-color: var(--danger); }
.thumb-item.failed .progress { background: var(--danger); }
.upload-status { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: #a8aeb8; padding-top: 80px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--brand); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8a909b; }
.footer-brand p { margin: 20px 0; }
.footer-brand .tag { font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 20px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--brand); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 60px; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.5); opacity: 0; } }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 90; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; display: grid; place-items: center; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-text > * { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 9px; font-size: 14.5px; }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .search-field:first-child { grid-column: 1 / -1; }
  .search-card .btn { grid-column: 1 / -1; min-height: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .team-lead { grid-template-columns: 1fr; }
  .team-lead .photo { max-height: 420px; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .split, .division, .vm, .trecon-band, .promo, .auth-wrap { grid-template-columns: 1fr; }
  .division:nth-child(even) .division-media { order: 0; }
  .split { gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .promo, .trecon-band .txt { padding: 40px 28px; }
  .trecon-band .img { min-height: 260px; order: -1; }
  .trecon-band .img::before { background: linear-gradient(0deg, var(--ink), transparent 50%); }
  .auth-side { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 140px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .gallery.n2, .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 300px; }
  .gallery.n2 button:nth-child(2) { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .e-card { flex-direction: column; }
  .e-media { width: 100%; min-height: 200px; }
  .hero-ui { bottom: 124px; }
  .hero-arrows { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 16px; }
  .topbar-info .hide-sm, .topbar-links .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9px; letter-spacing: .22em; }
  .grid-3, .grid-4, .grid-2, .form-grid, .check-list, .features, .division ul { grid-template-columns: 1fr; }
  .hero { min-height: 680px; }
  .hero-content { align-items: flex-end; padding: 120px 0 190px; }
  .hero-dot { width: 34px; }
  .hero-counter b { font-size: 20px; }
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-head { flex-direction: column; }
  .detail-price { text-align: left; }
  .contact-actions { grid-template-columns: 1fr; }
  .team-lead .body { padding: 28px; }
  .vm-card { padding: 28px; }
  .cta { padding: 56px 20px; }
  .ticket dl { grid-template-columns: 1fr; gap: 2px; }
  .ticket dd { margin-bottom: 10px; }
  .ticket-body { padding: 24px 20px; }
  .flash-stack { top: 80px; right: 16px; left: 16px; max-width: none; }
}

/* let grid/flex children shrink below their content width on small screens */
.split > *, .form-grid > *, .grid > *, .detail-layout > *, .listing-layout > * { min-width: 0; }
input[type=file] { max-width: 100%; }
.contact-card a, .contact-card p, .footer-contact a, .ticket dd { overflow-wrap: anywhere; }
