:root {
  --green-950: #061f1a;
  --green-900: #0b352b;
  --green-800: #114638;
  --green-700: #195f46;
  --green-600: #237d5c;
  --green-400: #43b68d;
  --fuchsia-900: #630036;
  --fuchsia-700: #9a0053;
  --fuchsia-600: #b30f66;
  --fuchsia-500: #d5157c;
  --cream-50: #fbfaf7;
  --cream-100: #f8f7f3;
  --cream-200: #f1eee8;
  --text: #202925;
  --muted: #5c6762;
  --line: #dce4df;
  --white: #fff;
  --shadow: 0 22px 60px rgba(6, 31, 26, .12);
  --shadow-soft: 0 12px 32px rgba(6, 31, 26, .08);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--cream-50); font-family: var(--body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .65em; font-family: var(--heading); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.35rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.15rem; color: var(--muted); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.centered { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; background: var(--white); color: var(--green-900); border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251, 250, 247, .92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(11, 53, 43, .08); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(145deg, var(--green-600), var(--green-950)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 22px rgba(11,53,43,.18); font-family: var(--heading); font-weight: 700; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-family: var(--heading); font-size: 1.18rem; color: var(--green-900); }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .035em; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 10px 12px; border-radius: 999px; color: var(--green-900); font-weight: 650; font-size: .92rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(35, 125, 92, .09); }
.main-nav .nav-contact { padding-inline: 19px; background: var(--green-900); color: var(--white); }
.main-nav .nav-contact:hover, .main-nav .nav-contact[aria-current="page"] { background: var(--fuchsia-700); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--green-900); padding: 12px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--white); }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; padding: 88px 0; color: var(--white); overflow: hidden; background: radial-gradient(circle at 24% 18%, rgba(67,182,141,.55), transparent 28%), radial-gradient(circle at 80% 75%, rgba(6,31,26,.8), transparent 42%), linear-gradient(135deg, var(--green-700), var(--green-950)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(120deg, transparent 0 47%, rgba(255,255,255,.2) 50%, transparent 53%); background-size: 170px 170px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .6; }
.hero-orb-one { width: 280px; height: 280px; background: rgba(213,21,124,.17); right: -70px; top: 10%; }
.hero-orb-two { width: 180px; height: 180px; background: rgba(255,255,255,.08); left: 45%; bottom: -80px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.hero-copy h1 { max-width: 760px; text-wrap: balance; }
.hero-copy > p { max-width: 690px; color: rgba(255,255,255,.83); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: rgba(255,255,255,.84); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--fuchsia-500); }
.eyebrow.dark { color: var(--green-700); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 23px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--green-900); background: var(--white); }
.button-light:hover { background: var(--cream-200); }
.button-outline-light { color: var(--white); border-color: rgba(255,255,255,.48); background: transparent; }
.button-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--green-700), var(--green-900)); box-shadow: 0 12px 24px rgba(11,53,43,.18); }
.button-primary:hover { background: linear-gradient(135deg, var(--fuchsia-600), var(--fuchsia-900)); }
.button.full { width: 100%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-badges li { padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.82); font-size: .78rem; }
.portrait-shell { position: relative; width: min(100%, 430px); margin-inline: auto; }
.portrait-placeholder { min-height: 510px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(255,255,255,.22); border-radius: 46% 46% 28px 28px; background: linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 80px rgba(0,0,0,.2); }
.portrait-placeholder.compact { min-height: 350px; max-width: 330px; border-radius: var(--radius-lg); justify-self: end; }
.portrait-placeholder strong { display: block; color: var(--white); font-size: 1.05rem; }
.portrait-placeholder small { color: rgba(255,255,255,.65); }
.portrait-initials { display: block; margin-bottom: 15px; font-family: var(--heading); font-size: 5rem; color: rgba(255,255,255,.32); }
.portrait-note { position: absolute; right: -20px; bottom: 40px; max-width: 230px; padding: 17px 20px; border-radius: 16px; color: var(--green-900); background: var(--white); box-shadow: var(--shadow); }
.portrait-note span, .portrait-note strong { display: block; }
.portrait-note span { color: var(--fuchsia-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.section { padding: 110px 0; }
.section-soft { background: var(--cream-100); }
.section-deep { color: var(--white); background: linear-gradient(145deg, var(--green-900), var(--green-950)); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.centered { margin-inline: auto; }
.section-heading p { font-size: 1.08rem; }
.section-heading.light p { color: rgba(255,255,255,.72); }
.cards-grid { display: grid; gap: 24px; }
.cards-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { min-height: 340px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.feature-number { margin-bottom: 42px; color: var(--fuchsia-600); font-family: var(--heading); font-size: 1.15rem; font-weight: 700; }
.feature-card p { flex: 1; font-size: .94rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-weight: 800; }
.text-link:hover { color: var(--fuchsia-700); }
.split-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(45px, 8vw, 100px); align-items: center; }
.align-start { align-items: start; }
.photo-placeholder { min-height: 480px; display: grid; place-content: center; text-align: center; border: 1px dashed rgba(11,53,43,.28); border-radius: var(--radius-lg); color: var(--green-700); background: radial-gradient(circle at 25% 20%, rgba(67,182,141,.25), transparent 32%), linear-gradient(145deg, var(--cream-200), var(--white)); }
.photo-placeholder.landscape { min-height: 420px; }
.photo-placeholder span { display: block; font-family: var(--heading); font-size: 1.65rem; }
.photo-placeholder small { color: var(--muted); }
.content-block h2 { max-width: 680px; }
.content-block > p { font-size: 1.07rem; }
.credential-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0 30px; }
.credential-chips span { padding: 8px 13px; border-radius: 999px; color: var(--green-800); background: rgba(35,125,92,.09); font-size: .82rem; font-weight: 750; }
.project-card { overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.project-image-placeholder { min-height: 210px; display: grid; place-content: center; background: radial-gradient(circle at 30% 20%, rgba(67,182,141,.48), transparent 30%), linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); }
.project-image-placeholder span { padding: 8px 13px; border-radius: 999px; background: rgba(6,31,26,.48); color: var(--white); font-size: .78rem; font-weight: 800; }
.project-card-body { padding: 27px; }
.project-card-body p { color: rgba(255,255,255,.66); }
.status-badge { display: inline-flex; margin-bottom: 13px; padding: 6px 10px; border-radius: 999px; color: var(--green-900); background: var(--green-400); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status-badge.fuchsia { color: var(--white); background: var(--fuchsia-600); }
.section-action { margin-top: 38px; text-align: center; }
.material-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.material-cover { min-height: 205px; display: grid; place-content: center; gap: 10px; text-align: center; border-radius: 13px; color: var(--white); background: radial-gradient(circle at 30% 20%, rgba(67,182,141,.6), transparent 28%), linear-gradient(145deg, var(--green-700), var(--green-950)); box-shadow: 0 16px 28px rgba(6,31,26,.22); }
.material-cover > span { font-family: var(--heading); font-size: 2.5rem; }
.material-cover small { padding-inline: 8px; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.cta-section { padding-top: 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 55px clamp(28px, 6vw, 72px); border-radius: var(--radius-lg); color: var(--white); background: radial-gradient(circle at 15% 20%, rgba(213,21,124,.25), transparent 25%), linear-gradient(135deg, var(--green-700), var(--green-950)); box-shadow: var(--shadow); }
.cta-box h2 { max-width: 760px; margin-bottom: 0; }

.page-hero { padding: 100px 0; color: var(--white); background: radial-gradient(circle at 75% 20%, rgba(213,21,124,.2), transparent 26%), linear-gradient(135deg, var(--green-700), var(--green-950)); }
.page-hero.simple { padding: 95px 0 100px; text-align: center; }
.page-hero.simple .narrow { margin-inline: auto; }
.page-hero p { max-width: 780px; color: rgba(255,255,255,.78); font-size: 1.13rem; }
.page-hero.simple p { margin-inline: auto; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr); gap: 70px; align-items: center; }
.page-hero-grid h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
.timeline { position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 30px 22px; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--fuchsia-600); box-shadow: 0 0 0 6px var(--cream-50); }
.timeline-item span { color: var(--fuchsia-700); font-size: .76rem; font-weight: 800; }
.timeline-item h3 { margin: 5px 0; font-size: 1.28rem; }
.timeline-item p { margin: 0; font-size: .9rem; }
.register-box { display: grid; gap: 6px; margin-top: 30px; padding: 22px; border-left: 4px solid var(--fuchsia-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--cream-100); }
.register-box strong { color: var(--green-900); }
.register-box span { color: var(--muted); }
.statement-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.statement-card > span { display: inline-block; margin-bottom: 18px; color: var(--fuchsia-700); font-weight: 850; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.statement-card p { margin: 0; font-family: var(--heading); font-size: 1.3rem; line-height: 1.48; color: var(--green-900); }
.values-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.value-pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px; color: var(--green-800); background: rgba(35,125,92,.08); font-weight: 700; }
.value-pill span { color: var(--fuchsia-600); }
.skills-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.skill-card { min-height: 125px; display: grid; place-content: center; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--green-800); font-weight: 730; box-shadow: var(--shadow-soft); }
.service-list { display: grid; gap: 24px; }
.service-detail { scroll-margin-top: 110px; display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 28px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.service-index { display: grid; place-content: start center; color: var(--fuchsia-600); font-family: var(--heading); font-size: 1.6rem; font-weight: 700; }
.service-summary { max-width: 850px; font-size: 1.05rem; }
.service-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 25px 0; }
.service-meta div { padding: 15px; border-radius: var(--radius-sm); background: var(--cream-100); }
.service-meta dt { color: var(--fuchsia-700); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.service-meta dd { margin: 5px 0 0; color: var(--text); font-size: .9rem; }
.portfolio-grid { display: grid; gap: 34px; }
.portfolio-card { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.portfolio-image { min-height: 360px; display: grid; place-content: center; text-align: center; color: var(--green-700); background: radial-gradient(circle at 25% 20%, rgba(67,182,141,.28), transparent 30%), linear-gradient(145deg, var(--cream-200), var(--white)); }
.portfolio-body { padding: 40px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.portfolio-tags span { padding: 6px 10px; border-radius: 999px; color: var(--green-800); background: rgba(35,125,92,.09); font-size: .72rem; font-weight: 800; }
.portfolio-tags span:last-child { color: var(--fuchsia-700); background: rgba(179,15,102,.08); }
.project-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 28px; }
.project-fields span { padding: 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: .78rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.catalog-cover { min-height: 315px; display: grid; place-content: center; gap: 10px; padding: 30px; text-align: center; color: var(--white); background: radial-gradient(circle at 28% 20%, rgba(67,182,141,.55), transparent 28%), radial-gradient(circle at 80% 80%, rgba(213,21,124,.22), transparent 30%), linear-gradient(145deg, var(--green-700), var(--green-950)); }
.catalog-monogram { font-family: var(--heading); font-size: 4rem; color: rgba(255,255,255,.75); }
.catalog-cover small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.catalog-cover strong { max-width: 180px; color: rgba(255,255,255,.58); font-size: .67rem; letter-spacing: .1em; }
.catalog-body { padding: 27px; }
.catalog-body dl { display: grid; gap: 7px; margin: 22px 0 0; }
.catalog-body dl div { display: flex; justify-content: space-between; gap: 15px; padding-top: 7px; border-top: 1px solid var(--line); }
.catalog-body dt { color: var(--muted); font-size: .82rem; }
.catalog-body dd { margin: 0; color: var(--green-800); font-size: .82rem; font-weight: 750; }
.notice-box { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px; padding: 34px; border: 1px solid rgba(179,15,102,.18); border-radius: var(--radius); background: rgba(179,15,102,.045); }
.notice-icon { width: 44px; height: 44px; display: grid; place-content: center; border-radius: 50%; color: var(--white); background: var(--fuchsia-600); font-family: var(--heading); font-size: 1.4rem; }
.notice-box h2 { font-size: 1.7rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 8vw, 90px); align-items: start; }
.contact-info { position: sticky; top: 120px; }
.contact-item { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item span { color: var(--fuchsia-700); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.contact-item a, .contact-item strong { color: var(--green-800); }
.privacy-note { margin-top: 25px; font-size: .85rem; }
.privacy-note a { color: var(--fuchsia-700); text-decoration: underline; }
.form-card { padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--green-900); font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 15px; border: 1px solid #cbd7d0; border-radius: 10px; color: var(--text); background: var(--cream-50); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(35,125,92,.12); }
.form-field .is-invalid { border-color: var(--fuchsia-600); box-shadow: 0 0 0 4px rgba(179,15,102,.1); }
.form-field small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.setup-notice { margin: 20px 0; padding: 12px 14px; border-radius: 9px; color: #7c5b00; background: #fff5cf; font-size: .82rem; }
.alert { margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.alert-success { color: #0e5a40; background: #ddf7eb; }
.alert-error { color: #8e174f; background: #fde5ef; }
.legal-content { max-width: 850px; }
.legal-content h2 { margin-top: 35px; font-size: 1.6rem; }
.legal-content a { color: var(--fuchsia-700); text-decoration: underline; }
.error-page { min-height: 65vh; display: grid; place-content: center; }
.error-code { display: block; color: var(--fuchsia-600); font-family: var(--heading); font-size: 6rem; font-weight: 700; }

.site-footer { padding: 75px 0 20px; color: rgba(255,255,255,.78); background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 55px; }
.footer-brand { color: var(--white); font-family: var(--heading); font-size: 2rem; }
.site-footer p { color: rgba(255,255,255,.58); }
.footer-small { max-width: 430px; }
.site-footer h2 { color: var(--white); font-family: var(--body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { display: block; margin: 8px 0; }
.site-footer a:hover { color: var(--green-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom a { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal-links a { white-space: nowrap; }
.legal-content ul { margin: 15px 0 20px; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1050px) {
  .cards-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid-3, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-card { grid-template-columns: 120px minmax(0,1fr); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 auto; display: grid; gap: 5px; padding: 20px; background: var(--cream-50); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
  .main-nav.is-open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 13px 15px; }
  .main-nav .nav-contact { text-align: center; }
  .hero { min-height: auto; padding: 70px 0 90px; }
  .hero-grid, .page-hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p, .hero-copy h1 { margin-inline: auto; }
  .button-row, .hero-badges { justify-content: center; }
  .portrait-shell { max-width: 400px; }
  .portrait-placeholder { min-height: 430px; }
  .portrait-note { right: 10px; }
  .page-hero-grid { text-align: center; }
  .portrait-placeholder.compact { justify-self: center; width: min(100%, 330px); }
  .service-meta { grid-template-columns: 1fr; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-image { min-height: 270px; }
  .contact-info { position: static; }
  .cta-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.05rem; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .section { padding: 78px 0; }
  .page-hero { padding: 75px 0; }
  .cards-grid-4, .cards-grid-3, .cards-grid-2, .catalog-grid, .skills-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-number { margin-bottom: 24px; }
  .material-card { grid-template-columns: 1fr; }
  .material-cover { min-height: 250px; }
  .service-detail { grid-template-columns: 1fr; padding: 27px; }
  .service-index { justify-content: start; }
  .project-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-cover { min-height: 290px; }
  .notice-box { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .portrait-note { position: static; max-width: none; margin: -25px 20px 0; }
}
/* Fotografias institucionais */

.portrait-placeholder.portrait-photo,
.photo-placeholder.photo-filled {
    padding: 0;
    overflow: hidden;
}

.portrait-placeholder.portrait-photo {
    display: block;
}

.portrait-photo img,
.photo-filled img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Foto principal */
.portrait-photo img {
    object-position: 50% 18%;
}

/* Foto horizontal da página inicial */
.photo-placeholder.landscape.photo-filled {
    min-height: 0;
    aspect-ratio: 6 / 5;
    display: block;
}

.photo-placeholder.landscape.photo-filled img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
}

/* Foto compacta da página Sobre */
.portrait-placeholder.compact.portrait-photo {
    aspect-ratio: 4 / 5;
    min-height: 0;
}

.portrait-placeholder.compact.portrait-photo img {
    object-position: 50% 18%;
}