/* Torreño Lerma: a restrained palette, readable type and genuine photography. */
:root {
  --navy: #192c36;
  --ink: #202d34;
  --muted: #606667;
  --paper: #fafaf8;
  --soft: #f0f1ee;
  --line: #d7dad6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2, .serif { font-family: var(--serif); }
h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.2; letter-spacing: -1.4px; }
p + p { margin-top: 18px; }
em { font-style: normal; color: inherit; }
svg, img { display: block; max-width: 100%; }
::selection { background: #dce3e5; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.wrap { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 92px; }
.eyebrow { margin-bottom: 22px; font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 13px 22px; border: 1px solid var(--navy); background: var(--navy); color: white; font-size: 13px; font-weight: 500; transition: background .2s; }
.btn:hover { background: #30434c; }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: #e2e5e2; }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; padding-block: 4px; font-size: 13px; font-weight: 500; }
.text-link:hover { opacity: .7; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 100; padding: 12px 22px; background: var(--navy); color: white; }
.skip:focus { top: 10px; }

/* Navigation. Only functional controls retain symbols. */
.header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand-name { display: block; font: 25px/1.15 var(--serif); letter-spacing: -.6px; }
.brand-caption { display: block; margin-top: 7px; font: 8px/1.3 var(--sans); letter-spacing: 4px; }
.brand { flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.nav a { padding-block: 5px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--ink); }
.header-cta { min-height: 41px; padding: 9px 16px; font-size: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; padding: 12px; }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--ink); }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* The real portrait is deliberately displayed close to its native resolution. */
.hero { width: min(var(--max), calc(100% - 96px)); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 78px; padding-block: 75px 66px; align-items: center; }
.hero h1 { max-width: 650px; font-size: clamp(47px, 5.1vw, 67px); line-height: 1.1; letter-spacing: -2.1px; }
.hero-description { max-width: 490px; margin-top: 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 31px; }
.hero-note { margin-top: 33px; font-size: 12px; color: var(--muted); }
.hero-portrait { margin: 0; width: 100%; max-width: 392px; justify-self: end; }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 392/384; object-fit: cover; }
.hero-portrait figcaption { padding-top: 17px; font-size: 13px; }
.hero-portrait figcaption span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.hero + .section { border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 85px; }
.intro h2 { max-width: 410px; }
.intro-copy { padding-top: 36px; color: var(--muted); font-size: 14px; }
.intro-copy strong { color: var(--ink); font-weight: 500; }
.intro-copy .text-link { margin-top: 20px; color: var(--ink); }

/* Native details work without JavaScript; + becomes a proper minus when open. */
.practice { background: var(--soft); }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 45px; margin-bottom: 43px; }
.section-top > p { max-width: 340px; font-size: 14px; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: 280px 1fr; gap: 65px; }
.practice-aside { align-self: start; padding-top: 23px; position: sticky; top: 122px; }
.practice-aside .aside-label { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.practice-aside h3 { font: 28px/1.3 var(--serif); margin-bottom: 20px; }
.practice-aside p { color: var(--muted); font-size: 13px; }
.practice-aside .text-link { margin-top: 22px; }
.practice-list { border-top: 1px solid #c6cbc5; }
.practice-item { border-bottom: 1px solid #c6cbc5; }
.practice-item summary { list-style: none; display: grid; grid-template-columns: 1fr 30px; gap: 16px; align-items: center; padding: 25px 0; cursor: pointer; }
.practice-item summary::-webkit-details-marker { display: none; }
.practice-title { font: 25px/1.35 var(--serif); letter-spacing: -.4px; }
.practice-title small { display: block; font: 11px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.plus { display: grid; place-items: center; width: 30px; height: 30px; font: 27px/1 var(--sans); color: var(--ink); }
.plus .expanded { display: none; }
.practice-item[open] .plus .collapsed { display: none; }
.practice-item[open] .plus .expanded { display: block; }
.practice-body { padding: 0 45px 28px 0; color: var(--muted); font-size: 13px; }
.practice-body > p { margin-bottom: 18px; color: var(--ink); }
.practice-body ul { margin: 0; padding-left: 17px; display: grid; gap: 10px; }

/* Specialization explained through useful content, without decorative graphics. */
.automotive { background: var(--navy); color: var(--paper); }
.automotive-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 90px; }
.automotive .eyebrow { color: #cbd3d4; }
.automotive p { margin-top: 22px; color: #d5dcdd; font-size: 14px; }
.automotive .btn { margin-top: 29px; }
.sector-list { padding-top: 37px; }
.sector-list article { border-top: 1px solid #ffffff35; padding-block: 21px; }
.sector-list h3 { font: 22px/1.35 var(--serif); }
.sector-list p { font-size: 13px; margin-top: 10px; }
.values-heading { max-width: 660px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 43px; }
.value { border-top: 1px solid var(--line); padding-top: 23px; }
.value h3 { font: 23px/1.3 var(--serif); margin-bottom: 15px; }
.value p { font-size: 13px; color: var(--muted); }
.workflow { background: var(--soft); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 43px; }
.workflow-step { padding-top: 22px; border-top: 1px solid var(--line); }
.workflow-step h3 { font: 23px/1.35 var(--serif); margin-bottom: 16px; }
.workflow-step p { font-size: 13px; color: var(--muted); }

/* Contact and validation. */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; }
.contact-copy h2 { margin-bottom: 25px; }
.contact-copy > p { max-width: 370px; font-size: 14px; color: var(--muted); }
.contact-lines { display: grid; gap: 22px; margin-top: 32px; }
.contact-line { font-size: 14px; }
.contact-line span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.meeting-note { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 370px; font-size: 12px; color: var(--muted); }
.form { padding: 30px; background: var(--soft); align-self: start; }
.form-heading { font: 27px/1.3 var(--serif); margin-bottom: 12px; }
.form-mode { font-size: 11px; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-full { grid-column: 1/-1; }
.field label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 7px; }
.optional { color: var(--muted); font-size: 10px; font-weight: 400; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 45px; border: 1px solid #c6ccc5; border-radius: 0; padding: 10px 12px; background: var(--paper); color: var(--ink); font-size: 12px; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #737b7b; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #9e3434; }
.error { display: block; font-size: 11px; color: #9e3434; }
.error:not(:empty) { padding-top: 5px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-block: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.consent input { width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.inline-button { border: 0; padding: 0; font: inherit; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.submit-btn { width: 100%; }
.submit-btn:disabled { cursor: wait; opacity: .7; }
.form-status { margin-top: 15px; font-size: 12px; }
.form-status:empty { display: none; }
.form-status.success { border-left: 2px solid var(--ink); padding-left: 13px; color: var(--ink); }
.required-note { margin-top: 12px; font-size: 10px; color: var(--muted); }

.footer { padding-top: 38px; background: var(--navy); color: #dce2e3; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 32px; }
.footer-message { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 23px; padding-block: 23px; border-top: 1px solid #ffffff30; font-size: 11px; }
.footer-links, .social-links { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; }
.footer-links button { font: inherit; padding: 0; border: 0; background: none; color: inherit; }
.footer a:hover, .footer-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-links span { color: #bac5c7; }
.back-top { margin-left: 10px; }

/* Native dialog provides focus containment and Escape dismissal. */
dialog { width: min(640px, calc(100% - 32px)); max-height: 85dvh; padding: 34px; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #192c36b8; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
dialog h2 { font-size: 31px; letter-spacing: -.6px; }
dialog h3 { font-size: 16px; font-weight: 600; margin-top: 22px; margin-bottom: 8px; }
dialog p, dialog li { font-size: 13px; color: var(--muted); }
dialog a { text-decoration: underline; }
.close-dialog { min-width: 36px; min-height: 36px; border: 1px solid var(--line); background: none; font-size: 24px; }
.reveal { transition: opacity .5s; }
.js-reveal { opacity: 0; }
.js-reveal.visible { opacity: 1; }

@media (max-width: 1050px) {
  .wrap, .hero { width: calc(100% - 64px); }
  .nav { gap: 18px; }
  .brand-name { font-size: 22px; }
  .hero { gap: 45px; }
  .intro, .automotive-grid, .contact-grid { gap: 50px; }
  .practice-grid { grid-template-columns: 240px 1fr; gap: 45px; }
  .values-grid { gap: 25px; }
}
@media (max-width: 850px) {
  .header-inner { height: 78px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 24px 32px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 15px; flex-direction: column; align-items: flex-start; gap: 17px; }
  .nav.is-open { display: flex; }
  html { scroll-padding-top: 95px; }
  .section { padding-block: 72px; }
  .hero { gap: 35px; padding-block: 55px; }
  .hero h1 { font-size: 47px; }
  .hero-description { font-size: 14px; }
  .hero-portrait { align-self: center; }
  .intro { grid-template-columns: 1fr 1fr; gap: 35px; }
  .intro-copy { padding-top: 34px; }
  .practice-grid { grid-template-columns: 1fr; gap: 30px; }
  .practice-aside { position: static; padding: 0; max-width: 560px; }
  .practice-aside h3 { margin-bottom: 12px; }
  .practice-aside .text-link { margin-top: 14px; }
  .automotive-grid { gap: 40px; }
  .sector-list { padding-top: 34px; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .workflow-grid { gap: 25px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 32px; }
  .form { padding: 25px; }
  .fields { grid-template-columns: 1fr; gap: 17px; }
}
@media (max-width: 600px) {
  .wrap, .hero { width: calc(100% - 40px); }
  .header-inner { height: 74px; }
  .brand-name { font-size: 23px; }
  .brand-caption { font-size: 7px; letter-spacing: 3px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .nav { top: 74px; padding-inline: 20px; }
  .hero { grid-template-columns: 1fr; gap: 37px; padding-block: 44px; }
  .hero h1 { font-size: clamp(43px, 11.7vw, 59px); letter-spacing: -1.6px; }
  .hero-description { margin-top: 22px; }
  .hero-actions { gap: 19px; margin-top: 26px; }
  .hero-actions .btn { font-size: 12px; padding-inline: 17px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-note { font-size: 11px; margin-top: 26px; }
  .hero-portrait { justify-self: start; max-width: 392px; }
  .hero-portrait figcaption { padding-top: 13px; }
  .section { padding-block: 57px; }
  h2 { font-size: 36px; letter-spacing: -1px; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; }
  .intro { grid-template-columns: 1fr; gap: 23px; }
  .intro-copy { padding-top: 0; }
  .section-top { display: block; margin-bottom: 30px; }
  .section-top > p { margin-top: 19px; font-size: 13px; max-width: 100%; }
  .practice-aside h3 { font-size: 26px; }
  .practice-title { font-size: 23px; }
  .practice-title small { font-size: 10px; }
  .practice-item summary { padding-block: 22px; gap: 12px; }
  .practice-body { padding-right: 10px; font-size: 12px; }
  .automotive-grid { grid-template-columns: 1fr; gap: 28px; }
  .sector-list { padding-top: 0; }
  .sector-list article:last-child { padding-bottom: 0; }
  .values-grid { margin-top: 33px; gap: 29px 23px; }
  .value h3 { font-size: 22px; }
  .value p { font-size: 12px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 27px; margin-top: 30px; }
  .workflow-step h3 { font-size: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 23px; }
  .footer-top { display: block; }
  .footer-message { margin-top: 25px; }
  .footer-bottom { gap: 23px; font-size: 10px; }
  .social-links { width: 100%; }
  .back-top { margin-left: auto; }
  dialog { padding: 24px; }
  dialog h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal { opacity: 1; }
}
