@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Marcellus&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, .font-head { font-family: var(--font-head); line-height: 1.25; font-weight: 600; color: var(--ink); }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 50px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-subtitle { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; display: block; }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-desc { color: var(--ink-soft); font-size: 17px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: all 0.2s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); position: relative; padding: 8px 0; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }
#mobile-drawer { display: none; background: var(--surface); border-top: 1px solid var(--border); padding: 24px; }
#mobile-drawer.open { display: block; }
#mobile-drawer .drawer-links { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* Hero */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; color: var(--hero-text); overflow: hidden; background: var(--hero-gradient); }
.hero-backdrop { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 80px 0; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 24px; }
.hero-title { font-size: clamp(38px, 6vw, 68px); font-weight: 600; line-height: 1.15; margin-bottom: 24px; color: var(--hero-text); }
.hero-desc { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; opacity: 0.92; margin-bottom: 36px; max-width: 640px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 16px; }

/* Grids & Cards */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 36px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.project-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.3s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.project-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-cat { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: var(--radius-pill); }
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 22px; margin-bottom: 8px; }
.project-meta { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.project-summary { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; flex: 1; }
.project-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.project-link:hover { color: var(--primary-dark); }

.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.service-title { font-size: 22px; margin-bottom: 12px; }
.service-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.service-deliverables { border-top: 1px solid var(--border); padding-top: 16px; font-size: 13px; color: var(--ink-faint); }

/* Process Timeline */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; position: relative; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--accent); opacity: 0.8; margin-bottom: 12px; }
.step-title { font-size: 18px; margin-bottom: 8px; }
.step-sub { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--ink-soft); }

/* Testimonial */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testimonial-stars { color: var(--accent); margin-bottom: 16px; font-size: 16px; letter-spacing: 2px; }
.testimonial-quote { font-family: var(--font-head); font-size: 19px; font-style: italic; line-height: 1.5; color: var(--ink); margin-bottom: 24px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.author-name { font-weight: 700; font-size: 15px; }
.author-role { font-size: 13px; color: var(--ink-faint); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { padding: 20px 24px; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; user-select: none; background: none; border: none; width: 100%; text-align: left; font-family: inherit; color: var(--ink); }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 22px; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Form */
.form-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); max-width: 760px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); }
.form-control { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; color: var(--ink); font-family: inherit; width: 100%; }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 28px; font-size: 13px; color: var(--ink-soft); }
.form-consent input[type="checkbox"] { margin-top: 3px; }

/* Gallery */
.gallery-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 40px 0; }
.gallery-showcase img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* Project detail meta grid */
.project-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.meta-label { font-size: 12px; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.meta-value { font-weight: 600; font-size: 15px; }

/* Journal tags */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { background: var(--bg-alt); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; color: var(--ink-soft); }

/* Credito grid (about) */
.credo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.credo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }

/* Designer card */
.designer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
.designer-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.designer-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); flex-shrink: 0; }

/* CTA banner */
.cta-banner { margin-top: 60px; padding: 40px; background: var(--bg-alt); border-radius: var(--radius-lg); text-align: center; }

/* Article prose */
.article-prose { font-size: 18px; line-height: 1.8; color: var(--ink-soft); }
.article-prose p { margin-bottom: 18px; }
.article-prose h2 { font-size: 24px; margin: 28px 0 14px; color: var(--ink); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 60px; }
.footer-brand { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.footer-desc { color: var(--ink-soft); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer-col-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-socials { display: flex; gap: 16px; align-items: center; }
.footer-socials a { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.footer-socials a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-faint); }
.powered-by { opacity: 0.8; }
.powered-by a { color: inherit; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }

/* Notice ticker */
.notice-bar { background: var(--primary); color: var(--on-primary); padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 500; }
.notice-bar a { text-decoration: underline; margin-left: 6px; font-weight: 700; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 99; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.2s ease; }
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* Theme switcher */
.theme-btn { position: fixed; bottom: 28px; left: 28px; z-index: 120; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); transition: transform 0.2s ease; }
.theme-btn:hover { transform: scale(1.08); color: var(--primary); }
.theme-panel { position: fixed; bottom: 88px; left: 28px; z-index: 121; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; width: 290px; max-width: calc(100vw - 56px); display: none; }
.theme-panel.open { display: block; }
.theme-panel h3 { font-size: 15px; margin-bottom: 4px; }
.theme-sub { font-size: 12px; color: var(--ink-faint); margin-bottom: 14px; }
.theme-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; margin-bottom: 8px; text-align: left; font-family: inherit; transition: border-color 0.15s ease; }
.theme-card:hover { border-color: var(--primary); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; gap: 4px; flex-shrink: 0; margin-top: 2px; }
.theme-card .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: block; }
.t-name { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.t-desc { font-size: 12px; color: var(--ink-faint); line-height: 1.4; }
.theme-note { font-size: 11px; color: var(--ink-faint); margin-top: 10px; text-align: center; font-style: italic; }

/* Scroll-to-top */
.to-top { position: fixed; bottom: 28px; left: 88px; z-index: 98; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); color: var(--primary); }

/* Stats ribbon */
.stats-ribbon { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); }

/* Project hero */
.project-hero { width: 100%; height: 60vh; position: relative; overflow: hidden; background: var(--bg-alt); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Privacy prose */
.privacy-prose { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.privacy-prose p { margin-bottom: 16px; }
.privacy-prose h2 { font-size: 20px; margin: 24px 0 12px; color: var(--ink); }

/* 404 */
.notfound { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.notfound-icon { display: flex; justify-content: center; margin-bottom: 16px; color: var(--ink-faint); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .header-actions { display: none; }
  .credo-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .project-hero { height: 45vh; }
  .theme-panel { bottom: 80px; }
}

/* ===================== Template palettes ===================== */

/* Default: Atelier — Warm travertine, charcoal ink, brushed brass */
:root {
  --primary: #22201e;
  --primary-dark: #11100f;
  --primary-light: #f2eeea;
  --accent: #c59b6d;
  --accent-light: #faf5ee;
  --bg: #f9f7f4;
  --bg-alt: #f2eeea;
  --surface: #ffffff;
  --soft: #ebe5dd;
  --border: #e3ded8;
  --ink: #1a1817;
  --ink-soft: #5e5954;
  --ink-faint: #8c847d;
  --on-primary: #f9f7f4;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #1f1d1b 0%, #383430 60%, #574c43 100%);
  --hero-overlay: rgba(26,24,23,0.45);
  --hero-text: #f9f7f4;
  --shadow-sm: 0 1px 3px rgba(34,32,30,0.05);
  --shadow-md: 0 6px 20px rgba(34,32,30,0.08);
  --shadow-lg: 0 16px 40px rgba(34,32,30,0.12);
}

/* Nordic Form — Clean Scandinavian oak & linen, deep forest sage + terracotta */
html[data-theme="nordic"] {
  --primary: #2d4a3e;
  --primary-dark: #1e332a;
  --primary-light: #e6ede8;
  --accent: #d48366;
  --accent-light: #faeee9;
  --bg: #f4f6f4;
  --bg-alt: #e9eee9;
  --surface: #ffffff;
  --soft: #dfe6e0;
  --border: #d2dbd3;
  --ink: #19241f;
  --ink-soft: #4f5e56;
  --ink-faint: #7a8a81;
  --on-primary: #ffffff;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #1a2e26 0%, #2d4a3e 50%, #446b5a 100%);
  --hero-overlay: rgba(25,36,31,0.5);
  --hero-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(45,74,62,0.06);
  --shadow-md: 0 8px 24px rgba(45,74,62,0.09);
  --shadow-lg: 0 20px 48px rgba(45,74,62,0.14);
}

/* Monolith Dark — Dramatic obsidian luxury, antique gold */
html[data-theme="monolith"] {
  --primary: #d4a373;
  --primary-dark: #b88b5d;
  --primary-light: #24201b;
  --accent: #e0b488;
  --accent-light: #2e261f;
  --bg: #0f0f10;
  --bg-alt: #171719;
  --surface: #202023;
  --soft: #28282d;
  --border: #323238;
  --ink: #f5f5f7;
  --ink-soft: #a1a1aa;
  --ink-faint: #71717a;
  --on-primary: #121214;
  --font-head: 'Marcellus', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0a0a0b 0%, #171719 50%, #26221d 100%);
  --hero-overlay: rgba(10,10,11,0.6);
  --hero-text: #f5f5f7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
}
html[data-theme="monolith"] .site-header { background: rgba(15,15,16,0.92); }
html[data-theme="monolith"] .hero-badge { background: rgba(255,255,255,0.12); }
html[data-theme="monolith"] .project-cat { background: rgba(0,0,0,0.6); }
