:root {
  --night: #101e19;
  --green: #214635;
  --forest: #214635;
  --paper: #f6f6ed;
  --lime: #dbe9aa;
  --outline: #afbc9a;
}

body { font-family: 'DM Sans', system-ui, sans-serif; }
:focus-visible { outline: 2px solid #6d8c42; outline-offset: 4px; }
.topline { background: #162921; color: #e5edcf; padding-block: 9px; }
header { background: var(--paper); border-bottom: 1px solid #23463519; }
.hero {
  max-width: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(38px, 7vw, 100px) max(5%, calc((100vw - 1280px) / 2));
  background: radial-gradient(ellipse at 83% 12%, #355540 0, transparent 52%), linear-gradient(141deg, #142b22, #0d1a16 76%);
  color: #f4f5e8;
}
.hero > div, .contact > div, .contact form { min-width: 0; }
.hero h1 { font-size: clamp(50px, 6vw, 92px); font-weight: 780; line-height: .99; letter-spacing: -.07em; overflow-wrap: anywhere; }
.hero h1 em { color: var(--lime); font-weight: 520; }
.hero .eyebrow, .hero p, .hero-foot { color: #d0ddc8; }
.hero .eyebrow { letter-spacing: .13em; }
.hero .eyebrow .dot { background: var(--lime); }
.hero .button { background: var(--lime); color: var(--night); }
.hero .textlink { color: inherit; text-underline-offset: 5px; }
.hero .photo { width: 100%; aspect-ratio: 5 / 5.65; height: auto; border-radius: 70px 16px 16px; border: 1px solid #e1e9c768; background: #284235; box-shadow: 0 24px 70px #07120e78; }
.hero .photoframe img { object-fit: cover; }
.hero .photo:after { background: linear-gradient(transparent 64%, #0d2119a9); }
.hero .tag { background: #102c22cc; color: #f1f6dd; border: 1px solid #dbe9aa80; font-size: .68rem; }
.hero .tag::before { content: '✦'; color: var(--lime); margin-inline-end: 6px; }
[data-theme="sage"] .hero { color: #183726; background: radial-gradient(ellipse at 75% 8%, #cad8b4, transparent 57%), #e9eedc; }
[data-theme="sage"] .hero h1 em, [data-theme="sage"] .hero .eyebrow, [data-theme="sage"] .hero p, [data-theme="sage"] .hero-foot { color: #385840; }
[data-theme="sage"] .hero .button, [data-theme="sage"] .hero .dot { background: var(--forest); color: white; }
.strip { background: var(--lime); color: #1d3a2b; letter-spacing: .12em; }
.card, .photo-open, .contact, .process-box { border-radius: 16px; }
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid figure:nth-child(-n+2) .photo-open { aspect-ratio: 4 / 3; }
.photo-grid figure:nth-child(-n+2) img { object-fit: cover; }
.custom-copy { white-space: pre-line; overflow-wrap: anywhere; }

footer { background: #e8eddf; color: #203d2c; gap: 16px 24px; padding-bottom: 88px; }
.footer-contact { flex-wrap: wrap; }
.developer-credit { align-items: center; border-top: 1px solid #afbc9a; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 15px; width: 100%; }
.portfolio-link { align-items: center; border: 1px solid #829775; border-radius: 100px; display: inline-flex; gap: 8px; min-height: 44px; padding: 6px 15px; margin-inline-start: auto; }
.portfolio-link:hover { background: #d6e1cb; }
.key-sticker { background: transparent; border: 1px solid #698063; box-shadow: none; overflow: visible; }
.key-sticker svg { animation: key-wiggle 5s ease-in-out infinite; }
@keyframes key-wiggle { 0%, 75%, 100% { transform: rotate(0); } 82% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }
.quick-dock { background: transparent; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; z-index: 30; }
.dock-agent { background: #163828; color: #f3f8de; border: 1px solid #b2cb95; min-height: 54px; padding-inline: 14px; box-shadow: 0 8px 26px #0a211b65; }
.dock-agent:hover { background: #254e38; }
.agent-live { background: #bfdb79; border-radius: 50%; width: 7px; height: 7px; }
.agent-panel { background: radial-gradient(ellipse at 93% 0, #2c4c3c, #111f19 70%); }
.agent-panel .dialog-top h2, .photo-panel .dialog-top h2 { font-family: Manrope, system-ui, sans-serif; text-transform: none; font-weight: 800; letter-spacing: -.045em; }
.agent-tools { margin: 12px 0 8px; }
.agent-tools select { color: #edf2de; background: #172c22; border: 1px solid #b4c8a775; border-radius: 8px; font: inherit; min-height: 44px; max-width: 100%; padding: 7px 12px; }
.agent-whatsapp { text-decoration: underline; text-underline-offset: 4px; }
#photo-login:not([hidden]), #text-editor:not([hidden]), #appearance-editor:not([hidden]) { display: grid; gap: 10px; }
.editor-tabs, .editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.editor-tabs button, .editor-secondary { background: transparent; border: 1px solid #889c7b; border-radius: 8px; color: var(--forest); cursor: pointer; font: inherit; min-height: 44px; padding: 8px 12px; }
.editor-tabs button[aria-pressed="true"] { background: var(--forest); color: white; }
.photo-panel label { display: block; }
.photo-panel select, .photo-panel textarea { background: #fff; color: var(--night); color-scheme: light; border: 1px solid #889c7b; border-radius: 8px; font: inherit; min-height: 44px; padding: 8px 12px; width: 100%; }
.photo-panel textarea { resize: vertical; }
.editor-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-columns textarea { display: block; margin-top: 4px; }
.photo-panel .button { background: var(--forest); color: white; font-size: 1rem; min-height: 44px; }
.photo-editor[data-slot="logo"] img { object-fit: contain; background: #e5eadb; }
.photo-editor { overflow: hidden; }
.photo-editor .editor-secondary { margin-top: 8px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 36px 5% 30px; gap: 28px; }
  .hero h1 { font-size: clamp(39px, 10.8vw, 66px); letter-spacing: -.06em; }
  .hero .photo { aspect-ratio: 5 / 4; border-top-left-radius: 42px; }
  .hero .photoframe img { object-position: center 58%; }
  .hero .actions { gap: 12px; }
  .hero .actions a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero .eyebrow { font-size: 10px; }
  .strip { gap: 10px 14px; padding-inline: 5%; }
  .contact input, .contact select, .contact textarea { font-size: 16px; }
  .portfolio-link { margin-inline-start: 0; }
}
@media (max-width: 430px) {
  .photo-grid, .editor-columns { grid-template-columns: minmax(0, 1fr); }
  .topline { padding-inline: 8px; letter-spacing: .075em; }
  .contact { padding: 18px; }
  .contact form { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .key-sticker svg { animation: none; }
}
