:root {
  --ink: #0b151c;
  --ink-soft: #132630;
  --paper: #f4f7f6;
  --orange: #ef5533;
  --cyan: #67d6df;
  --line: #dce5e5;
  --muted: #62747c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portfolio-page { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 Inter, Manrope, Arial, sans-serif; }
.portfolio-page a { color: inherit; text-decoration: none; }
.portfolio-page button { font: inherit; }
.portfolio-page .wb-header nav>a,
.portfolio-page .wb-header summary { color: #253944; }
.portfolio-page .wb-header .wb-mega-panel a { color: #203540; }
.portfolio-page .wb-header .wb-mega-label { color: #738691; }
.portfolio-page .wb-header .wb-mega-panel small { color: #61747e; }
.portfolio-page .wb-header .wb-mega-panel a:hover { color: #203540; }
.portfolio-page .wb-skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 4px; background: #fff; color: var(--ink); }
.portfolio-page .wb-skip:focus { transform: translateY(0); }

.eyebrow { margin: 0 0 17px; color: var(--orange); font: 700 10px/1.5 "Ubuntu Mono", monospace; letter-spacing: .17em; }
.eyebrow span { color: var(--cyan); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); column-gap: clamp(35px, 5vw, 76px); align-items: center; min-height: 710px; padding: 74px max(32px, calc((100% - 1280px)/2)) 34px; overflow: hidden; background: var(--ink); color: #f5f8f8; }
.hero:before { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(ellipse at 78% 42%, rgba(31,103,119,.36), transparent 34%), radial-gradient(ellipse at 12% 85%, rgba(239,85,51,.12), transparent 30%); }
.hero:after { position: absolute; z-index: -1; top: -370px; right: -230px; width: 780px; height: 780px; content: ""; border: 1px solid rgba(103,214,223,.12); border-radius: 50%; box-shadow: 0 0 0 56px rgba(103,214,223,.025), 0 0 0 112px rgba(103,214,223,.02); }
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero h1 { margin: 0; font-size: clamp(43px, 5.6vw, 76px); line-height: .98; letter-spacing: -.067em; }
.hero h1 em,.section h2 em,.statement h2 em { color: var(--cyan); font-style: normal; }
.lead { max-width: 500px; margin: 25px 0 30px; color: #b5c7cd; font-size: 16px; line-height: 1.8; }
.cta { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 19px; border: 1px solid var(--orange); border-radius: 7px; background: var(--orange); color: #fff !important; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239,85,51,.27); }
.cta:focus-visible,.portfolio-page button:focus-visible,.portfolio-page a:focus-visible { outline: 3px solid #68d6e1; outline-offset: 3px; }

/* Project wall: a layered, CSS-only 3D display of already public domains. */
.portfolio-scene { position: relative; min-width: 0; width: 100%; height: clamp(370px, 38vw, 490px); perspective: 1100px; transform-style: preserve-3d; transform: rotateX(var(--scene-x,0deg)) rotateY(var(--scene-y,0deg)); transition: transform .24s ease-out; }
.scene-topline,.scene-base { position: absolute; z-index: 8; left: 3%; right: 3%; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #91aab2; font: 700 9px "Ubuntu Mono", monospace; letter-spacing: .12em; }
.scene-topline { top: 3%; }
.scene-topline span { display: inline-flex; align-items: center; gap: 8px; color: #d5e6e9; }
.scene-topline i { width: 7px; height: 7px; border-radius: 50%; background: #58d2bd; box-shadow: 0 0 12px #58d2bd; }
.scene-depth { position: absolute; inset: 12% 2% 13%; transform-style: preserve-3d; }
.client-screen { position: absolute; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid rgba(150,206,216,.4); border-radius: 12px; background: linear-gradient(145deg, #1c3440, #10212a 74%); box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08); color: #eef6f7; }
.client-screen:before { position: absolute; inset: 0; content: ""; opacity: .5; background: linear-gradient(125deg, rgba(105,218,229,.14), transparent 42%), repeating-linear-gradient(0deg, transparent 0 36px, rgba(151,199,207,.055) 37px 38px); }
.client-screen > * { position: relative; }
.client-screen small { color: #8eafb8; font: 700 8px "Ubuntu Mono", monospace; letter-spacing: .13em; }
.client-screen strong { font-size: clamp(15px, 1.6vw, 22px); letter-spacing: -.045em; }
.client-screen > span { color: #9bb4bb; font: 700 8px "Ubuntu Mono", monospace; letter-spacing: .08em; }
.screen-back { top: 12%; width: 42%; height: 54%; padding: 19px; opacity: .68; }
.screen-back-left { left: 2%; transform: translateZ(-100px) rotateY(19deg) rotateZ(-5deg); }
.screen-back-right { right: 1%; transform: translateZ(-115px) rotateY(-18deg) rotateZ(5deg); }
.screen-side { top: 25%; width: 40%; height: 58%; padding: 18px; opacity: .9; }
.screen-side-left { left: 0; transform: translateZ(5px) rotateY(18deg) rotateZ(-4deg); }
.screen-side-right { right: 0; transform: translateZ(8px) rotateY(-17deg) rotateZ(4deg); }
.screen-front { top: 8%; left: 17%; width: 66%; height: 77%; padding: 0; transform: translateZ(90px) rotateY(-3deg) rotateX(1deg); border-color: rgba(137,223,231,.64); box-shadow: 0 36px 68px rgba(0,0,0,.48), 0 0 40px rgba(56,194,208,.12); }
.screen-toolbar { height: 35px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #38525d; background: #0b1c24; }
.screen-toolbar > span { width: 6px; height: 6px; border-radius: 50%; background: #e36549; }
.screen-toolbar > span:nth-child(2) { background: #e8ba5c; }
.screen-toolbar > span:nth-child(3) { background: #69c99f; }
.screen-toolbar small { margin-left: auto; color: #75939d; font: 8px "Ubuntu Mono", monospace; }
.screen-content { display: flex; flex-direction: column; height: calc(100% - 35px); padding: clamp(19px, 3vw, 34px); background: radial-gradient(ellipse at 72% 28%, rgba(35,111,125,.28), transparent 44%), linear-gradient(145deg,#122832,#0d1b23); }
.screen-kicker { margin-bottom: 13px; color: #73d4de; font: 700 8px "Ubuntu Mono", monospace; letter-spacing: .13em; }
.screen-line { height: 10px; margin-bottom: 7px; border-radius: 2px; background: linear-gradient(90deg,#deecee,rgba(222,236,238,.2)); }
.screen-line-long { width: 76%; }
.screen-line-mid { width: 49%; height: 6px; opacity: .7; }
.screen-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: auto 0 18px; }
.screen-blocks i { height: clamp(45px, 6vw, 75px); border: 1px solid #31505c; border-radius: 5px; background: linear-gradient(145deg,rgba(105,214,223,.16),rgba(255,255,255,.025)); box-shadow: inset 0 0 22px rgba(103,214,223,.04); }
.screen-blocks i:nth-child(2) { transform: translateY(-6px); border-color: #9b654e; background: linear-gradient(145deg,rgba(239,85,51,.2),rgba(255,255,255,.025)); }
.screen-footer { display: flex; justify-content: space-between; gap: 7px; padding-top: 12px; border-top: 1px solid #2a424c; color: #96afb6; font: 700 8px "Ubuntu Mono", monospace; }
.scene-base { bottom: 2%; padding: 12px 13px; border: 1px solid rgba(116,180,190,.22); border-radius: 5px; background: linear-gradient(90deg,rgba(19,45,55,.86),rgba(12,27,35,.86)); box-shadow: 0 20px 35px rgba(0,0,0,.22); }
.hero-metrics { grid-column: 1/-1; display: flex; gap: clamp(22px, 5vw, 65px); padding-top: 24px; border-top: 1px solid rgba(197,222,227,.17); }
.hero-metrics > div { display: flex; align-items: baseline; gap: 10px; }
.hero-metrics strong { color: #fff; font-size: 21px; letter-spacing: -.05em; }
.hero-metrics span { color: #9eb5bc; font-size: 11px; }

.section { padding: 94px max(32px, calc((100% - 1240px)/2)); }
.white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 36px; }
.section h2,.statement h2 { margin: 0; font-size: clamp(38px, 4.8vw, 65px); line-height: 1.01; letter-spacing: -.06em; }
.section h2 em { color: var(--orange); }
.section-head > p { max-width: 390px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.privacy { display: flex; align-items: center; gap: 14px; max-width: 850px; margin: 0 0 26px; padding: 17px 19px; border: 1px solid #d8e4e4; border-radius: 10px; background: #f7f9f8; color: var(--muted); font-size: 12px; line-height: 1.65; }
.privacy-mark { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e2f3ee; color: #25896d; font-weight: 900; }
.privacy div { display: grid; gap: 2px; }
.privacy strong { color: var(--ink); font-size: 12px; }
.portfolio-controls { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: center; margin: 30px 0 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portfolio-controls .eyebrow { margin: 0 0 3px; font-size: 9px; }
.filter-hint { margin: 0; color: #7a8b91; font-size: 11px; }
.country-filters { display: flex; gap: 7px; overflow-x: auto; padding: 4px 2px 7px; scrollbar-color: #bdccce transparent; scrollbar-width: thin; }
.country-filters button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid #dce5e5; border-radius: 999px; background: #fff; color: #5d6d73; cursor: pointer; font-size: 11px; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.country-filters button span { color: #8b999d; font: 700 9px "Ubuntu Mono", monospace; }
.country-filters button:hover { transform: translateY(-1px); border-color: #ec9a83; color: #a73a25; }
.country-filters button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.country-filters button.active span { color: #a9c4ca; }
.portfolio-status { min-height: 18px; margin: 14px 0 18px; color: #71838a; font: 700 10px "Ubuntu Mono", monospace; letter-spacing: .06em; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; perspective: 1400px; }
.project-card { --card-accent: #65d3de; position: relative; min-height: 183px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; overflow: hidden; isolation: isolate; border: 1px solid #d8e2e3; border-radius: 12px; background: linear-gradient(145deg,#fff 2%,#f5f8f7 100%); box-shadow: 0 9px 23px rgba(9,28,35,.055); color: var(--ink); transform: rotateX(1deg) rotateY(-1.2deg); transform-style: preserve-3d; transition: transform .26s cubic-bezier(.2,.75,.25,1), box-shadow .26s ease, border-color .26s ease; }
.project-card:nth-child(4n+2) { --card-accent: #ef7958; transform: rotateX(-1deg) rotateY(1deg); }
.project-card:nth-child(4n+3) { --card-accent: #57ac9b; transform: rotateX(1.4deg) rotateY(.8deg); }
.project-card:nth-child(4n) { --card-accent: #92aa5b; transform: rotateX(-1deg) rotateY(-.8deg); }
.project-card:before { position: absolute; z-index: -1; top: -44px; right: -38px; width: 134px; height: 134px; content: ""; border: 1px solid color-mix(in srgb,var(--card-accent) 30%,transparent); border-radius: 50%; box-shadow: 0 0 0 16px color-mix(in srgb,var(--card-accent) 6%,transparent), 0 0 0 33px color-mix(in srgb,var(--card-accent) 4%,transparent); transform: translateZ(22px); }
.project-card:after { position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg,var(--card-accent),transparent 75%); opacity: .78; }
.project-card:hover { z-index: 2; transform: translateY(-6px) rotateX(0) rotateY(0) translateZ(24px); border-color: color-mix(in srgb,var(--card-accent) 52%,#d8e2e3); box-shadow: 0 22px 40px rgba(9,28,35,.14); }
.project-card:focus-visible { transform: translateY(-3px); }
.project-meta,.project-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.project-index { color: #94a2a5; font: 700 9px "Ubuntu Mono",monospace; letter-spacing: .08em; }
.project-country { padding: 5px 8px; border: 1px solid #e0e7e7; border-radius: 999px; background: rgba(255,255,255,.7); color: #66777c; font: 700 8px "Ubuntu Mono",monospace; letter-spacing: .05em; }
.project-domain { position: relative; z-index: 1; margin: 18px 0; color: #132730; font-size: clamp(15px,1.4vw,19px); font-weight: 800; letter-spacing: -.045em; overflow-wrap: anywhere; transform: translateZ(18px); }
.project-foot { padding-top: 11px; border-top: 1px solid #e3e9e9; color: #76878b; font-size: 9px; }
.project-foot span:last-child { color: var(--orange); font-weight: 800; }
.project-card[hidden] { display: none; }

.statement { padding: 76px max(32px, calc((100% - 1240px)/2)); background: #0d2029; color: #f6f8f8; }
.statement-inner { display: flex; justify-content: space-between; align-items: end; gap: 48px; }
.statement .eyebrow { margin-bottom: 13px; }
.statement h2 { font-size: clamp(36px, 4.4vw, 58px); }
.statement h2 em { color: var(--cyan); }
.statement-action { max-width: 350px; }
.statement-action p { margin: 0 0 18px; color: #b2c4ca; font-size: 14px; line-height: 1.75; }
.statement-action .cta { background: transparent; }

.portfolio-page footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding: 58px max(32px,calc((100% - 1240px)/2)) 22px; background: #07131b; color: #b8cbd2; }
.portfolio-page footer img { width: 155px; max-height: 55px; object-fit: contain; object-position: left center; }
.portfolio-page footer b { display: block; margin-bottom: 15px; color: var(--orange); font-size: 10px; letter-spacing: .15em; }
.portfolio-page footer a { display: block; margin-bottom: 11px; color: #d0dde0; font-size: 12px; }
.portfolio-page footer a:hover { color: var(--orange); }
.portfolio-page footer small { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid #233943; color: #789099; }

.reveal { opacity: 1; transform: none; }
.has-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.has-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .65s cubic-bezier(.32,.72,0,1); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; row-gap: 18px; padding-top: 62px; }
  .hero-copy { max-width: 820px; }
  .portfolio-scene { width: min(100%,850px); height: clamp(370px,50vw,470px); justify-self: center; }
  .hero-metrics { margin-top: 4px; }
  .portfolio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 52px 24px 27px; }
  .hero h1 { font-size: clamp(42px,8vw,62px); }
  .portfolio-scene { height: 390px; }
  .scene-depth { inset: 14% 0 13%; }
  .screen-back { padding: 13px; }
  .screen-side { padding: 13px; }
  .section { padding: 70px 24px; }
  .section-head { display: block; margin-bottom: 25px; }
  .section-head > p { max-width: 600px; margin-top: 17px; }
  .portfolio-controls { grid-template-columns: 1fr; gap: 11px; margin-top: 22px; }
  .country-filters { margin-right: -24px; padding-right: 24px; }
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .project-card { min-height: 165px; padding: 16px; }
  .project-domain { font-size: 16px; }
  .statement { padding: 58px 24px; }
  .statement-inner { display: grid; gap: 25px; }
  .statement-action { max-width: none; }
  .portfolio-page footer { grid-template-columns: 1fr 1fr; padding: 44px 24px 20px; }
  .portfolio-page footer img { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: clamp(37px,10vw,48px); }
  .lead { margin: 19px 0 24px; font-size: 14px; }
  .portfolio-scene { height: 310px; margin: 0 -6px; }
  .scene-topline,.scene-base { font-size: 7px; }
  .scene-topline { top: 0; }
  .scene-depth { inset: 16% 0 15%; }
  .screen-back { width: 47%; height: 50%; padding: 9px; }
  .screen-side { width: 43%; height: 55%; padding: 9px; }
  .screen-front { top: 12%; left: 13%; width: 74%; height: 74%; }
  .client-screen small,.client-screen > span { font-size: 6px; }
  .client-screen strong { font-size: 13px; }
  .screen-toolbar { height: 27px; padding: 0 8px; }
  .screen-content { height: calc(100% - 27px); padding: 15px; }
  .screen-kicker,.screen-footer { font-size: 6px; }
  .screen-blocks { gap: 5px; margin-bottom: 10px; }
  .screen-blocks i { height: 39px; }
  .hero-metrics { gap: 12px; justify-content: space-between; }
  .hero-metrics > div { display: grid; gap: 2px; }
  .hero-metrics strong { font-size: 18px; }
  .hero-metrics span { font-size: 9px; }
  .section { padding: 57px 18px; }
  .section h2 { font-size: 38px; }
  .privacy { align-items: start; padding: 13px; }
  .privacy-mark { width: 25px; height: 25px; }
  .portfolio-grid { gap: 9px; }
  .project-card { min-height: 154px; padding: 13px; border-radius: 10px; transform: none; }
  .project-card:hover { transform: translateY(-3px); }
  .project-domain { margin: 14px 0; font-size: 14px; }
  .project-country { padding: 4px 6px; font-size: 7px; }
  .project-foot { font-size: 8px; }
  .statement { padding: 48px 18px; }
  .statement h2 { font-size: 38px; }
  .portfolio-page footer { gap: 22px 14px; padding: 38px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-reveal .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .client-screen,.project-card,.project-card:nth-child(n) { transform: none; }
}
