:root {
  --ink    : #101418;
  --plaster: #F3F0EA;
  --blue   : #4859D8; /* Modernist primary action / brand blue */
  --modernist-primary-hover: #394AB9;
  --modernist-button-radius: 8px;
  --orange : #D97C4A;
  --mist   : #DDE4E8;
  --white  : #fff;
  --muted  : #62696e;
  --border : rgba(16, 20, 24, .16);
  --max    : 1240px;
  --radius : 2px;
  --shadow : 0 24px 70px rgba(16, 20, 24, .12);
  --mobile-nav-top: 78px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin                : 0;
  background            : var(--plaster);
  color                 : var(--ink);
  font-family           : Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size             : 16px;
  line-height           : 1.65;
  -webkit-font-smoothing: antialiased
}

body.menu-open {
  overflow: hidden
}

a {
  color: inherit
}

img,
svg {
  max-width: 100%;
  display  : block
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width        : min(calc(100% - 48px), var(--max));
  margin-inline: auto
}

.narrow {
  max-width: 900px
}

.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;
  z-index   : 1000;
  left      : 16px;
  top       : 12px;
  padding   : 10px 14px;
  background: var(--ink);
  color     : #fff;
  transform : translateY(-150%)
}

.skip-link:focus {
  transform: none
}

#main {
  scroll-margin-top: calc(var(--mobile-nav-top) + 16px)
}

.eyebrow {
  font-family   : "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size     : .76rem;
  font-weight   : 700
}

.eyebrow--orange {
  color: var(--orange)
}

/* The light-surface text accent is darker than the decorative orange. */
html[data-perspective='original'] .cta .eyebrow--orange,
html[data-perspective='original'] .icon-box,
html[data-perspective='original'] .process li > span,
html[data-perspective='original'] .service-detail-list article > div:first-child > span {
  color: #9c471f;
}
html[data-perspective='original'] .icon-box { border-color: currentColor; }
html[data-perspective='original'] .section--ink .process li > span,
html[data-perspective='original'] .section--ink .icon-box { color: var(--orange); }
html[data-perspective='original'] .section--ink .lead-sm { color: #bec4c7; }

h1,
h2,
h3 {
  font-family   : Sora, "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height   : 1.03;
  letter-spacing: -.035em;
  margin        : 0
}

h1 {
  font-size  : clamp(3.3rem, 7vw, 7.2rem);
  font-weight: 560
}

h2 {
  font-size  : clamp(2.4rem, 4.6vw, 4.9rem);
  font-weight: 560
}

h3 {
  font-size: 1.38rem
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  max-width: 720px;
  color    : #343a3e
}

.lead-sm {
  font-size: 1.18rem;
  color    : #41484c
}

.button {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  gap            : .6rem;
  background     : var(--blue);
  color          : #fff;
  text-decoration: none;
  border         : 0;
  border-radius  : var(--modernist-button-radius);
  padding        : .9rem 1.12rem;
  font-weight    : 750;
  min-height     : 48px;
  cursor         : pointer;
  transition     : background-color .18s ease, transform .18s ease, box-shadow .18s ease
}

.button:hover {
  transform : translateY(-2px);
  box-shadow: 0 10px 20px rgba(72, 89, 216, .22)
}

.button:focus-visible,
.text-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline       : 3px solid var(--orange);
  outline-offset: 4px
}

/* Keep focus distinct against both pale navigation and dark content surfaces. */
html[data-perspective='original'] :focus-visible {
  outline-color: #101418;
  box-shadow: 0 0 0 6px #fff;
}

.button--small {
  min-height: 42px;
  padding   : .68rem .9rem;
  font-size : .88rem;
  color: white
}

.button--light {
  background: var(--plaster);
  color: var(--ink)
}

.button-row {
  display    : flex;
  gap        : 1.3rem;
  align-items: center;
  flex-wrap  : wrap
}

.text-link {
  font-weight    : 750;
  text-decoration: none;
  border-bottom  : 1px solid var(--ink);
  padding-bottom : .15rem
}

.brand {
  display        : inline-flex;
  align-items    : center;
  gap            : .65rem;
  text-decoration: none;
  font-family    : Sora, "Segoe UI", sans-serif;
  font-weight    : 750;
  letter-spacing : .24em;
  font-size      : .94rem
}

.brand-mark {
  width : 27px;
  height: 34px
}

.brand--light {
  color: var(--plaster)
}

.site-header {
  position       : sticky;
  top            : 0;
  z-index        : 100;
  background     : rgba(243, 240, 234, .93);
  backdrop-filter: blur(18px);
  border-bottom  : 1px solid rgba(16, 20, 24, .08)
}

.nav-shell {
  height         : 78px;
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  gap            : 2rem
}

.desktop-nav {
  display    : flex;
  gap        : 2rem;
  margin-left: auto
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  font-size      : .9rem;
  font-weight    : 650
}

.desktop-nav a[aria-current=page] {
  border-bottom: 2px solid var(--orange)
}

.menu-button {
  display   : none;
  border    : 0;
  background: none;
  width     : 42px;
  height    : 42px;
  position  : relative
}

.menu-button span:not(.sr-only) {
  display   : block;
  width     : 23px;
  height    : 2px;
  background: var(--ink);
  margin    : 6px auto
}

.mobile-nav {
  position                  : fixed;
  top                       : var(--mobile-nav-top);
  right                     : 0;
  bottom                    : 0;
  left                      : 0;
  min-height                : calc(100vh - var(--mobile-nav-top));
  height                    : calc(100dvh - var(--mobile-nav-top));
  overflow-y                : auto;
  overscroll-behavior       : contain;
  -webkit-overflow-scrolling: touch;
  background                : var(--plaster);
  padding                   : 36px 24px calc(36px + env(safe-area-inset-bottom));
  z-index                   : 99
}

.mobile-nav a {
  display    : block;
  font-family: Sora, sans-serif;
  font-size  : 2rem;
  margin     : 0 0 1.2rem
}

.mobile-nav .button {
  font-size: 1rem;
  display  : inline-flex
}

.hero {
  min-height : 690px;
  display    : grid;
  align-items: center;
  overflow   : hidden
}

.hero-grid {
  display              : grid;
  grid-template-columns: 1.05fr .95fr;
  gap                  : 5vw;
  align-items          : center;
  padding              : 70px 0
}

.hero h1 {
  margin: .35rem 0 1.65rem
}

.hero .lead {
  max-width: 660px;
  margin   : 0 0 2rem
}

.open-frame-visual {
  position: relative;
  overflow: hidden;
}

.open-frame-visual:after {
  content : "";
  position: absolute;
  inset   : auto -10% -22% 20%;
  height  : 60%;
}

.frame-a,
.frame-b,
.frame-door {
  position : absolute;
  z-index  : 2;
  border   : 2px solid var(--ink);
  width    : 39%;
  height   : 72%;
  top      : 15%;
  left     : 41%;
  transform: skewY(-2deg)
}

.frame-b {
  border-color: var(--orange);
  left        : 45%;
  top         : 19%;
  width       : 32%;
  height      : 62%
}

.frame-door {
  border    : 0;
  background: var(--ink);
  clip-path : polygon(0 0, 100% 18%, 100% 100%, 0 79%);
  width     : 18%;
  height    : 47%;
  left      : 51%;
  top       : 29%
}

.sun {
  position     : absolute;
  width        : 180px;
  height       : 180px;
  border-radius: 50%;
  background   : #fff7e8;
  filter       : blur(2px);
  right        : -35px;
  top          : 70px;
  box-shadow   : 0 0 70px #fff7e8
}

.trust-strip {
  background: var(--ink);
  color     : var(--plaster);
  padding   : 22px 0
}

.trust-strip .container {
  display        : flex;
  justify-content: space-between;
  gap            : 20px;
  flex-wrap      : wrap;
  font-family    : "IBM Plex Mono", monospace;
  font-size      : .78rem;
  text-transform : uppercase;
  letter-spacing : .08em
}

.section {
  padding: 115px 0
}

.section--ink {
  background: var(--ink);
  color     : var(--plaster)
}

.section--mist {
  background: var(--mist)
}

.split {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 8vw;
  align-items          : start
}

.split .prose p:first-child {
  margin-top: 0
}

.feature-grid {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  border-top           : 1px solid var(--border);
  margin-top           : 70px
}

.feature-grid article {
  padding     : 35px 25px 15px 15px;
  border-right: 1px solid var(--border);
  min-height  : 220px
}

.feature-grid article+article {
  padding-left: 25px
}

.feature-grid article:last-child {
  border-right: 0
}

.icon-box {
  display      : grid;
  place-items  : center;
  width        : 42px;
  height       : 42px;
  border       : 1px solid var(--orange);
  color        : var(--orange);
  font-family  : "IBM Plex Mono", monospace;
  margin-bottom: 38px
}

.feature-grid h3 {
  margin-bottom: .8rem
}

.feature-grid p {
  color : #5b6266;
  margin: 0
}

.section--ink .feature-grid p {
  color: #bec4c7
}

.section-heading {
  display        : flex;
  justify-content: space-between;
  align-items    : end;
  gap            : 40px
}

.section-heading h2 {
  max-width: 870px
}

.service-list {
  margin-top: 70px;
  border-top: 1px solid rgba(243, 240, 234, .25)
}

.service-list a {
  display              : grid;
  grid-template-columns: 70px 1.4fr 1fr 40px;
  gap                  : 24px;
  align-items          : center;
  color                : inherit;
  text-decoration      : none;
  border-bottom        : 1px solid rgba(243, 240, 234, .25);
  padding              : 28px 0;
  transition           : padding .2s ease
}

.service-list a:hover {
  padding-left: 10px
}

.service-list span {
  font-family: "IBM Plex Mono", monospace;
  color      : var(--orange)
}

.service-list strong {
  font-family: Sora, sans-serif;
  font-size  : 1.5rem
}

.service-list em {
  font-style: normal;
  color     : #b8bfc2
}

.project-grid {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 34px;
  margin-top           : 60px
}

.project-card {
  text-decoration: none
}

.project-art {
  height    : 430px;
  overflow  : hidden;
  position  : relative;
  background: #d8dddf
}

.project-card--one .project-art {
  background: linear-gradient(145deg, #adb6ba, #eef0ef)
}

.project-card--two .project-art {
  background: linear-gradient(145deg, #e7e4dc, #9fa8ac)
}

.architectural-block {
  position  : absolute;
  width     : 55%;
  height    : 72%;
  right     : 8%;
  bottom    : -5%;
  background: var(--ink);
  clip-path : polygon(12% 0, 100% 18%, 100% 100%, 0 100%)
}

.project-card--two .architectural-block {
  background: #f8f6f0;
  left      : 11%;
  right     : auto;
  clip-path : polygon(0 13%, 84% 0, 100% 100%, 0 100%)
}

.project-card h3 {
  font-size : 2rem;
  margin-top: .3rem
}

.project-card span {
  display   : block;
  margin-top: 1rem;
  font-size : .83rem;
  color     : var(--muted)
}

.cta {
  background: var(--mist);
  padding   : 110px 0
}

.cta h2 {
  max-width: 950px;
  margin   : .7rem 0 2rem
}

.page-hero {
  padding      : 110px 0 90px;
  border-bottom: 1px solid var(--border)
}

.page-hero h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  margin   : .5rem 0 1.5rem
}

.page-hero .lead {
  max-width: 850px
}

.process {
  display              : grid;
  grid-template-columns: .8fr 1.2fr;
  gap                  : 8vw
}

.process ol {
  list-style: none;
  padding   : 0;
  margin    : 0
}

.process li {
  display              : grid;
  grid-template-columns: 70px 1fr;
  border-top           : 1px solid var(--border);
  padding              : 28px 0
}

.process li span {
  font-family: "IBM Plex Mono", monospace;
  color      : var(--orange)
}

.process li h3 {
  margin-bottom: .5rem
}

.process li p {
  margin: 0;
  color : var(--muted)
}

.service-detail-list article {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 8vw;
  padding              : 80px 0;
  border-top           : 1px solid var(--border);
  scroll-margin-top    : 100px
}

.service-detail-list article>div:first-child>span {
  font-family  : "IBM Plex Mono", monospace;
  color        : var(--orange);
  display      : block;
  margin-bottom: 40px
}

.service-detail-list h2 {
  font-size: clamp(2.4rem, 4vw, 4rem)
}

.service-detail-list ul {
  padding-left: 1.2rem
}

.service-detail-list li {
  padding: .4rem 0
}

.service-eyebrow {
  margin-top: 2.6rem
}

.service-deliverables {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border)
}

.service-deliverables li {
  padding: .75rem 0 .75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative
}

.service-deliverables li::before {
  content: "→";
  color: var(--orange);
  left: 0;
  position: absolute
}

.section--ink .process li {
  border-color: rgba(243, 240, 234, .25)
}

.section--ink .process li p {
  color: #bec4c7
}

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--border)
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0
}

.faq-list summary {
  cursor: pointer;
  font-family: Sora, sans-serif;
  font-size: 1.2rem;
  font-weight: 650
}

.faq-list p {
  color: var(--muted);
  max-width: 720px;
  margin: .9rem 0 0
}

.case-list {
  display: grid;
  gap    : 100px
}

.case-study {
  display              : grid;
  grid-template-columns: 1.2fr .8fr;
  gap                  : 7vw;
  align-items          : center;
  scroll-margin-top    : 100px
}

.case-study--reverse {
  grid-template-columns: .8fr 1.2fr
}

.case-study--reverse .case-art {
  order: 2
}

.case-art {
  height     : 560px;
  position   : relative;
  overflow   : hidden;
  display    : grid;
  place-items: center
}

.case-art--dark {
  background: linear-gradient(150deg, #11171a, #465157)
}

.case-art--light {
  background: linear-gradient(150deg, #f2f0e9, #c1cbcf)
}

.case-art--warm {
  background: linear-gradient(150deg, #d5b99e, #f4efe7)
}

.case-word {
  font-family   : Sora, sans-serif;
  letter-spacing: .3em;
  font-size     : clamp(1.4rem, 4vw, 4rem);
  font-weight   : 650;
  z-index       : 2
}

.case-art--dark .case-word {
  color: #fff
}

.case-door {
  position : absolute;
  width    : 28%;
  height   : 62%;
  border   : 2px solid var(--orange);
  transform: skewY(-4deg)
}

.case-door:after {
  content   : "";
  position  : absolute;
  inset     : 14% 18% 8% 22%;
  background: var(--ink);
  clip-path : polygon(0 0, 100% 12%, 100% 100%, 0 86%)
}

.case-copy p {
  color: #50585c
}

.case-copy dl {
  margin-top: 36px
}

.case-copy dl div {
  display              : grid;
  grid-template-columns: 100px 1fr;
  border-top           : 1px solid var(--border);
  padding              : 13px 0
}

.case-copy dt {
  font-family   : "IBM Plex Mono", monospace;
  font-size     : .75rem;
  text-transform: uppercase
}

.case-copy dd {
  margin: 0
}

.contact-hero {
  padding-bottom: 120px
}

.contact-grid {
  display              : grid;
  grid-template-columns: .9fr 1.1fr;
  gap                  : 8vw
}

.contact-direct {
  display              : grid;
  grid-template-columns: 80px 1fr;
  gap                  : 10px 20px;
  margin-top           : 48px
}

.contact-direct span {
  font-family   : "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size     : .74rem;
  color         : var(--muted)
}

.contact-direct p {
  margin: 0
}

.contact-form {
  background: #fff;
  padding   : 38px;
  box-shadow: var(--shadow)
}

.contact-form label {
  display      : grid;
  gap          : 8px;
  font-weight  : 700;
  margin-bottom: 20px
}

.contact-field { display: grid; gap: 8px; margin-bottom: 20px; }
.contact-field label { margin-bottom: 0; }
.contact-form .field-error { margin: 0; font-size: .87rem; color: #8a2f21; }
.contact-form [aria-invalid='true'] { border-color: #8a2f21; }
.contact-form [data-contact-feedback] a { color: inherit; text-decoration: underline; }

.field-row {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 20px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width        : 100%;
  border       : 1px solid #aab0b3;
  background   : #fff;
  padding      : 13px 14px;
  color        : var(--ink);
  border-radius: 0
}

.contact-form textarea {
  resize: vertical
}

.form-note {
  font-size: .87rem;
  color    : var(--muted)
}

.honeypot {
  position: absolute !important;
  left    : -10000px !important;
  width   : 1px !important;
  height  : 1px !important;
  overflow: hidden !important
}

.legal-hero {
  padding: 95px 0
}

.legal-layout {
  display              : grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap                  : 8vw;
  justify-content      : center
}

.legal-layout aside {
  position  : sticky;
  top       : 120px;
  align-self: start
}

.legal-layout > * {
  min-width: 0
}

.legal-layout aside h1 {
  font-size: 3rem;
  margin   : .4rem 0
}

.legal-layout aside>p:last-child {
  color    : var(--muted);
  font-size: .9rem
}

.legal-copy h2 {
  font-size     : 1.8rem;
  margin        : 2.8rem 0 .9rem;
  letter-spacing: -.02em
}

.legal-copy h2:first-of-type {
  margin-top: 0
}

.legal-copy p,
.legal-copy li {
  color: #353b3f
}

.legal-copy li {
  margin: .4rem 0
}

.notice {
  padding      : 20px 22px;
  background   : var(--mist);
  border-left  : 4px solid var(--blue);
  margin-bottom: 36px
}

.notice--important {
  border-left-color: var(--orange)
}

.notice p {
  margin: .35rem 0 0
}

.table-wrap {
  overflow: auto
}

.legal-copy table {
  width          : 100%;
  min-width      : 640px;
  border-collapse: collapse;
  margin         : 28px 0
}

.legal-copy th,
.legal-copy td {
  text-align    : left;
  vertical-align: top;
  border        : 1px solid var(--border);
  padding       : 12px
}

.legal-copy th {
  background: var(--mist)
}

.status-page {
  min-height : 70vh;
  display    : grid;
  align-items: center;
  padding    : 90px 0
}

.status-code {
  font-family: Sora, sans-serif;
  font-size  : clamp(5rem, 16vw, 12rem);
  line-height: .9;
  color      : var(--mist);
  font-weight: 700
}

.status-page h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin   : .5rem 0 1.3rem
}

.site-footer {
  background: var(--ink);
  color     : var(--plaster);
  padding   : 70px 0 25px
}

.footer-grid {
  display              : grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap                  : 60px
}

.footer-grid h2 {
  font-size     : .78rem;
  font-family   : "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color         : #aab1b4;
  margin-bottom : 18px
}

.footer-grid>div:not(:first-child) {
  display       : flex;
  flex-direction: column;
  align-items   : flex-start
}

.footer-grid a,
.link-button {
  color          : inherit;
  text-decoration: none;
  margin         : .3rem 0
}

.link-button {
  border    : 0;
  background: none;
  padding   : 0;
  font      : inherit;
  cursor    : pointer
}

.site-footer .brand {
  margin-bottom: 15px
}

.site-footer p {
  color: #aeb5b8
}

.footer-bottom {
  display        : flex;
  justify-content: space-between;
  gap            : 30px;
  border-top     : 1px solid rgba(255, 255, 255, .15);
  margin-top     : 58px;
  padding-top    : 22px;
  font-size      : .75rem
}

.company-disclosure {
  max-width : 700px;
  text-align: right
}

.privacy-panel {
  max-width : 620px;
  border    : 0;
  padding   : 0;
  background: var(--plaster);
  color     : var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35)
}

.privacy-panel::backdrop {
  background: rgba(16, 20, 24, .72)
}

.privacy-panel form {
  padding : 34px;
  position: relative
}

.privacy-panel h2 {
  font-size: 2.3rem
}

.dialog-close {
  position  : absolute;
  right     : 20px;
  top       : 16px;
  border    : 0;
  background: none;
  font-size : 2rem;
  cursor    : pointer
}

.choice-row {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  gap            : 25px;
  border-top     : 1px solid var(--border);
  padding        : 18px 0
}

.choice-row div {
  display: grid
}

.choice-row span:not(.status-pill) {
  font-size: .86rem;
  color    : var(--muted)
}

.status-pill {
  background : var(--mist);
  padding    : 4px 9px;
  font-size  : .72rem;
  font-weight: 800
}

.status-pill--off {
  background: #e4e4e4
}

.dialog-actions {
  display    : flex;
  gap        : 22px;
  align-items: center;
  margin-top : 20px
}

.dialog-actions a {
  font-weight: 700
}

.button--secondary {
  background: transparent;
  border    : 1px solid currentColor;
  color     : var(--ink)
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--mist)
}

@media(max-width:900px) {

  .desktop-nav,
  .nav-shell>.button {
    display: none
  }

  .menu-button {
    display: block
  }

  .hero-grid,
  .split,
  .process,
  .service-detail-list article,
  .case-study,
  .case-study--reverse,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: auto
  }

  .hero-grid {
    padding: 60px 0
  }

  .open-frame-visual {
    height: 480px
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr
  }

  .feature-grid article:nth-child(2) {
    border-right: 0
  }

  .service-list a {
    grid-template-columns: 45px 1fr 35px
  }

  .service-list em {
    display: none
  }

  .project-grid {
    grid-template-columns: 1fr
  }

  .case-study--reverse .case-art {
    order: 0
  }

  .legal-layout aside {
    position: static
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr
  }

  .footer-grid>div:last-child {
    grid-column: 2
  }

  .company-disclosure {
    text-align: left
  }

  .footer-bottom {
    display: block
  }

  .legal-copy {
    max-width: none
  }
}

@media(max-width:900px) {
  main,
  .site-footer {
    overflow-wrap: anywhere
  }

  .brand,
  .brand span {
    min-width: 0;
    overflow-wrap: anywhere
  }

  .site-header:has(.perspectives:not([hidden])) .nav-shell {
    height: auto;
    min-height: 78px;
    padding-block: 10px;
    flex-wrap: wrap
  }
}

@media(max-width:620px) {
  :root {
    --mobile-nav-top: 68px
  }

  .container {
    width: min(calc(100% - 30px), var(--max))
  }

  .nav-shell {
    height: 68px
  }

  .brand {
    font-size: .78rem
  }

  .hero-grid {
    padding-top: 45px
  }

  .hero h1 {
    font-size: 3.55rem
  }

  .open-frame-visual {
    height: 380px
  }

  .section,
  .cta {
    padding: 75px 0
  }

  .page-hero {
    padding: 70px 0 60px
  }

  .feature-grid {
    grid-template-columns: 1fr
  }

  .feature-grid article,
  .feature-grid article+article {
    border-right : 0;
    padding-left : 0;
    border-bottom: 1px solid var(--border)
  }

  .section-heading {
    align-items   : start;
    flex-direction: column
  }

  .project-art,
  .case-art {
    height: 360px
  }

  .service-list a {
    grid-template-columns: 36px 1fr 25px
  }

  .service-list strong {
    font-size: 1.2rem
  }

  .contact-form {
    padding: 24px
  }

  .field-row {
    grid-template-columns: 1fr;
    gap                  : 0
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap                  : 35px
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1
  }

  .footer-grid>div:last-child {
    grid-column: auto
  }

  .legal-layout {
    gap: 30px
  }

  .legal-layout aside h1 {
    font-size: 2.5rem
  }

  .privacy-panel {
    width: calc(100% - 24px)
  }

  .choice-row {
    align-items: flex-start
  }

  .dialog-actions {
    flex-direction: column;
    align-items   : flex-start
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    animation-duration       : .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration      : .01ms !important
  }
}

.contact-form .notice ul {
  margin      : .75rem 0 0;
  padding-left: 1.2rem
}

.contact-form .notice li+li {
  margin-top: .35rem
}

/* Header rendering refinement: use native UI text metrics and real, non-synthesised weights. */
.site-header,
.site-header a,
.site-header button {
  font-family           : Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis        : none;
  text-rendering        : optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.brand {
  font-family   : Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size     : .9rem;
  font-weight   : 700;
  letter-spacing: .16em;
  line-height   : 1;
  white-space   : nowrap;
}

.brand-mark {
  flex: 0 0 auto
}

.desktop-nav a,
.mobile-nav a {
  font-family   : Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight   : 600;
  letter-spacing: -.005em;
  line-height   : 1.25;
}

.desktop-nav a {
  font-size    : clamp(.86rem, .72rem + .15vw, .92rem);
  padding-block: .3rem
}

.site-header .button {
  font-weight   : 700;
  letter-spacing: 0
}

.menu-button {
  width : 44px;
  height: 44px
}

.mobile-nav a {
  font-size     : clamp(1.65rem, 7vw, 2rem);
  letter-spacing: -.025em
}

/* Open Frame refinement: a tall structural outline, independent accent line and offset solid plane. */
.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap                  : clamp(3rem, 6vw, 6rem)
}

.open-frame-visual {
  width       : min(100%, 500px);
  height      : auto;
  justify-self: end;
  isolation   : isolate;
}

.open-frame-visual:after {
  z-index: 0;
  inset  : auto -16% -18% 22%;
  height : 55%;
}

.frame-a {
  z-index    : 2;
  width      : 45%;
  height     : 78%;
  top        : 9%;
  left       : 28%;
  border     : 0;
  border-top : 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform  : none;
}

.frame-b {
  z-index     : 4;
  width       : 37%;
  height      : 68%;
  top         : 16%;
  left        : 40%;
  border      : 0;
  border-top  : 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  transform   : none;
}

.frame-door {
  z-index   : 3;
  width     : 31%;
  height    : 58%;
  top       : 27%;
  left      : 51%;
  border    : 0;
  background: var(--ink);
  clip-path : polygon(0 9%, 100% 0, 100% 100%, 14% 91%);
  transform : none;
}

.sun {
  z-index     : 1;
  width       : clamp(130px, 29%, 170px);
  height      : auto;
  aspect-ratio: 1;
  right       : -4%;
  top         : 9%;
  filter      : none;
  box-shadow  : 0 0 64px rgba(255, 247, 232, .82);
}

.open-frame-visual--image img {
  width          : 100%;
  height         : 100%;
  object-fit     : contain;
  object-position: center;
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap                  : 3.5rem
  }

  .open-frame-visual {
    width       : min(100%, 460px);
    justify-self: center
  }
}

@media(max-width:620px) {
  .brand {
    font-size     : .79rem;
    letter-spacing: .135em
  }

  .brand-mark {
    width : 25px;
    height: 32px
  }

  .open-frame-visual {
    width: min(100%, 290px)
  }
}

/* Supplied Cobbydale homepage screenshot used as the project image. */
.cobbydale-project-art,
.case-art--cobbydale {
  display    : grid;
  place-items: center;
  background : #001f3f;
}

.case-art--cobbydale {
  height      : auto;
  aspect-ratio: 16/10
}

.cobbydale-screenshot {
  width     : 94%;
  height    : auto;
  max-height: 90%;
  object-fit: contain;
  border    : 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 48px rgba(0, 8, 16, .34);
}

/* Supplied project screenshots remain the focal point of the portfolio cards. */
.project-art--homelab,
.case-art--homelab,
.case-art--empyrune {
  display    : grid;
  place-items: center;
  padding    : 4%;
}

.project-art--homelab,
.case-art--homelab {
  background: #0b1b2b;
}

.project-art--quotenvia,
.case-art--quotenvia {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: auto;
  aspect-ratio: 16 / 9;
  background: transparent;
  padding: 0;
}

.quotenvia-screenshot {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  box-shadow: none;
}

.case-status {
  color: var(--muted);
  font-size: .9rem
}

.case-art--empyrune {
  background:
    radial-gradient(circle at 20% 15%, rgba(124, 92, 255, .28), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(43, 214, 199, .18), transparent 46%),
    #120d1f;
}

.project-screenshot {
  width     : 100%;
  height    : 100%;
  object-fit: contain;
  border    : 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 48px rgba(0, 8, 16, .34);
}

.arken-hero,
  .arken-hero * {
    box-sizing: border-box;
  }

  .arken-hero {
    --ink: #0b1822;
    --body: #2b3943;
    --blue-a: #4859D8;
    --blue-b: #4859D8;
    --orange: #bd7130;
    --trust-a: #08131b;
    --trust-b: #101820;

    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(16, 28, 36, .24);
    color: var(--ink);
    background: #f6f2ed;
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    container-type: inline-size;
  }

  .arken-hero__stage {
    position: relative;
    width: 100%;
    min-height: max(420px, 53.17cqw);
    padding-block: 14.94cqw 5.75cqw;
    overflow: hidden;
    background-image: url("../img/hero-background.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-color: var(--plaster)
  }

  /* --- Header --- */
  .arken-hero__nav {
    position: absolute;
    z-index: 5;
    top: 4.8%;
    left: 5.9%;
    right: 5.9%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .arken-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: .95cqw;
    width: max-content;
    color: var(--ink);
    text-decoration: none;
  }

  .arken-hero__mark {
    width: 3.1cqw;
    min-width: 24px;
    max-width: 34px;
    height: auto;
    overflow: visible;
  }

  .arken-hero__brand-text {
    font-size: clamp(12px, 1.40cqw, 17px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .28em;
    white-space: nowrap;
  }

  .arken-hero__nav-links {
    display: flex;
    align-items: center;
    gap: 3.45cqw;
  }

  .arken-hero__nav-links a {
    color: #172630;
    text-decoration: none;
    font-size: clamp(9px, .88cqw, 12px);
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
  }

  .arken-hero__nav-cta {
    justify-self: end;
  }

  /* --- Copy --- */
  .arken-hero__copy {
    position: relative;
    z-index: 4;
    left: 5.75%;
    width: 49%;
  }

  .arken-hero__title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(48px, 6.72cqw, 78px);
    line-height: 1.04;
    letter-spacing: -.052em;
    font-weight: 700;
  }

  .arken-hero__lede {
    width: 55%;
    max-width: 380px;
    margin: 3.05cqw 0 0;
    color: var(--body);
    font-size: clamp(13px, 1.50cqw, 18px);
    line-height: 1.49;
    letter-spacing: -.012em;
    font-weight: 400;
  }

  .arken-hero__actions {
    display: flex;
    align-items: center;
    gap: 2.35cqw;
    margin-top: 3.05cqw;
  }

  /* --- Buttons --- */
  .arken-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.02cqw;
    height: 4.45cqw;
    min-height: 40px;
    max-height: 52px;
    padding: 0 1.42cqw;
    border: 0;
    border-radius: var(--modernist-button-radius);
    background: var(--blue-a);
    color: #fff;
    text-decoration: none;
    font-size: clamp(10px, .98cqw, 13px);
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 7px 17px rgba(72, 89, 216, .15);
  }

  .arken-hero__btn--nav {
    height: 4.05cqw;
    min-height: 30px;
    max-height: 46px;
    padding-inline: 1.28cqw;
    font-size: clamp(9px, .80cqw, 11px);
  }

  .arken-hero__arrow {
    font-size: 1.48em;
    line-height: .75;
    font-weight: 400;
    transform: translateY(-.02em);
  }

  .arken-hero__work-link {
    display: inline-flex;
    align-items: center;
    gap: .95cqw;
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(10px, .98cqw, 13px);
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
  }

  /* --- Trust strip --- */
  .arken-hero__trust {
    min-height: 66px;
    aspect-ratio: 679 / 67;
    display: grid;
    grid-template-columns: 1.34fr repeat(5, 1fr);
    align-items: center;
    gap: 2.4%;
    padding: 0 5.7%;
    background:
      radial-gradient(ellipse at 88% 6%, rgba(48, 65, 76, .18), transparent 38%),
      linear-gradient(100deg, var(--trust-a), #0a1620 58%, var(--trust-b));
  }

  .arken-hero__trust-label {
    color: var(--orange);
    font-size: clamp(8px, .75cqw, 10px);
    line-height: 1.38;
    letter-spacing: .055em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .arken-hero__client {
    color: #edf0f2;
    text-align: center;
    font-size: clamp(11px, 1.08cqw, 15px);
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 500;
    white-space: nowrap;
  }

  .arken-hero a {
    transition: opacity .15s ease, transform .15s ease;
  }

  .arken-hero a:hover {
    opacity: .86;
  }

  .arken-hero__btn:hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  .arken-hero a:focus-visible {
    outline: 2px solid #3155ff;
    outline-offset: 3px;
  }

  /* Responsive layout */
  @media (max-width: 760px) {
    .arken-hero__stage {
      min-height: 680px;
      padding: 108px 22px 48px;
      background-size: auto 100%;
      background-position: 59% center;
    }

    .arken-hero__nav {
      top: 22px;
      left: 22px;
      right: 22px;
      grid-template-columns: 1fr auto;
    }

    .arken-hero__nav-links {
      display: none;
    }

    .arken-hero__copy {
      left: auto;
      width: auto;
    }

    .arken-hero__title {
      font-size: clamp(50px, 13vw, 74px);
    }

    .arken-hero__lede {
      width: min(92%, 420px);
      margin-top: 26px;
      font-size: 17px;
    }

    .arken-hero__actions {
      margin-top: 27px;
      gap: 22px;
    }

    .arken-hero__btn {
      height: 49px;
      padding-inline: 18px;
      font-size: 13px;
      gap: 12px;
    }

    .arken-hero__trust {
      aspect-ratio: auto;
      min-height: 158px;
      grid-template-columns: repeat(3, 1fr);
      row-gap: 23px;
      padding: 24px 22px;
    }

    .arken-hero__trust-label {
      grid-column: 1 / -1;
      text-align: center;
      font-size: 9px;
    }

    .arken-hero__client {
      font-size: 13px;
    }
  }

  @media (max-width: 520px) {
    .arken-hero__nav-cta {
      display: none;
    }

    .arken-hero__stage {
      min-height: 650px;
      padding-top: 98px;
      background-position: 60% bottom;
    }

    .arken-hero__title {
      font-size: clamp(47px, 14vw, 62px);
    }

    .arken-hero__trust {
      grid-template-columns: repeat(2, 1fr);
    }
  }

/* ═══ Cobbydale case-study page ═══ */

/* 1. Case study hero image */
.cs-hero-image {
  /* Full-width container for the redesigned website screenshot */
  margin-top: 3rem;
  background: #001f3f;
  padding: 5% 5% 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -4px 40px rgba(0, 8, 16, .25);
}

/* 2. Before/after comparison */
.cs-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.cs-comparison-item {
  /* Each before/after column */
  display: flex;
  flex-direction: column;
}

.cs-comparison-label {
  /* Label above each screenshot */
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 1rem;
  display: block;
}

.cs-comparison-label--before {
  color: var(--muted);
}

.cs-comparison-label--after {
  color: var(--orange);
}

.cs-comparison-frame {
  /* The dark frame around each screenshot */
  background: #001f3f;
  padding: 6%;
  cursor: pointer;
  transition: box-shadow .2s ease;
  position: relative;
}

.cs-comparison-frame:hover {
  box-shadow: 0 12px 36px rgba(0, 8, 16, .3);
}

.cs-comparison-frame::after {
  /* View full size hint */
  content: 'View full size';
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  opacity: 0;
  transition: opacity .2s ease;
}

.cs-comparison-frame:hover::after {
  opacity: 1;
}

.cs-comparison-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
}

/* 3. Change highlights list */
.cs-changes {
  /* Grid of change highlights */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.cs-change {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--border);
}

.cs-change:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.cs-change h3 {
  margin-bottom: .5rem;
}

.cs-change p {
  margin: 0;
  color: var(--muted);
}

/* 4. Continuity features (for the dark section) */
.cs-continuity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(243, 240, 234, .2);
}

.cs-continuity-item {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid rgba(243, 240, 234, .2);
}

.cs-continuity-item:not(:nth-child(3n+1)) {
  padding-left: 2rem;
  border-left: 1px solid rgba(243, 240, 234, .2);
}

.cs-continuity-item h3 {
  color: var(--plaster);
  margin-bottom: .6rem;
}

.cs-continuity-item p {
  color: #bec4c7;
  margin: 0;
}

.cs-continuity-icon {
  /* Small icon box before each item */
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}

/* 5. Lightbox dialog */
.cs-lightbox {
  width: min(94vw, 1100px);
  max-height: 92vh;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 0;
  background: #090e13;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
  overflow: hidden;
}

.cs-lightbox:not([open]) {
  display: none;
}

.cs-lightbox::backdrop {
  background: rgba(10, 14, 18, .88);
  backdrop-filter: blur(4px);
}

.cs-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(16, 20, 24, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.cs-lightbox-caption {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  letter-spacing: .04em;
  margin: 0;
}

.cs-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cs-lightbox-direct {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

.cs-lightbox-direct:hover {
  text-decoration: underline;
}

.cs-lightbox-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease;
  line-height: 1;
}

.cs-lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
}

.cs-lightbox-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(92vh - 56px);
  padding: 0;
  background: #001f3f;
  -webkit-overflow-scrolling: touch;
}

.cs-lightbox-body img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-comparison-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: .75rem;
  font-size: .84rem;
  flex-wrap: wrap;
}

.cs-comparison-actions a,
.cs-comparison-actions button {
  font-size: .84rem;
}

/* 6. Case study article prose */
.cs-prose {
  max-width: 720px;
}

.cs-prose p {
  color: #50585c;
}

.cs-prose p + p {
  margin-top: 1rem;
}

/* Section intro with heading + prose side by side */
.cs-section-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8vw;
  align-items: start;
}

.cs-section-intro h2 {
  position: sticky;
  top: 110px;
}

/* 7. Result summary / metadata strip */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 3rem;
}

.cs-meta-item {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.cs-meta-item:not(:first-child) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.cs-meta-label {
  display: block;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .5rem;
}

.cs-meta-value {
  font-weight: 650;
}

/* 8. Responsive overrides */
@media (max-width: 900px) {
  .cs-comparison {
    grid-template-columns: 1fr;
  }

  .cs-changes {
    grid-template-columns: 1fr;
  }

  .cs-change:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-continuity {
    grid-template-columns: 1fr 1fr;
  }

  .cs-continuity-item:not(:nth-child(3n+1)) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-continuity-item:nth-child(even) {
    padding-left: 2rem;
    border-left: 1px solid rgba(243, 240, 234, .2);
  }

  .cs-section-intro {
    grid-template-columns: 1fr;
  }

  .cs-section-intro h2 {
    position: static;
  }

  .cs-meta {
    grid-template-columns: 1fr 1fr;
  }

  .cs-meta-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-meta-item:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 620px) {
  .cs-continuity {
    grid-template-columns: 1fr;
  }

  .cs-continuity-item:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-meta {
    grid-template-columns: 1fr;
  }

  .cs-meta-item:not(:first-child) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .cs-hero-image {
    margin-top: 2rem;
    padding: 4% 4% 0;
  }
}

/* Modernist primary actions: one blue, white type, restrained 8px corners.
   Inverse and secondary actions retain their contrasting colour treatments. */
html[data-perspective='original'] .button:not(.button--light):not(.button--secondary):hover {
  background: var(--modernist-primary-hover);
  color: #fff;
}
html[data-perspective='original'] .arken-hero__btn:hover {
  background: var(--modernist-primary-hover);
  color: #fff;
}
html[data-perspective='original'] .button--light:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html[data-perspective='original'] .button,
  html[data-perspective='original'] .arken-hero__btn { transition: none; transform: none; }
}
