:root {
  --ink: #0a0a0b;
  --paper: #f2eee6;
  --paper-2: #ded7ca;
  --red: #c81d2a;
  --red-dark: #781019;
  --gold: #c9a76d;
  --line: rgba(255, 255, 255, 0.14);
  --muted: #9d9b98;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

.display { font-family: Georgia, "Times New Roman", serif; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.section-title { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .96; font-weight: 500; letter-spacing: -.045em; }
.section-copy { color: #aeadab; font-size: 17px; line-height: 1.8; }

.topbar { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav {
  position: absolute; inset: 34px 0 auto; z-index: 30; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,0,0,.62), transparent); backdrop-filter: blur(5px);
}
.nav-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.brand-name em { color: var(--red); font-style: normal; }
.brand-sub { display: block; color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: .28em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.nav-links a { color: #d5d5d5; transition: color .2s ease; }
.nav-links a:hover { color: #fff; }
.nav-order { padding: 13px 18px; background: #fff; color: #111 !important; border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; color: #fff; font-size: 26px; }

.hero { min-height: 780px; height: 100svh; position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,4,5,.97) 0%, rgba(4,4,5,.83) 35%, rgba(4,4,5,.25) 72%, rgba(4,4,5,.38) 100%), linear-gradient(0deg, #0a0a0b 0%, transparent 30%); }
.hero-content { width: min(760px, 70%); padding: 190px 0 84px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #ddd; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; backdrop-filter: blur(10px); }
.hero-kicker i { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 16px var(--red); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(64px, 9vw, 126px); line-height: .82; font-weight: 500; letter-spacing: -.065em; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.68); font-style: italic; padding-left: .3em; }
.hero-copy { max-width: 600px; color: #c5c3bf; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 2px; background: transparent; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: .25s ease; }
.button:hover { transform: translateY(-2px); border-color: #fff; }
.button-primary { background: var(--red); border-color: var(--red); }
.button-primary:hover { background: #e12836; border-color: #e12836; }
.hero-stats { position: absolute; right: max(20px, calc((100vw - 1240px)/2)); bottom: 74px; display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); border: 1px solid var(--line); background: rgba(5,5,6,.58); backdrop-filter: blur(14px); }
.hero-stat { min-width: 130px; padding: 20px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border: 0; }
.hero-stat strong { display: block; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.hero-stat small { color: #aaa; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }

.ticker { overflow: hidden; border-block: 1px solid #262629; background: #0e0e10; }
.ticker-track { width: max-content; display: flex; gap: 44px; padding: 20px 0; animation: ticker 28s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 44px; color: #bcb9b4; font-family: Georgia, serif; font-size: 20px; font-style: italic; white-space: nowrap; }
.ticker-item::after { content: "✦"; color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.products { padding: 120px 0 130px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-head .section-copy { max-width: 430px; margin: 0 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter { border: 1px solid #29292c; background: transparent; color: #8d8c89; border-radius: 999px; padding: 10px 16px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filter.active, .filter:hover { color: #fff; border-color: var(--red); background: rgba(200,29,42,.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; min-height: 470px; overflow: hidden; background: #151517; border: 1px solid #222225; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover img { transform: scale(1.055); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.05) 65%); pointer-events: none; }
.product-badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 10px; background: rgba(5,5,5,.75); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.product-info { position: absolute; z-index: 2; inset: auto 24px 23px; }
.product-info p { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.product-info h3 { margin: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); color: #ddd; font-size: 12px; }
.product-meta b { color: #fff; }

.services { padding: 0 0 130px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #29292c; }
.service { min-height: 290px; padding: 34px 28px; border-right: 1px solid #29292c; position: relative; overflow: hidden; transition: background .25s; }
.service:last-child { border: 0; }
.service:hover { background: #141416; }
.service-number { color: var(--red); font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.service h3 { margin: 52px 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.service p { margin: 0; color: #8e8d8a; font-size: 14px; line-height: 1.7; }

.story { background: var(--paper); color: #111; }
.story-grid { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; }
.story-copy { padding: 110px clamp(34px, 7vw, 100px) 90px max(20px, calc((100vw - 1240px)/2)); display: flex; flex-direction: column; justify-content: center; }
.story-copy .eyebrow { color: var(--red); }
.story-copy .eyebrow::before { background: var(--red); }
.story-copy .section-copy { color: #58534e; max-width: 620px; }
.story-quote { margin: 32px 0; padding: 20px 0 20px 24px; border-left: 2px solid var(--red); font-family: Georgia, serif; font-size: 24px; line-height: 1.5; }
.story-media { position: relative; min-height: 620px; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.65) contrast(1.05); }
.story-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 28px 0 50px rgba(0,0,0,.12); }
.story-card { position: absolute; left: 0; bottom: 0; z-index: 2; width: min(380px, 90%); padding: 28px; background: var(--red); color: #fff; }
.story-card b { display: block; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.story-card span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.gallery { padding: 130px 0; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; grid-template-rows: 280px 280px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; background: #171719; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 28px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-family: Georgia, serif; font-size: 18px; }

.contact { border-top: 1px solid #262629; padding: 120px 0 48px; background: radial-gradient(circle at 85% 20%, rgba(124,16,25,.28), transparent 30%), #070708; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.contact h2 { max-width: 720px; }
.contact-links { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { border-top: 1px solid #353538; padding: 22px 0; }
.contact-card small { display: block; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 7px; }
.contact-card a, .contact-card p { margin: 0; color: #eee; font-size: 17px; line-height: 1.6; }
.footer { margin-top: 90px; padding-top: 32px; border-top: 1px solid #222225; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #777; font-size: 12px; }
.codexsan { font-weight: 900; color: #fff; background: linear-gradient(90deg,#ff3045,#ffb52b,#65ff85,#53a9ff,#c85cff,#ff3045); background-size: 300% 100%; -webkit-background-clip: text; color: transparent; animation: rgb 4s linear infinite; text-shadow: 0 0 18px rgba(114,134,255,.35); }
@keyframes rgb { to { background-position: 300% 0; } }

.float-actions { position: fixed; z-index: 50; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.float-action { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; box-shadow: 0 10px 35px rgba(0,0,0,.35); font-size: 21px; font-weight: 900; animation: breathe 2.2s ease-in-out infinite; }
.float-whatsapp { background: #16b75c; }
.float-call { background: var(--red); animation-delay: .5s; }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(30,198,104,.09), 0 12px 40px rgba(0,0,0,.4); } }

.product-detail { min-height: 100svh; padding: 150px 0 80px; background: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.detail-media { min-height: 620px; overflow: hidden; background: #171719; }
.detail-media img { width: 100%; height: 620px; object-fit: cover; }
.detail-content h1 { margin: 0 0 20px; font-size: clamp(54px, 7vw, 92px); line-height: .95; font-weight: 500; }
.detail-price { color: var(--gold); font-family: Georgia, serif; font-size: 30px; }
.detail-description { color: #aaa; font-size: 17px; line-height: 1.8; margin: 26px 0; }
.back-link { position: absolute; top: 46px; left: max(20px, calc((100vw - 1240px)/2)); color: #ccc; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.admin-shell { min-height: 100svh; background: #f3f0ea; color: #171717; }
.admin-top { height: 74px; background: #0b0b0c; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100svh - 74px); }
.admin-sidebar { background: #151517; color: #aaa; padding: 28px 18px; }
.admin-nav button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 13px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.admin-nav button.active { background: var(--red); color: #fff; }
.admin-main { padding: 38px; }
.admin-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; font-family: Georgia, serif; font-size: 44px; font-weight: 500; }
.admin-heading p { color: #777; margin: 6px 0 0; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-card { background: white; border: 1px solid #dedbd6; border-radius: 14px; padding: 20px; box-shadow: 0 8px 28px rgba(0,0,0,.04); }
.admin-card strong { display: block; font-family: Georgia, serif; font-size: 36px; }
.admin-card small { color: #777; }
.admin-panel { background: #fff; border: 1px solid #dedbd6; border-radius: 14px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #68645f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d9d5ce; background: #faf9f6; color: #111; border-radius: 8px; padding: 12px 13px; outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.admin-button { border: 0; border-radius: 8px; padding: 12px 18px; background: var(--red); color: white; font-weight: 800; cursor: pointer; }
.admin-button.secondary { background: #171719; }
.admin-button.ghost { background: #eeeae3; color: #333; }
.admin-products { display: grid; gap: 10px; margin-top: 20px; }
.admin-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; border: 1px solid #e2ded7; border-radius: 10px; padding: 10px; }
.admin-product img { width: 64px; height: 56px; object-fit: cover; border-radius: 7px; }
.admin-product h3 { margin: 0; font-size: 15px; }
.admin-product p { margin: 4px 0 0; color: #777; font-size: 12px; }
.notice { padding: 13px 15px; border-radius: 8px; background: #e9f8ee; color: #176e37; font-size: 13px; margin-bottom: 18px; }
.notice.error { background: #fdebed; color: #9b1b27; }

@media (max-width: 1000px) {
  .nav-links { display: none; position: absolute; top: 92px; left: 20px; right: 20px; padding: 20px; background: rgba(10,10,11,.98); border: 1px solid #27272a; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .hero-content { width: 78%; }
  .hero-stats { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid #29292c; }
  .story-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .story-copy { padding-left: 30px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 300px 300px; }
  .gallery-item:first-child { grid-row: auto; }
  .gallery-item:nth-child(4) { grid-column: 1 / 3; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 12px; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1240px); }
  .topbar-inner span:last-child { display: none; }
  .nav-inner { height: 76px; }
  .nav-links { top: 76px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .hero { min-height: 720px; }
  .hero-content { width: 100%; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(62px, 22vw, 88px); }
  .hero-copy { max-width: 92%; font-size: 15px; }
  .button { flex: 1 1 160px; padding-inline: 16px; }
  .section-head { display: block; }
  .section-head .section-copy { margin-top: 24px; }
  .products, .gallery { padding: 90px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 450px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid #29292c; min-height: 220px; }
  .service h3 { margin-top: 26px; }
  .story-grid { min-height: auto; }
  .story-copy { padding: 80px 20px; }
  .story-media { min-height: 560px; }
  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery-item { flex: 0 0 84%; height: 380px; scroll-snap-align: center; }
  .contact { padding-top: 90px; }
  .footer { display: block; line-height: 2; }
  .float-action { width: 52px; height: 52px; }
  .detail-media, .detail-media img { min-height: 420px; height: 420px; }
  .product-detail { padding-top: 110px; }
  .admin-top { padding: 0 16px; }
  .admin-main { padding: 22px 14px; }
  .admin-heading { display: block; }
  .admin-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
