:root {
  --ink: #07151c;
  --ink-soft: #0b222b;
  --teal: #0b2b35;
  --cyan: #48c8d3;
  --coral: #ff6b4a;
  --paper: #f4f0e8;
  --paper-deep: #e7e1d7;
  --muted: #9fb0b3;
  --line-dark: rgba(244, 240, 232, .15);
  --line-light: rgba(7, 21, 28, .15);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.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: 1rem; top: -5rem; z-index: 200; padding: .8rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.is-scrolled { height: 68px; background: rgba(7, 21, 28, .97); border-color: var(--line-dark); }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--paper); text-decoration: none; }
.brand-word { color: inherit; font-weight: 800; font-size: 1.1rem; letter-spacing: .18em; }
.brand-mark { width: 22px; height: 22px; display: inline-block; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; left: -3px; bottom: -2px; background: var(--coral); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.5rem); font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--cyan); }
.site-nav a[aria-current="page"] { color: var(--cyan); }
.language-switch { display: inline-flex; align-items: center; gap: .38rem; padding: .35rem .55rem; border: 1px solid var(--line-dark); color: #77888b; font-size: .67rem; letter-spacing: .08em; }
.language-switch a { color: #77888b; }
.language-switch a[aria-current="page"] { color: var(--paper); }
.language-switch > span { opacity: .45; }
.nav-cta { padding: .75rem 1rem; border: 1px solid var(--line-dark); }
.menu-toggle { display: none; background: transparent; border: 0; padding: .7rem; color: inherit; }

.hero {
  position: relative;
  min-height: 720px;
  height: 100svh;
  max-height: 1040px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  align-items: end;
  padding: 10rem clamp(1.25rem, 7vw, 7rem) clamp(3rem, 7vh, 5rem);
  color: var(--paper);
  background: radial-gradient(circle at 82% 45%, #0e4350 0, var(--ink-soft) 26%, var(--ink) 62%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(3, 12, 17, .54)); pointer-events: none; }
.hero-visual { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 58%; background: url("../assets/rodus-network.webp") center / cover no-repeat; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.7) 24%, #000 43%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.7) 24%, #000 43%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-bottom: 2vh; }
.eyebrow, .section-kicker { margin: 0 0 1.6rem; color: var(--cyan); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .75rem; }
.eyebrow span { width: 38px; height: 1px; background: var(--coral); }
.hero-display-wordmark { display: inline-block; margin: 0 0 1.8rem; color: var(--paper); font-size: clamp(4.2rem, 7.8vw, 8rem); font-weight: 760; letter-spacing: -.065em; line-height: .82; }
.hero-display-wordmark > span { position: relative; }
.hero-display-wordmark > span::after { content: ""; position: absolute; left: .02em; bottom: .02em; width: .14em; height: .14em; background: var(--coral); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hero h1, .section h2 { margin: 0; letter-spacing: -.055em; line-height: .95; font-weight: 680; }
.hero h1 { max-width: 720px; font-size: clamp(3.1rem, 5.5vw, 5.8rem); line-height: 1; }
.hero h1 em { color: var(--paper); font-family: inherit; font-style: normal; font-weight: inherit; }
.hero h1 .hero-period { color: var(--coral); }
.approach h2 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 690px; margin: 2.2rem 0 0; color: #c3cfd0; font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.3rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.2rem; min-width: 225px; padding: 1rem 1.1rem; text-decoration: none; font-size: .82rem; font-weight: 750; letter-spacing: .04em; }
.button-primary { background: var(--coral); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--paper); }
.text-link { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding: .75rem 0; font-size: .82rem; font-weight: 650; }
.text-link span { margin-left: .5rem; color: var(--cyan); }
.hero-index { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); }
.hero-index div { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); }
.hero-index span { color: var(--coral); font-size: .68rem; }
.hero-index strong { font-size: .85rem; font-weight: 550; letter-spacing: .02em; }
.hero-orbit { position: absolute; right: -5vw; top: 17%; width: min(43vw, 650px); aspect-ratio: 1; opacity: .8; }
.orbit { position: absolute; inset: 50%; border: 1px solid rgba(72, 200, 211, .28); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 34%; height: 34%; }
.orbit-two { width: 61%; height: 61%; }
.orbit-three { width: 91%; height: 91%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; left: 5%; right: 5%; top: 50%; height: 1px; background: rgba(72, 200, 211, .2); transform: rotate(-24deg); }
.hero-orbit::after { transform: rotate(38deg); }
.signal { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px rgba(72,200,211,.12); }
.signal-one { left: 48%; top: 48%; background: var(--coral); box-shadow: 0 0 24px var(--coral); }
.signal-two { left: 17%; top: 37%; }
.signal-three { right: 12%; bottom: 29%; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem); }
.intro { display: grid; grid-template-columns: 1fr 2.4fr; gap: 2rem; max-width: var(--max); margin: 0 auto; }
.section h2 { font-size: clamp(3rem, 5.8vw, 6rem); }
.intro-copy p { max-width: 800px; margin: 2rem 0 0; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.55; color: #3b4b4f; }
.metric-row { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line-light); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.metric { background: var(--paper); padding: 2rem 1.5rem 2rem 0; }
.metric + .metric { padding-left: 1.5rem; }
.metric strong { display: block; font-size: clamp(2.4rem, 4vw, 4.2rem); font-weight: 550; letter-spacing: -.06em; line-height: 1; }
.metric span { display: block; margin-top: .8rem; max-width: 210px; color: #59686b; font-size: .78rem; }

.expertise { background: var(--ink); color: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(250px, 420px); gap: 3rem; align-items: end; max-width: var(--max); margin: 0 auto 4rem; }
.section-heading > p { margin: 0 0 .3rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.capability-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line-dark); }
.capability { display: grid; grid-template-columns: 60px 1fr minmax(210px, .7fr); gap: 2rem; align-items: center; padding: 2.2rem 0; border-bottom: 1px solid var(--line-dark); }
.capability-number { color: var(--coral); font-size: .7rem; align-self: start; padding-top: .45rem; }
.capability h3 { margin: 0 0 .8rem; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 560; letter-spacing: -.03em; }
.capability p { max-width: 680px; margin: 0; color: var(--muted); }
.capability-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.capability-tags span, .project-labels span { padding: .4rem .65rem; border: 1px solid var(--line-dark); color: #c6d0d1; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; }

.work { background: var(--paper-deep); }
.project-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.project { position: relative; min-height: 430px; padding: clamp(1.5rem, 4vw, 3.4rem); background: var(--paper); display: flex; flex-direction: column; overflow: hidden; }
.project-featured { background: var(--teal); color: var(--paper); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid currentColor; opacity: .65; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.project h3 { max-width: 520px; margin: auto 0 1.2rem; font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 580; }
.project p { max-width: 590px; margin: 0 0 1.5rem; color: #627074; }
.project-featured p { color: var(--muted); }
.project-labels { display: flex; gap: .5rem; flex-wrap: wrap; }
.project:not(.project-featured) .project-labels span { border-color: var(--line-light); color: #59686b; }
.project-map { position: absolute; inset: 15% -5% auto 30%; height: 47%; opacity: .38; background-image: linear-gradient(rgba(72,200,211,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(72,200,211,.25) 1px, transparent 1px); background-size: 38px 38px; transform: rotate(-7deg); }
.project-map::before, .project-map::after { content: ""; position: absolute; border: 1px solid var(--cyan); border-radius: 50%; }
.project-map::before { width: 150px; height: 150px; right: 12%; top: 7%; }
.project-map::after { width: 44px; height: 44px; right: calc(12% + 53px); top: 60px; background: rgba(255,107,74,.4); border-color: var(--coral); }
.project-image { padding: 0; min-height: 430px; color: white; }
.project-image picture { position: absolute; inset: 0; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); transform: scale(1.05); }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,21,28,.1), rgba(7,21,28,.84)); }
.project-image-overlay { position: relative; z-index: 1; margin-top: auto; padding: 3rem; }
.project-image-overlay span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.project-image-overlay h3 { margin-top: 1rem; }

.approach { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 8rem); }
.approach h2 { font-size: clamp(3rem, 5.5vw, 5.5rem); }
.approach-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-light); }
.approach-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-light); }
.approach-steps li > span { color: var(--coral); font-size: .7rem; padding-top: .25rem; }
.approach-steps h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.approach-steps p { margin: 0; color: #59686b; font-size: .9rem; }
.about-strip { padding: 2.4rem clamp(1.25rem, 7vw, 7rem); background: var(--cyan); color: var(--ink); }
.about-strip p { max-width: var(--max); margin: 0 auto; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.45; }
.about-strip a { text-underline-offset: .18em; }

.contact { text-align: center; background: var(--ink); color: var(--paper); }
.contact .section-kicker { margin-bottom: 2rem; }
.contact h2 { font-size: clamp(3.4rem, 7.5vw, 7.8rem); }
.contact-note { max-width: 680px; margin: 2rem auto 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.contact-link { display: inline-flex; gap: 2rem; align-items: center; margin-top: 3rem; padding-bottom: .45rem; border-bottom: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.contact-link:hover, .contact-link:focus-visible { color: var(--paper); border-color: var(--coral); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 2fr; align-items: center; gap: 2rem; padding: 2.2rem clamp(1.25rem, 7vw, 7rem); background: #041014; color: #94a3a6; border-top: 1px solid var(--line-dark); font-size: .72rem; }
.footer-brand { color: var(--paper); }
.site-footer p { margin: 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.5rem; }
.footer-links a { color: var(--paper); text-decoration: none; }

/* Projects page */
.projects-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 11rem clamp(1.25rem, 7vw, 7rem) 6rem;
  color: var(--paper);
  background: radial-gradient(circle at 80% 38%, #0e4350 0, var(--ink-soft) 27%, var(--ink) 66%);
}
.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  opacity: .18;
  background-image: linear-gradient(rgba(72,200,211,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(72,200,211,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.projects-hero-copy { position: relative; z-index: 1; max-width: 1040px; }
.projects-hero h1 { max-width: 980px; margin: 0; font-size: clamp(3.8rem, 7.4vw, 7.4rem); letter-spacing: -.055em; line-height: .94; font-weight: 680; }
.projects-hero h1 em { color: var(--coral); font-family: Georgia, serif; font-style: normal; font-weight: 400; }
.projects-hero-copy > p:last-child { max-width: 760px; margin: 2rem 0 0; color: #c3cfd0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.7; }
.portfolio-intro { max-width: var(--max); margin: 0 auto 4rem; display: grid; grid-template-columns: 1fr 2.1fr; gap: 2rem; }
.portfolio-intro h2 { max-width: 850px; }
.portfolio-intro .hero-lede { color: #48595d; }
.portfolio-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.portfolio-card { min-height: 390px; padding: clamp(1.6rem, 3.7vw, 3rem); background: var(--paper); display: flex; flex-direction: column; }
.portfolio-card:nth-child(4n+1), .portfolio-card:nth-child(4n+4) { background: var(--teal); color: var(--paper); }
.portfolio-card .project-meta { margin-bottom: 2.5rem; }
.portfolio-card h3 { max-width: 560px; margin: auto 0 1.2rem; font-size: clamp(1.65rem, 2.8vw, 2.5rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 580; }
.portfolio-card p { max-width: 590px; margin: 0 0 1.6rem; color: #627074; }
.portfolio-card:nth-child(4n+1) p, .portfolio-card:nth-child(4n+4) p { color: var(--muted); }
.portfolio-card:nth-child(4n+1) .project-labels span, .portfolio-card:nth-child(4n+4) .project-labels span { border-color: var(--line-dark); color: #c6d0d1; }
.portfolio-card:not(:nth-child(4n+1)):not(:nth-child(4n+4)) .project-labels span { border-color: var(--line-light); color: #59686b; }
.portfolio-note { max-width: var(--max); margin: 2rem auto 0; color: #59686b; font-size: .8rem; }
.portfolio-toggle { display: none; width: 100%; max-width: var(--max); margin: 1.5rem auto 0; padding: 1rem 1.1rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-align: left; cursor: pointer; }
.portfolio-toggle span { float: right; }
.project-more { max-width: var(--max); margin: 2.2rem auto 0; display: flex; justify-content: flex-end; }
.project-more .button { min-width: 250px; border: 1px solid var(--ink); }
.project-more .button:hover, .project-more .button:focus-visible { color: var(--paper); background: var(--ink); }

/* About page */
.about-hero { position: relative; min-height: 760px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); overflow: hidden; padding: 10rem clamp(1.25rem, 7vw, 7rem) 6rem; color: var(--paper); background: radial-gradient(circle at 75% 40%, #0e4350 0, var(--ink-soft) 26%, var(--ink) 65%); }
.about-hero-grid { position: absolute; inset: 0 0 0 48%; opacity: .13; background-image: linear-gradient(rgba(72,200,211,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(72,200,211,.45) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent, black); }
.about-hero-copy { position: relative; z-index: 1; }
.about-hero h1 { max-width: 930px; margin: 0; font-size: clamp(3.8rem, 7.4vw, 7.4rem); letter-spacing: -.055em; line-height: .96; font-weight: 680; }
.about-hero h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.about-hero-copy > p:last-child { max-width: 760px; margin: 2.2rem 0 0; color: #c3cfd0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.7; }
.identity-card { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.6rem); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.identity-logo-wrap { padding: clamp(1.8rem, 4vw, 3.6rem); background: white; border: 1px solid var(--line-light); }
.identity-logo-wrap img { width: 100%; max-width: 250px; margin: 0 auto; }
.identity-card-copy { display: grid; gap: .2rem; padding-top: 1.6rem; border-top: 3px solid var(--coral); }
.identity-card-copy strong { margin-bottom: .5rem; font-size: 1.05rem; }
.identity-card-copy span { color: #59686b; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.about-story { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2.5fr; gap: 3rem; }
.about-story h2 { max-width: 900px; font-size: clamp(3rem, 5.3vw, 5.6rem); }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; color: #48595d; font-size: 1.05rem; line-height: 1.8; }
.story-columns p { margin: 0; }

.founder { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: clamp(3rem, 10vw, 9rem); }
.founder-intro, .founder-body { width: 100%; max-width: 620px; }
.founder-intro { justify-self: end; }
.founder-intro h2 { font-size: clamp(3.5rem, 6vw, 6rem); }
.founder-facts { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.founder-facts li { padding: .5rem .7rem; border: 1px solid var(--line-dark); color: #c6d0d1; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.founder-body { justify-self: start; }
.founder-body p { color: var(--muted); line-height: 1.8; }
.founder-body .founder-lede { margin-top: 0; color: var(--paper); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.55; }
.founder-link { display: inline-flex; margin-top: 1.5rem; }
.founder-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

.journey { background: var(--paper-deep); }
.journey-heading, .timeline { max-width: var(--max); margin-left: auto; margin-right: auto; }
.timeline { list-style: none; padding: 0; border-top: 1px solid var(--line-light); }
.timeline li { display: grid; grid-template-columns: minmax(120px, .35fr) 1.5fr; gap: 2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line-light); }
.timeline-year { color: var(--coral); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.timeline h3 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.timeline p { max-width: 760px; margin: 0; color: #59686b; }

.principles { max-width: var(--max); margin: 0 auto; }
.principles-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.principle-grid article { min-height: 330px; padding: 2.2rem; background: var(--paper); display: flex; flex-direction: column; }
.principle-grid article > span { color: var(--coral); font-size: .7rem; }
.principle-grid h3 { margin: auto 0 1rem; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.15; letter-spacing: -.03em; }
.principle-grid p { margin: 0; color: #59686b; }

/* Error page */
.error-page { min-height: 100vh; background: var(--ink); color: var(--paper); }
.error-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 1100px; padding: 5rem clamp(1.5rem, 8vw, 7rem); }
.error-main .brand { align-self: flex-start; margin-bottom: 5rem; }
.error-main h1 { max-width: 900px; margin: 0; font-size: clamp(3.5rem, 8vw, 7.8rem); line-height: .94; letter-spacing: -.055em; }
.error-main h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.error-main > p:not(.section-kicker) { max-width: 620px; color: var(--muted); }

@media (min-width: 1081px) and (max-height: 800px) {
  html[lang="es"] .hero-display-wordmark { margin-bottom: 1.2rem; }
  html[lang="es"] .hero h1 { font-size: clamp(3rem, 4.8vw, 5rem); }
  html[lang="es"] .hero-lede { margin-top: 1.4rem; line-height: 1.5; }
  html[lang="es"] .hero-actions { margin-top: 1.5rem; }
}

@media (max-width: 1080px) {
  html.menu-open, body.menu-open { overflow: hidden; }
  .site-header { height: 72px; }
  .menu-toggle { display: block; position: relative; z-index: 2; width: 44px; height: 44px; }
  .menu-toggle span:not(.sr-only) { position: absolute; left: 10px; width: 24px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle span:first-child { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .site-nav { position: fixed; z-index: 1; top: 0; right: 0; bottom: auto; left: 0; width: 100%; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: max(7rem, calc(env(safe-area-inset-top) + 5rem)) max(2rem, env(safe-area-inset-right)) max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem)) max(2rem, env(safe-area-inset-left)); background: var(--ink); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-100%); transition: transform .28s ease, opacity .18s ease, visibility 0s linear .28s; font-size: 1.3rem; }
  .language-switch { font-size: .8rem; }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .nav-cta { margin-top: 1rem; }
  .hero { height: auto; min-height: 850px; grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-index { margin-top: 3rem; }
  .hero-visual { width: 75%; opacity: .62; }
  .intro { grid-template-columns: 1fr; }
  .metric-row { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .capability { grid-template-columns: 44px 1fr; }
  .capability-tags { grid-column: 2; justify-content: flex-start; }
  .approach { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .portfolio-intro { grid-template-columns: 1fr; }
  .identity-card { max-width: 430px; }
  .about-story { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-intro, .founder-body { max-width: none; justify-self: auto; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 260px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero { min-height: 780px; padding-bottom: 2rem; }
  .hero-display-wordmark { font-size: clamp(4rem, 20vw, 5.8rem); }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-visual { width: 100%; opacity: .36; -webkit-mask-image: linear-gradient(180deg, #000, transparent 86%); mask-image: linear-gradient(180deg, #000, transparent 86%); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .text-link { align-self: flex-start; }
  .hero-index div { padding: .95rem 0; }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .section h2 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .metric-row { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 1.5rem 0; }
  .capability { gap: .6rem; padding: 1.7rem 0; }
  .capability p { font-size: .9rem; }
  .project-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid:not(.is-expanded) .portfolio-secondary { display: none; }
  .portfolio-toggle { display: block; }
  .portfolio-card { min-height: 370px; }
  .project-more { justify-content: stretch; }
  .project-more .button { width: 100%; }
  .project { min-height: 390px; }
  .project-image-overlay { padding: 1.5rem; }
  .about-hero { min-height: auto; padding-bottom: 4rem; }
  .about-hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .story-columns { grid-template-columns: 1fr; gap: 1rem; }
  .timeline li { grid-template-columns: 1fr; gap: .75rem; }
  .contact h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .contact-link { gap: 1rem; }
}

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