/* ---------- Tokens ---------- */
:root {
  --paper: #eeeae2;
  --paper-2: #e5e0d5;
  --ink: #16181a;
  --accent: #e0561b;
  --kraft: #cdbb97;
  --muted: #5b5e5b;
  --line: rgba(22, 24, 26, .2);
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --gap: clamp(1.25rem, 3.5vw, 2.5rem);
  --sec: clamp(4.5rem, 10vw, 8.5rem);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.15rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, dl, dd, figure, blockquote, address { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-stretch: 80%; font-weight: 800; line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -.01em; font-stretch: 90%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-top { border-top: 2px solid var(--ink); padding-top: .7rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font: 700 .95rem var(--head); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; padding: 1rem 1.7rem; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); font: 700 .95rem var(--head); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; background: transparent; color: var(--ink); }
.link { font: 700 .95rem var(--head); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; transition: height .3s var(--ease); }
.site-header.scrolled .bar { height: 3.9rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.25rem var(--head); text-decoration: none; letter-spacing: -.01em; }
.logo b { font-weight: 800; }
.logo-mark { width: .75rem; height: 1.35rem; background: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav a:not(.btn) { font: 500 .95rem var(--head); text-decoration: none; padding: .3rem 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; background: none; border: 2px solid var(--ink); cursor: pointer; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-btn i:first-of-type { top: 14px; }
.menu-btn i:last-of-type { top: 24px; }
.menu-btn[aria-expanded="true"] i:first-of-type { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.5rem) var(--sec); }
.tag-line { display: inline-block; padding: .3rem .7rem; margin-bottom: 1.75rem; border: 1px solid var(--ink); font: 500 .85rem var(--head); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); line-height: .96; margin-bottom: 1.75rem; }
.lead { max-width: 33rem; font-size: 1.3rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.hero-tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0; border-top: 1px solid var(--line); font: 500 .9rem var(--head); }
.hero-tags li { padding: 1rem 1.5rem 0 0; margin-right: 1.5rem; }
.hero-tags li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.hero-art { position: relative; }
.art-note { position: absolute; right: 0; bottom: 0; width: 38.5%; height: 31%; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); font-size: 1rem; line-height: 1.35; }
.art-note strong { font: 700 1rem var(--head); margin-bottom: .3rem; }
.f-k { fill: var(--kraft); } .f-a { fill: var(--accent); } .f-i { fill: var(--ink); }
.f-p { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.ln, .ln * { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }

/* ---------- About ---------- */
.about { padding-block: var(--sec); }
.about h2 { max-width: 14em; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.about-fig { aspect-ratio: 5 / 6; }
.about-fig svg { width: 100%; height: 100%; }
.about-text { padding-top: clamp(0rem, 6vw, 5rem); }
.about-text p + p { margin-top: 1.1rem; color: var(--muted); }
blockquote { margin: 2.25rem 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); font: 500 1.6rem/1.25 var(--head); font-stretch: 85%; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font: 800 2.4rem/1 var(--head); font-stretch: 80%; margin-bottom: .4rem; }
.facts dd { font-size: .95rem; line-height: 1.35; color: var(--muted); }

/* ---------- Services ---------- */
.services { padding-bottom: var(--sec); }
.sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head p { color: var(--muted); }
.svc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-feature { position: sticky; top: 6rem; background: var(--kraft); padding: clamp(1.75rem, 3vw, 3rem); }
.svc-feature h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; margin: 2.5rem 0 1rem; }
.svc-feature ul { list-style: none; padding: 0; margin: 1.75rem 0 0; border-top: 1px solid var(--ink); }
.svc-feature li { padding: .65rem 0; border-bottom: 1px solid rgba(22, 24, 26, .35); font: 500 .98rem var(--head); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 28px; height: 28px; }
.ico-xl { width: 64px; height: 64px; stroke-width: 1.3; }
.svc-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.svc-list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.svc-list p { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.ico-box { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--ink); transition: background .25s, border-color .25s; }
.svc-list li:hover .ico-box { background: var(--accent); border-color: var(--accent); }

/* ---------- Why us ---------- */
.why { background: var(--ink); color: var(--paper); padding-block: var(--sec); }
.why .sec-top { border-color: var(--paper); }
.why-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); }
.why h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem clamp(2rem, 5vw, 4rem); }
.benefit:nth-child(even) { margin-top: 4.5rem; }
.benefit { border-top: 1px solid rgba(238, 234, 226, .3); padding-top: 1.25rem; }
.big { display: block; font: 800 clamp(4rem, 8vw, 7rem)/.9 var(--head); font-stretch: 75%; color: var(--accent); margin-bottom: 1.25rem; }
.benefit h3 { margin-bottom: .6rem; }
.benefit p { color: rgba(238, 234, 226, .75); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); padding-block: var(--sec); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 1.25rem; }
.contact-info > p { color: var(--muted); max-width: 28rem; }
address { font-style: normal; display: grid; gap: 1.25rem; margin-top: 2.5rem; }
address div { border-top: 1px solid var(--line); padding-top: .9rem; }
address span { display: block; font: 700 .85rem var(--head); color: var(--muted); margin-bottom: .2rem; }
address a { text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
form { background: var(--paper-2); border: 2px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.75rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font: 700 .85rem var(--head); margin-bottom: .2rem; }
input, textarea { width: 100%; padding: .6rem 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: inherit; color: inherit; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.err { display: block; min-height: 1.2em; margin-top: .25rem; font: 500 .85rem var(--head); color: #b3261e; }
.form-status { margin-top: 1.25rem; font: 500 .95rem/1.4 var(--head); }
.form-status:empty { display: none; }
.form-status.ok { padding: .9rem 1rem; border-left: 4px solid #2f6b3a; background: rgba(47, 107, 58, .12); }
.form-status.bad { padding: .9rem 1rem; border-left: 4px solid #b3261e; background: rgba(179, 38, 30, .1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding-block: 3.5rem 1.75rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.foot-text { margin-top: 1rem; max-width: 24rem; color: var(--muted); font-size: 1rem; }
.foot-grid h4 { font: 700 .9rem var(--head); color: var(--muted); margin-bottom: .9rem; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid a, .foot-bottom a { text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot-grid a:hover, .foot-bottom a:hover { text-decoration-color: var(--accent); }
.foot-grid .logo { text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.5rem var(--gap) 2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero, .about-grid, .svc-grid, .why-grid, .contact, .sec-head { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .about-fig { max-width: 440px; }
  .about-text { padding-top: 0; }
  .svc-feature { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.08rem; }
  .benefits, .row, .facts, .foot-grid { grid-template-columns: 1fr; }
  .benefit:nth-child(even) { margin-top: 0; }
  .hero-tags li + li { border-left: 0; padding-left: 0; }
  .svc-list li { grid-template-columns: 1fr; gap: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
