/* Pedro Estoura — editorial cyber portfolio, deliberately dependency-free */
:root {
  --bg: #101512;
  --bg-deep: #0a100d;
  --panel: #171f1a;
  --panel-soft: #1a231d;
  --ink: #edf2ec;
  --muted: #a5b0a6;
  --dim: #748277;
  --accent: #c2f58d;
  --accent-deep: #a6e66a;
  --line: rgba(213,232,213,.16);
  --line-strong: rgba(213,232,213,.27);
  --grid-line: rgba(203,226,204,.063);
  --grid-size: 88px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --max: 1380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg-deep); }
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button, input { font: inherit; }
p, h1, h2, h3 { margin-top: 0; }
.container { width: min(var(--max), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -100px; padding: 14px 18px; background: var(--accent); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }
.top-rule { position: fixed; inset: 0 0 auto; z-index: 90; height: 3px; background: linear-gradient(90deg, #d6ffab, #a6e66a); transform-origin: left center; }

/* Fixed navigation, intentionally functional without JavaScript. */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(12,17,14,.88); backdrop-filter: blur(16px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand-mark { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #112015; font-size: 20px; font-weight: 850; letter-spacing: -.09em; border-radius: 7px; padding-right: 2px; }
.brand-dot { color: #4d7b37; }
.brand-name { font-family: var(--mono); color: #dbe8d9; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.brand-name span { color: var(--accent); padding-inline: 2px; }
.primary-nav { display: flex; align-items: center; gap: clamp(17px,2.5vw,38px); white-space: nowrap; }
.primary-nav a { position: relative; font-family: var(--mono); font-size: 12px; color: #aebbb0; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--accent); }
.primary-nav a:last-child { color: var(--accent); }
.primary-nav a:last-child span { padding-left: 4px; }
.primary-nav a::after { content: ""; position: absolute; height: 1px; width: 100%; left: 0; bottom: -8px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

/* Opening composition. */
.hero { position: relative; overflow: clip; isolation: isolate; background: radial-gradient(circle at 88% 24%,rgba(132,174,119,.075),transparent 42%), linear-gradient(150deg,#111713 0%,#0d120f 85%); }
.hero-grid { pointer-events: none; position: absolute; inset: 0; opacity: 1; background-image: linear-gradient(to right,rgba(205,231,205,.10) 1px,transparent 1px),linear-gradient(to bottom,rgba(205,231,205,.10) 1px,transparent 1px); background-size: var(--grid-size) var(--grid-size); mask-image: linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%); }
.hero-inner { position: relative; min-height: 890px; padding-block: clamp(96px,9vw,148px) 98px; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 1130px); }
.eyebrow { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .075em; font-weight: 650; color: var(--accent); }
.eyebrow-line { display: inline-block; height: 1px; background: rgba(194,245,141,.48); width: 39px; flex: none; }
.eyebrow-sub { color: var(--dim); letter-spacing: .02em; font-weight: 400; }
.terminal-prompt { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; color: #a3b3a4; font-family: var(--mono); font-size: 12px; font-weight: 460; letter-spacing: .01em; }
.prompt-prefix { color: #687a6b; }
.prompt-command { display: inline-block; overflow: hidden; white-space: nowrap; width: 16ch; border-right: 2px solid var(--accent); animation: prompt-type 1.3s steps(16,end) .15s both, caret-blink 1.06s steps(1,end) infinite; }
.hero h1 { position: relative; max-width: 855px; margin: 38px 0 0; font-family: var(--serif); font-size: clamp(75px,7.45vw,116px); line-height: 1.02; font-weight: 670; letter-spacing: -.061em; text-wrap: balance; }
.hero h1 em { display: inline; color: #a5aca5; font-style: italic; font-weight: 520; }
.hero h1 .hero-soft { color: #8c998f; font-weight: 550; font-style: italic; }
.hero h1 .hero-emphasis { color: var(--accent); }
.accent-dot { color: var(--accent); }
.hero-description { max-width: 740px; margin: 45px 0 0; color: #abb8ad; font-size: clamp(16px,1.22vw,19px); line-height: 1.77; letter-spacing: -.009em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; margin-top: 34px; }
.button-primary { min-height: 58px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; background: var(--accent); color: #142017; font-size: 13px; font-weight: 740; letter-spacing: -.01em; transition: background .2s ease, transform .2s ease; }
.button-primary:hover { background: #d4ffaa; transform: translateY(-2px); }
.button-primary span { font-size: 20px; font-weight: 400; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: #d2dfd3; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid rgba(210,223,211,.6); padding-bottom: 6px; transition: color .2s ease,border-color .2s ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-size: 18px; }
.hero-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 60px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.status-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(194,245,141,.1); }
.caption-separator { opacity: .35; }
.hero-visual { position: absolute; right: -74px; top: 48px; width: min(50%,690px); height: calc(100% - 48px); pointer-events: none; z-index: 1; }
.portrait-stage { position: relative; width: 100%; height: 100%; mask-image: radial-gradient(ellipse 70% 72% at 62% 37%,#000 35%,rgba(0,0,0,.95) 56%,transparent 100%); }
.portrait-cutout { position: absolute; bottom: -34px; right: 0; width: 100%; max-width: none; height: auto; filter: grayscale(1) brightness(.61) contrast(1.08); opacity: .73; }
.hero-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 21px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; color: #889889; }
.scroll-hint { color: var(--accent); }
.scroll-hint span { display: inline-block; font-size: 17px; margin-left: 11px; animation: scroll-nudge 2.8s ease-in-out infinite; }
.expertise-strip { background: var(--accent); color: #1b2819; overflow: hidden; }
.strip-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 700 10px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.strip-symbol { font-size: 16px; opacity: .45; }

/* Shared section framework. */
.section { border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.section-shell { padding-block: clamp(94px,10vw,160px); }
.section-heading { display: flex; align-items: center; gap: 20px; font: 11px var(--mono); letter-spacing: .09em; margin-bottom: 62px; }
.section-number { color: var(--accent); font-family: var(--mono); letter-spacing: .02em; }
.section-tag { color: #8d9b8e; font-family: var(--mono); letter-spacing: .1em; margin-left: 0; }
.section-title { margin: 0; font-size: clamp(44px,5.2vw,78px); line-height: 1.1; letter-spacing: -.055em; font-weight: 550; text-wrap: balance; }
.section-title span { color: var(--accent); }
.section-intro-grid { display: grid; grid-template-columns: 1.25fr .7fr; gap: 11%; align-items: end; margin-bottom: 60px; }
.section-intro-grid p { margin: 0; max-width: 420px; color: var(--muted); line-height: 1.8; font-size: 16px; }
.section-about { background-color: var(--bg); background-image: linear-gradient(to right,var(--grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.about-layout { display: grid; grid-template-columns: 1.12fr .82fr; gap: clamp(60px,11vw,180px); }
.tiny-cross { margin-top: 65px; font-size: 30px; color: var(--accent); width: fit-content; animation: cross-turn 18s linear infinite; }
.about-content { padding-top: 4px; }
.about-content p { font-size: 17px; line-height: 1.89; color: #a8b5aa; margin-bottom: 25px; }
.about-content .lead { font-size: clamp(20px,1.75vw,25px); line-height: 1.6; color: var(--ink); letter-spacing: -.02em; margin-bottom: 33px; }
.quote-inline { display: flex; gap: 20px; border-top: 1px solid var(--line-strong); margin-top: 42px; padding-top: 28px; }
.quote-inline > span { font-family: Georgia,serif; font-size: 64px; line-height: 1; color: var(--accent); }
.quote-inline p { margin: 0; max-width: 350px; color: var(--accent); font-size: 17px; font-style: italic; line-height: 1.65; }

.section-expertise { background-image: linear-gradient(to right,var(--grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px),linear-gradient(180deg,#151d17,#131a15); background-size: var(--grid-size) var(--grid-size),var(--grid-size) var(--grid-size),auto; }
.expertise-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { display: flex; flex-direction: column; padding: 31px 32px 29px; min-height: 318px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, box-shadow .25s ease; }
.expertise-card:hover { background: rgba(194,245,141,.045); box-shadow: inset 0 3px 0 rgba(194,245,141,.7); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font: 10px var(--mono); letter-spacing: .065em; color: var(--accent); margin-bottom: 42px; }
.card-top > span:last-child { font-size: 19px; color: #819384; transition: transform .22s ease, color .22s ease; }
.expertise-card:hover .card-top > span:last-child { transform: translate(3px,-3px); color: var(--accent); }
.expertise-card h3 { font-size: clamp(21px,2vw,27px); line-height: 1.2; letter-spacing: -.04em; font-weight: 540; margin: 0 0 15px; }
.expertise-card p { font-size: 14px; line-height: 1.72; color: #a1afa2; margin: 0 0 28px; }
.chip-row { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row span { border: 1px solid rgba(215,233,211,.18); border-radius: 2px; padding: 7px 9px; color: #8d9d8e; font: 10px var(--mono); }

.section-work { background-color: var(--bg-deep); background-image: linear-gradient(to right,var(--grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.work-layout { display: grid; grid-template-columns: .9fr 1fr; gap: 14%; align-items: start; }
.work-sticky { position: sticky; top: 150px; }
.work-sticky p { max-width: 420px; color: var(--muted); line-height: 1.8; margin-top: 30px; font-size: 16px; }
.work-steps { border-top: 1px solid var(--line-strong); }
.work-step { padding: 36px 0 46px; display: grid; grid-template-columns: 43px 1fr 20px; gap: 23px; border-bottom: 1px solid var(--line-strong); }
.work-step-no { color: var(--accent); font: 12px var(--mono); }
.work-kicker { display: block; color: var(--dim); font: 10px var(--mono); letter-spacing: .1em; margin-bottom: 16px; }
.work-step h3 { max-width: 450px; font-size: clamp(23px,2vw,32px); letter-spacing: -.04em; font-weight: 510; line-height: 1.25; margin-bottom: 18px; }
.work-step p { max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.78; margin: 0; }
.work-arrow { font-size: 23px; color: #829286; transition: transform .2s ease, color .2s ease; }
.work-step:hover .work-arrow { transform: translate(3px,-3px); color: var(--accent); }

.section-articles { background-color: #151d17; background-image: linear-gradient(to right,var(--grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.article-preview-list { border-top: 1px solid var(--line-strong); }
.article-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 24px; align-items: center; padding: 30px 12px 30px 0; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.article-row:hover { background: rgba(193,245,141,.045); }
.article-date { color: var(--dim); font: 11px var(--mono); }
.article-title { margin: 0 0 9px; font-weight: 530; font-size: clamp(21px,2.2vw,30px); letter-spacing: -.04em; }
.article-summary { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.article-meta { color: var(--accent); font: 10px var(--mono); letter-spacing: .06em; }
.article-arrow { color: var(--accent); font-size: 25px; text-align: right; transition: transform .2s ease; }
.article-row:hover .article-arrow { transform: translate(3px,-3px); }
.empty-articles { display: flex; align-items: center; gap: 38px; padding: 45px 0; border-bottom: 1px solid var(--line); }
.empty-articles-icon { width: 78px; height: 78px; flex: 0 0 78px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); font: 26px var(--mono); }
.empty-articles h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.035em; font-weight: 530; }
.empty-articles p { margin: 0; color: var(--muted); max-width: 580px; line-height: 1.7; font-size: 15px; }
.more-link { display: inline-flex; gap: 48px; align-items: center; margin-top: 34px; font: 13px var(--mono); color: var(--accent); padding-bottom: 10px; border-bottom: 1px solid rgba(194,245,141,.5); }
.more-link:hover { border-color: var(--accent); }
.more-link span { font-size: 20px; }

.section-contact { background: var(--accent); color: #152117; }
.contact-layout { display: grid; grid-template-columns: .34fr 1fr; gap: 11%; padding-block: clamp(90px,9vw,150px); }
.contact-layout > div:first-child { display: flex; align-items: baseline; gap: 20px; }
.section-contact .section-number, .section-contact .section-tag { color: #345a2d; }
.contact-kicker { font: 11px var(--mono); letter-spacing: .1em; font-weight: 650; margin: 0 0 35px; }
.contact-layout h2 { max-width: 900px; font-size: clamp(52px,6.8vw,106px); font-weight: 580; letter-spacing: -.066em; line-height: 1.05; margin: 0 0 33px; }
.contact-layout h2 em { font-style: normal; color: #528044; }
.contact-layout p:not(.contact-kicker) { max-width: 460px; line-height: 1.7; font-size: 17px; color: #385339; }
.contact-soon { display: inline-block; margin-top: 38px; color: #304f2b; font: 11px var(--mono); padding-bottom: 11px; border-bottom: 1px solid rgba(48,79,43,.45); }
.contact-soon span { margin-left: 10px; }

.site-footer { background: #0a0f0c; }
.footer-inner { min-height: 117px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.footer-brand { font-family: var(--mono); font-size: 17px; font-weight: 650; letter-spacing: -.04em; }
.footer-brand span { color: var(--accent); }
.footer-inner > span { font: 11px var(--mono); color: var(--dim); }
.back-top { font: 10px var(--mono); color: var(--accent); }
.footer-note { padding-block: 17px 26px; color: #67776a; font: 10px var(--mono); line-height: 1.7; }

/* Articles listing and individual articles. */
.inner-page { min-height: 100vh; }
.listing-page { min-height: calc(100vh - 230px); padding-block: clamp(92px,10vw,152px); }
.listing-page h1 { margin: 36px 0 23px; font-size: clamp(57px,7vw,105px); font-weight: 560; letter-spacing: -.07em; line-height: 1.06; }
.listing-page h1 em { font-style: normal; color: var(--accent); }
.listing-lead { max-width: 650px; margin: 0 0 65px; font-size: 18px; line-height: 1.8; color: var(--muted); }
.article-list { border-top: 1px solid var(--line-strong); margin-bottom: 60px; }
.back-link { margin-top: 12px; }
.article-page { max-width: 1040px; margin: 0 auto; padding: clamp(85px,9vw,150px) 28px 130px; }
.article-page header { border-bottom: 1px solid var(--line-strong); padding-bottom: 54px; margin-bottom: 70px; }
.article-page h1 { font-size: clamp(47px,6.4vw,87px); line-height: 1.1; letter-spacing: -.06em; font-weight: 560; margin: 30px 0; }
.article-page .article-excerpt { color: #bcc8bd; font-size: clamp(17px,2vw,23px); line-height: 1.65; max-width: 800px; }
.article-page .article-byline { display: flex; gap: 20px; flex-wrap: wrap; color: var(--dim); font: 11px var(--mono); margin-top: 28px; }
.article-content { max-width: 760px; color: #c5d0c5; font-size: 18px; line-height: 1.9; }
.article-content h2, .article-content h3 { color: var(--ink); line-height: 1.3; letter-spacing: -.04em; font-weight: 570; margin: 2.3em 0 .8em; }
.article-content h2 { font-size: 36px; }.article-content h3 { font-size: 26px; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.5em; }
.article-content ul, .article-content ol { padding-left: 27px; }
.article-content li { padding-left: 5px; margin-bottom: .45em; }
.article-content a { color: var(--accent); border-bottom: 1px solid rgba(194,245,141,.5); }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 3px 0 3px 25px; margin: 2em 0; color: var(--ink); font-style: italic; }
.article-content code { font: .84em var(--mono); color: var(--accent); }
.article-content pre { background: #08100a; border: 1px solid var(--line); padding: 25px; overflow-x: auto; margin: 2em 0; line-height: 1.65; }
.article-content pre code { color: #cbd7cc; font-size: 14px; }
.article-content img { height: auto; border: 1px solid var(--line); }
.article-content img[src$=".svg"] { display: block; width: 100%; border: 0; margin: 1.5em 0 .5em; }
.article-content p:has(> img[src^="/assets/asvs5-"]) { overflow-x: auto; scrollbar-color: #648d5a #101512; }
.article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 2em 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line-strong); padding: 12px 16px; text-align: left; }
.article-content th { color: var(--ink); background: var(--panel); }
.article-page-footer { margin-top: 75px; border-top: 1px solid var(--line); padding-top: 30px; }

/* Refined motion: terminal prompt, editorial reveal and reading progress.
   All content remains readable when scroll-driven animations are unavailable. */
@keyframes prompt-type { from { width: 0; } to { width: 16ch; } }
@keyframes caret-blink { 0%, 48% { border-color: var(--accent); } 49%, 100% { border-color: transparent; } }
@keyframes hero-enter { from { opacity: 0; translate: 0 25px; } to { opacity: 1; translate: 0 0; } }
@keyframes portrait-enter { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes cross-turn { to { transform: rotate(360deg); } }
@keyframes read-progress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes section-appear { from { opacity: .32; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

.hero h1 { animation: hero-enter .86s cubic-bezier(.22,1,.36,1) .22s both; }
.hero-description { animation: hero-enter .72s ease-out .4s both; }
.hero-actions { animation: hero-enter .72s ease-out .55s both; }
.hero-caption { animation: hero-enter .72s ease-out .68s both; }
.portrait-stage { animation: portrait-enter 1.15s cubic-bezier(.22,1,.36,1) .25s both; }

@supports (animation-timeline: scroll(root block)) {
  .top-rule { animation: read-progress linear both; animation-timeline: scroll(root block); }
}
@supports (animation-timeline: view()) {
  .section:not(.section-contact) .section-heading,
  .section:not(.section-contact) .section-title,
  .section-intro-grid > p,
  .about-content,
  .expertise-card,
  .work-step,
  .article-preview-list {
    animation: section-appear linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 16%;
  }
}

@media (max-width: 1120px) {
  .container { width: min(var(--max), calc(100% - 72px)); }
  .brand-name { display: none; }
  .hero-inner { min-height: 800px; }
  .hero-visual { right: -60px; top: 72px; width: 51%; }
  .hero h1 { font-size: clamp(73px,8vw,98px); }
  .hero-caption { margin-top: 45px; }
  .expertise-card { padding: 26px; }
  .strip-inner { gap: 15px; font-size: 9px; }
}
@media (max-width: 900px) {
  .hero-inner { min-height: 735px; padding-top: 92px; }
  .hero-visual { right: -50px; top: 125px; width: 58%; }
  .hero h1 { font-size: clamp(64px,8.9vw,83px); }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 25px; }
  .button-primary { padding: 0 17px; font-size: 12px; }
  .about-layout { gap: 50px; }
  .expertise-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-layout { gap: 7%; }
  .section-title { font-size: clamp(42px,5.5vw,65px); }
  .strip-inner { overflow: hidden; }
  .strip-inner > span:last-child { display: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 124px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 98px; align-items: stretch; justify-content: center; gap: 5px; flex-direction: column; padding-block: 13px 10px; }
  .brand { align-self: flex-start; gap: 10px; }
  .brand-name { display: inline; font-size: 12px; }
  .brand-mark { width: 29px; height: 29px; font-size: 16px; }
  .primary-nav { min-width: 0; max-width: 100%; align-self: stretch; gap: 22px; overflow-x: auto; padding: 5px 0 4px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { font-size: 11px; }
  .hero-inner { min-height: 0; padding-top: 70px; padding-bottom: 25px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 610px; margin-top: 31px; font-size: clamp(52px,10.9vw,77px); }
  .hero-description { max-width: 610px; font-size: 16px; margin-top: 240px; }
  .hero-actions { margin-top: 32px; }
  .hero-caption { margin-top: 36px; }
  .hero-visual { top: 245px; right: -25px; width: min(85%,480px); height: 440px; opacity: .8; }
  .portrait-stage { height: 100%; }
  .portrait-cutout { width: 100%; bottom: -22px; }
  .hero-bottom { padding-block: 17px; }
  .hero-bottom span { font-size: 9px; }
  .strip-inner { min-height: 48px; gap: 13px; }
  .strip-inner span:nth-of-type(n+6) { display: none; }
  .section { scroll-margin-top: 125px; }
  .section-shell { padding-block: 83px; }
  .section-heading { margin-bottom: 37px; }
  .section-title { font-size: clamp(40px,9vw,62px); }
  .about-layout, .section-intro-grid, .work-layout, .contact-layout { grid-template-columns: 1fr; gap: 29px; }
  .tiny-cross { display: none; }
  .about-content { padding-top: 4px; }
  .about-content p { font-size: 16px; }
  .about-content .lead { font-size: 20px; }
  .section-intro-grid { margin-bottom: 34px; }
  .section-intro-grid p { max-width: 580px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 250px; padding: 27px; }
  .card-top { margin-bottom: 30px; }
  .work-sticky { position: static; }
  .work-sticky p { margin: 20px 0 10px; }
  .work-steps { margin-top: 18px; }
  .work-step { padding-block: 28px 33px; }
  .empty-articles { gap: 18px; align-items: flex-start; }
  .empty-articles-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 17px; }
  .article-row { grid-template-columns: 1fr 24px; gap: 15px; }
  .article-date { grid-column: 1/-1; }
  .contact-layout { padding-block: 83px; }
  .contact-layout h2 { font-size: clamp(52px,10vw,80px); }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 30px; min-height: 0; }
  .footer-inner > span { order: 3; width: 100%; }
  .listing-page { padding-block: 80px; }
  .listing-page h1 { font-size: clamp(50px,10vw,78px); }
  .listing-lead { font-size: 16px; }
  .article-page { padding-inline: 20px; }
  .article-content { font-size: 16px; }
  .article-content img[src^="/assets/asvs5-"] { width: 900px; max-width: none; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 48px; }
  .hero-visual { top: 225px; right: -30px; width: 94%; height: 400px; }
  .hero-description { margin-top: 230px; }
  .hero-actions { gap: 22px; }
  .button-primary { width: 100%; justify-content: space-between; }
  .hero-caption { font-size: 10px; }
  .strip-inner { justify-content: flex-start; }
  .strip-inner span:nth-of-type(n+5) { display: none; }
  .work-step { grid-template-columns: 27px 1fr; gap: 15px; }
  .work-arrow { display: none; }
  .empty-articles-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; opacity: 1 !important; translate: none !important; scale: 1 !important; }
  .prompt-command { width: 16ch; border-right-color: transparent; }
}
