:root {
  color-scheme: dark;
  --ground: #17191d;
  --surface: #1e2025;
  --surface-soft: #202733;
  --text: #f0f4f9;
  --muted: #b3becb;
  --line: #353940;
  --line-strong: #4d5663;
  --blue: #5fa8ff;
  --blue-strong: #89beff;
  --blue-soft: #173654;
  --yellow: #6d654f;
  --shadow: 0 16px 32px -19px rgba(0,0,0,.45);
  --display: 'Space Grotesk', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.55 var(--body); transition: background .22s, color .22s; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue-soft); color: var(--text); }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
button { font: inherit; }
a,button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 30; padding: .7rem 1rem; background: var(--blue-soft); color: var(--text); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font: 700 .94rem/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.wordmark span:not(.brand-symbol) { font-weight: 500; }
.brand-symbol { color: var(--blue-strong); font-size: 1.3rem; line-height: 0; margin-right: .15rem; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; font-size: .78rem; font-weight: 700; }
.site-nav a:not(.nav-contact) { padding: .5rem .1rem; }
.site-nav a:not(.nav-contact):hover { color: var(--blue-strong); }
.nav-contact { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 9px; padding: .55rem .82rem; font-size: .76rem; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.nav-contact:hover { border-color: var(--blue); color: var(--blue-strong); }
.nav-contact span { margin-left: .45rem; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); align-items: center; gap: clamp(2.5rem,7vw,7rem); padding-block: clamp(3.6rem,8vw,8rem) clamp(4.2rem,7vw,6.8rem); }
.hero-copy { max-width: 800px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--display); letter-spacing: -.033em; line-height: 1.16; }
h1 { max-width: 21ch; margin-bottom: 1.4rem; font-size: clamp(2.9rem,5vw,5.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
h1 span { background: linear-gradient(transparent 92%,var(--yellow) 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-intro { max-width: 64ch; margin-bottom: 1.8rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.hero-proof { max-width: 55ch; margin: 2.8rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--text); font-size: .78rem; font-weight: 700; line-height: 1.7; }
.hero-proof span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .75rem; font-weight: 500; }
.hero-portrait { position: relative; justify-self: end; width: min(100%,370px); margin: 0; padding: .75rem .75rem 0; background: var(--surface-soft); border-radius: 16px 16px 0 0; }
.hero-portrait::before { content: ''; position: absolute; z-index: -1; top: -1.1rem; right: -1.1rem; width: 42%; height: 40%; background: var(--yellow); border-radius: 16px; }
.hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px 9px 0 0; filter: grayscale(1); }
.hero-portrait figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; padding: .7rem 0 .8rem; font-size: .72rem; }
.hero-portrait figcaption strong { font-family: var(--display); font-size: .88rem; }
.hero-portrait figcaption span { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 1.5rem; padding: .65rem .9rem; border-radius: 9px; font-size: .8rem; font-weight: 800; line-height: 1.2; }
.button-primary { background: #196ddc; color: #fff; border: 1px solid #196ddc; }
.button-primary:hover { background: #1554af; border-color: #1554af; }
.button-outline { background: var(--surface); border: 1px solid var(--line-strong); }
.button-outline:hover { color: var(--blue-strong); border-color: var(--blue); }
.section { padding-block: 4.6rem; border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(0,1.2fr); gap: clamp(2rem,6vw,6rem); }
h2 { font-size: clamp(1.85rem,2.9vw,2.7rem); font-weight: 700; margin-bottom: .65rem; }
.period { color: var(--blue-strong); }
.section-lead>p,.section-top p,.possibilities-inner>div:first-child p { max-width: 58ch; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.text-link,.project-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--blue-strong); font-size: .8rem; font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: .12rem; }
.text-link:hover,.project-link:hover { color: var(--text); }
.section-lead>.text-link { margin-top: .75rem; }
.focus-explorer { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.focus-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.focus-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; padding: 1rem .85rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font: 700 .85rem/1.3 var(--display); transition: color .2s,background .2s,border-color .2s; }
.focus-tabs button+button { border-left: 1px solid var(--line); }
.focus-tabs button span { color: var(--blue-strong); font-size: 1.1rem; }
.focus-tabs button:hover { color: var(--text); background: var(--surface-soft); }
.focus-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue-strong); background: var(--blue-soft); }
.focus-content { min-height: 355px; padding: clamp(1.4rem,3vw,2.5rem) .9rem; }
.focus-panel[hidden] { display: none; }
.focus-panel { animation: focus-enter .35s cubic-bezier(.16,1,.3,1) both; }
.focus-panel h3 { max-width: 29ch; margin-bottom: .8rem; font-size: clamp(1.4rem,2vw,1.95rem); }
.focus-panel p { max-width: 64ch; margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; }
.focus-panel ul { display: grid; gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.focus-panel li { position: relative; padding-left: 1.35rem; font-size: .84rem; line-height: 1.5; }
.focus-panel li::before { content: '•'; position: absolute; left: .1rem; color: var(--blue-strong); font-size: 1.2rem; line-height: 1; }
.focus-context { display: inline-block; padding: .4rem .65rem; background: #39382f; color: #e2d8bc; border: 1px solid #5b5646; border-radius: 5px; font-size: .75rem; font-weight: 700; }
@keyframes focus-enter { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.work { background: var(--surface-soft); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-top h2 { margin-bottom: .5rem; }
.section-top p { margin-bottom: 0; }
.section-top .text-link { white-space: nowrap; margin-bottom: .35rem; }
.work-layout { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: repeat(2,auto); gap: .8rem; }
.project { display: flex; flex-direction: column; justify-content: space-between; min-height: 218px; padding: 1.3rem 1.45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.project-featured { grid-row: span 2; min-height: 450px; border-color: var(--blue); }
.project-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--blue-strong); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-top>span:last-child { font-size: 1rem; line-height: 1; }
.project h3 { max-width: 22ch; margin: 0 0 .7rem; font-size: clamp(1.4rem,2vw,1.95rem); }
.project p { max-width: 60ch; margin: 0 0 .9rem; color: var(--muted); font-size: .89rem; line-height: 1.58; }
.project-schematic { display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--text); font: 700 .86rem/1 var(--display); }
.project-schematic b { font-weight: 500; color: var(--blue-strong); }
.project-tertiary { background: var(--blue-soft); }
.experience { background: var(--ground); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 95px 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: .15rem; color: var(--blue-strong); font: 700 .7rem/1.4 var(--display); white-space: nowrap; }
.timeline h3 { font-size: 1rem; margin-bottom: .35rem; }
.timeline h3 span { color: var(--muted); font: 500 .77rem/1.35 var(--body); letter-spacing: 0; }
.timeline p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.timeline-entry > p + p { margin-top: .55rem; }
.timeline-entry { min-width: 0; }
.experience-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.experience-brand h3 { margin: 0; }
.company-logo { display: block; flex: 0 0 auto; max-width: 112px; max-height: 32px; object-fit: contain; }
.logo-realme { width: 72px; height: auto; opacity: .88; }
.logo-casa { width: 110px; height: 31px; padding: 3px 7px; background: #fff; border-radius: 4px; }
.logo-mirgor { width: 86px; height: 31px; }
.logo-aliafor { width: 78px; height: 30px; object-fit: contain; }
.role-list { display: grid; gap: .9rem; margin-top: .9rem; }
.role { padding-left: .85rem; border-left: 1px solid var(--line-strong); }
.role-date { color: var(--blue-strong); font: 700 .68rem/1.4 var(--display); }
.role h4 { margin: .16rem 0 .25rem; font: 700 .83rem/1.35 var(--display); letter-spacing: -.01em; }
.store-map { display: flex; align-items: center; gap: .35rem; margin-top: 1.2rem; padding: 1rem; background: var(--surface); border-radius: 12px; }
.store-map-source,.store-map-end { flex: 0 0 auto; padding: .5rem .58rem; border: 1px solid var(--line-strong); border-radius: 6px; font: 700 .68rem/1.25 var(--display); white-space: nowrap; }
.store-map-end { color: var(--blue-strong); border-color: var(--blue); }
.store-map-line { flex: 1 1 18px; min-width: 12px; height: 1px; background: var(--blue); }
.store-map-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; max-width: 320px; }
.store-map-stores span { padding: .31rem .45rem; background: var(--blue-soft); border-radius: 4px; color: var(--text); font: 600 .65rem/1.2 var(--body); white-space: nowrap; }
.timeline .store-map-note { margin-top: .3rem; font-size: .68rem; }
.possibilities { background: var(--surface-soft); }
.possibilities-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,6vw,6rem); }
.possibilities-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.possibilities-columns>div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; }
.possibilities-columns h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.possibilities-columns p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.contact { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact h2 { margin-bottom: .35rem; font-size: 1.55rem; }
.contact p { margin: 0; color: var(--muted); font-size: .86rem; }
.contact-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.contact-actions .button { min-height: 40px; }
.copy-email { min-height: 40px; padding: .55rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .76rem; font-weight: 700; }
.copy-email:hover { border-color: var(--blue); color: var(--blue-strong); }
.copy-email span { margin-left: .45rem; }
.copy-feedback { flex-basis: 100%; min-height: 1em; color: var(--blue-strong); font-size: .7rem; text-align: right; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 66px; font-size: .71rem; }
.footer-inner>div { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.footer-inner a:hover { color: var(--blue-strong); }
.analytics-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.analytics-settings:hover { color: var(--blue-strong); }
.analytics-consent[hidden] { display: none; }
.analytics-consent { position: fixed; z-index: 50; left: max(1rem, calc((100vw - 1100px)/2)); right: max(1rem, calc((100vw - 1100px)/2)); bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.analytics-consent p { margin: 0; max-width: 650px; font-size: .78rem; line-height: 1.5; }
.analytics-consent a { color: var(--blue-strong); text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.analytics-consent-actions button { padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 700 .72rem var(--body); cursor: pointer; }
.analytics-consent-actions button:last-child { border-color: var(--blue); background: var(--blue); color: #102032; }
.analytics-consent-actions button:hover { filter: brightness(.95); }
.privacy-content { max-width: 760px; padding-block: 4rem; }
.privacy-content h1 { font-size: clamp(2rem,4vw,3rem); }
.privacy-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.privacy-content p,.privacy-content li { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.privacy-content a { color: var(--blue-strong); text-decoration: underline; }
@media (max-width: 950px) {
  .hero { grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); gap: 2rem; }
  h1 { font-size: clamp(2.6rem,5vw,4rem); }
  .section-grid,.possibilities-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 2rem,1280px); }
  .header-inner { min-height: 62px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 36px; padding: 8px; order: 2; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
  .menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); }
  .site-nav { display: none; position: absolute; top: 61px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .1rem; padding: 1rem; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.nav-contact) { padding: .6rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 2.5rem; padding-block: 3.2rem 3.8rem; }
  h1 { font-size: clamp(2.8rem,9vw,4.2rem); }
  .hero-intro { font-size: .9rem; }
  .hero-proof { margin-top: 2rem; }
  .hero-portrait { align-self: center; width: min(100% - 1rem,390px); }
  .section { padding-block: 3.6rem; }
  .focus-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .focus-tabs::-webkit-scrollbar { display: none; }
  .focus-tabs button { flex: 0 0 45%; min-width: 150px; min-height: 66px; scroll-snap-align: start; font-size: .78rem; }
  .focus-content { min-height: 420px; }
  .section-top { display: block; }
  .section-top .text-link { margin-top: .75rem; }
  .work-layout { display: block; }
  .project,.project-featured { min-height: 230px; margin-bottom: .8rem; }
  .project-featured { min-height: 390px; }
  .possibilities-columns { grid-template-columns: 1fr; }
  .store-map { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .store-map-line { flex: none; width: 1px; min-width: 0; height: 12px; margin-left: 1.4rem; }
  .store-map-stores { max-width: 100%; justify-content: flex-start; }
  .contact { padding-block: 2.5rem; }
  .footer-inner { display: block; padding-block: 1.2rem; }
  .footer-inner>div { margin-top: .4rem; }
  .analytics-consent { flex-direction: column; align-items: stretch; gap: .8rem; }
  .analytics-consent-actions { justify-content: flex-end; flex-wrap: wrap; }
  .privacy-content { padding-block: 2.5rem; }
}
@media (max-width: 450px) {
  .focus-tabs button { flex-basis: 60%; }
  .focus-content { min-height: 470px; }
  .timeline li { grid-template-columns: 1fr; gap: .3rem; }
  .timeline h3 span { display: block; margin-top: .2rem; }
  .experience-brand { align-items: flex-start; }
  .company-logo { max-width: 74px; }
  .logo-casa { width: 73px; }
  .store-map-source,.store-map-end { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
