/* Keep the paper and closing scene in one document flow. */
.scroll-layer {
  position:relative;
  z-index:2;
  background:var(--field);
  padding-top:var(--frame)
}

.page-frame {
  position:fixed;
  inset:0;
  z-index:99;
  border:var(--frame) solid var(--field);
  pointer-events:none
}


.site-header {
  height:calc(215 * var(--u));
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:start;
  padding-top:calc(58 * var(--u));
  position:relative;
  z-index:10;
  width:calc(100% - 120 * var(--u))
}

.nav-item {
  justify-self:center;
  padding:6px 0;
  font:400 calc(29 * var(--u))/1 var(--serif);
  text-transform:uppercase
}

.nav-item:hover {
  text-decoration:underline;
  text-underline-offset:5px
}

.brand {
  grid-column:3;
  grid-row:1;
  justify-self:center;
  text-align:center;
  font:400 calc(38 * var(--u))/.9 var(--serif)
}

.brand-caption {
  display:block;
  margin-top:12px;
  font:8px/1 var(--mono);
  letter-spacing:.25em
}

.nav-work {
  grid-column:1;
  grid-row:1
}

.nav-forge {
  grid-column:2;
  grid-row:1
}

.nav-source {
  grid-column:4;
  grid-row:1
}

.header-contact {
  grid-column:5;
  grid-row:1
}

.menu-toggle,.mobile-nav {
  display:none
}

.hero {
  display:grid;
  grid-template-columns:52% 48%;
  min-height:570px;
  height:calc(100svh - 160px);
  max-height:960px;
  position:relative;
  grid-template-rows:minmax(0,1fr)
}

.hero-copy {
  padding-top:calc(70 * var(--u));
  position:relative;
  z-index:2
}

.hero-kicker {
  display:block;
  font:calc(17 * var(--u))/1.4 var(--mono);
  text-transform:uppercase;
  letter-spacing:.11em;
  margin-bottom:20px
}

.hero h1 {
  font-size:calc(132 * var(--u));
  letter-spacing:-.035em;
  line-height:.98;
  white-space:nowrap
}

.hero h1 .line {
  display:block;
  overflow:clip;
  padding-bottom:.09em;
  margin-bottom:-.09em
}

.hero h1 .line>span {
  display:block
}

.hero-description {
  margin-top:32px;
  font:calc(21 * var(--u))/1.55 var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase
}

.hero-cta {
  margin-top:24px
}

.hero-art {
  height:100%;
  min-height:0;
  width:calc(100% + var(--gutter)*.75);
  margin-left:8%;
  position:relative;
  overflow:hidden
}

.art-parallax {
  position:absolute;
  inset:0;
  mix-blend-mode:screen
}

.hero-engraving {
  position:absolute;
  height:100%;
  width:100%;
  object-fit:cover;
  object-position:52% bottom
}

.hero-colophon {
  display:flex;
  justify-content:space-between;
  padding-top:24px;
  font:calc(16 * var(--u))/1.5 var(--mono);
  letter-spacing:.1em;
  text-transform:uppercase
}

.work-section {
  padding-block:130px 135px
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:32px;
  margin:30px 0 50px
}

.section-heading h2 {
  font-size:calc(85 * var(--u));
  letter-spacing:-.025em;
  line-height:1
}

.section-heading p {
  font:calc(20 * var(--u))/1.6 var(--mono);
  text-transform:uppercase;
  letter-spacing:.07em
}

.project-list {
  border-bottom:1px solid var(--line)
}

.project {
  border-top:1px solid var(--line)
}

.project summary {
  display:grid;
  grid-template-columns:7% 1fr 23% 24px;
  align-items:center;
  gap:14px;
  list-style:none;
  padding:20px 0
}

.project summary::-webkit-details-marker {
  display:none
}

.project-number,.project-type,.project-stack {
  font:10px/1.6 var(--mono);
  text-transform:uppercase;
  letter-spacing:.09em
}

.project summary h3 {
  font-size:calc(62 * var(--u));
  line-height:1.15
}

.project-arrow {
  transition:rotate .25s
}

.project[open] .project-arrow {
  rotate:90deg
}

.project summary:hover h3 {
  font-style:normal;
}

.project-body {
  display:grid;
  grid-template-columns:1fr 28%;
  padding:8px 0 30px 8%;
  gap:30px
}

.project-body p {
  max-width:500px;
  font-size:14px;
  line-height:1.7
}

.project-stack {
  display:block;
  margin-top:12px;
  font-size:9px;
  color:var(--muted)
}

.project-body .button {
  margin-top:22px
}

.project-seal {
  justify-self:center;
  height:165px
}

.project-seal img {
  width:125px;
  height:165px;
  filter:invert(1);
  object-fit:contain
}

.lore-panel {
  position:relative;
  margin-inline:var(--frame);
  color:var(--field);
  background:white
}

.lore-stage {
  position:relative;
  padding:calc(95 * var(--u)) calc(30 * var(--u)) 0 calc(150 * var(--u))
}

.lore-heading {
  position:absolute;
  right:calc(30 * var(--u));
  top:calc(28 * var(--u))
}

.lore-heading h2 {
  position:absolute;
  width:1px;
  height:1px;
  clip-path:inset(50%);
  overflow:hidden
}

.lore-heading>span {
  padding:4px 9px;
  border:1px solid currentColor;
  font:9px/1 var(--mono);
  letter-spacing:.08em
}

.lore-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:calc(150 * var(--u)) calc(30 * var(--u))
}

.lore-number {
  font:calc(18 * var(--u))/1.4 var(--mono);
  letter-spacing:.1em;
  text-transform:uppercase
}

.lore-card h3 {
  font-size:calc(64 * var(--u));
  letter-spacing:-.035em;
  line-height:1;
  margin-block:24px 30px;
  min-height:2em
}

.lore-image {
  position:relative;
  aspect-ratio:666/574;
  overflow:hidden;
  background:var(--field)
}

.lore-sprite {
  width:100%;
  height:100%;
  background:url('assets/plates.webp') no-repeat;
  background-size:300% 200%;
  transform:scale(1.2);
  transform-origin:center;
  filter:contrast(1.12);
  mix-blend-mode:screen
}

.sprite-eye {
  background-position:0 0
}

.sprite-hand {
  background-position:50% 0
}

.sprite-temple {
  background-position:100% 0
}

.sprite-threads {
  background-position:0 100%
}

.sprite-mask {
  background-position:50% 100%
}

.image-scan {
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(0deg,transparent 0 3px,rgb(var(--field-rgb) / .16) 3px 4px);
  pointer-events:none
}

.lore-card p {
  margin-top:calc(50 * var(--u));
  max-width:85%;
  font:calc(21 * var(--u))/1.48 var(--mono);
  letter-spacing:.09em;
  text-transform:uppercase
}

.sigil-rail {
  position:absolute;
  top:calc(150 * var(--u));
  left:calc(24 * var(--u));
  width:calc(84 * var(--u));
  bottom:calc(var(--word-height,280px) + 18px);
  z-index:5
}

.traveling-sigil {
  position:sticky;
  top:calc(var(--frame) + 18px);
  width:100%;
  aspect-ratio:2/3;
  border-radius:3px;
  background:var(--field);
  overflow:hidden
}

.traveling-sigil img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:68% 20%;
  transform:scale(2.25);
  transform-origin:68% 20%;
  mix-blend-mode:screen
}

/* Font ink metrics make the paper end at the letters, without a descent strip. */

.footer-runway {
  height:0;
  pointer-events:none
}

.motion-toggle {
  padding:8px 0;
  font:inherit;
  text-transform:inherit;
  letter-spacing:inherit;
  display:flex;
  align-items:center;
  gap:7px
}

.motion-dot {
  width:5px;
  height:5px;
  border:1px solid white;
  border-radius:50%;
  background:white
}

.motion-toggle[aria-pressed=true] .motion-dot {
  background:none
}

@media(min-width:1700px) {
  .hero {
    min-height:720px
  }

  .work-section {
    padding-block:150px 180px
  }

}

@media(max-width:1100px) and (min-width:761px) {
  :root {
    --u:.048vw;
    --gutter:9vw
  }

  .hero {
    min-height:510px
  }

  .hero-copy {
    padding-top:50px
  }

  .hero h1 {
    font-size:6.5vw
  }

  .lore-card p {
    max-width:95%;
    font-size:11px
  }

  .lore-card h3 {
    font-size:3.3vw
  }

  .nav-item {
    font-size:16px
  }

  .hero-description {
    font-size:11px
  }

}

@media(max-width:760px) {
  .site-header {
    height:95px;
    padding-top:21px;
    width:calc(100% - 56px);
    display:flex;
    justify-content:space-between
  }

  .brand {
    text-align:left;
    font-size:25px
  }

  .brand-caption {
    font-size:7px;
    margin-top:7px
  }

  .nav-item {
    display:none
  }

  .menu-toggle {
    display:flex;
    align-items:center;
    gap:9px;
    font:11px/1 var(--mono);
    text-transform:uppercase;
    padding:10px 0
  }

  .menu-toggle[aria-expanded=true] .icon {
    rotate:45deg
  }

  .mobile-nav:not([hidden]) {
    display:flex;
    flex-direction:column;
    position:absolute;
    top:86px;
    left:-16px;
    right:-16px;
    padding:24px 16px 30px;
    background:var(--field);
    gap:20px;
    border-bottom:1px solid var(--line)
  }

  .mobile-nav a {
    font:30px/1.1 var(--serif)
  }

  .hero {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
    max-height:none
  }

  .hero-copy {
    padding-top:28px
  }

  .hero-kicker {
    font-size:9px;
    max-width:290px;
    line-height:1.5;
    margin-bottom:21px
  }

  .hero h1 {
    font-size:12.5vw;
    line-height:1.02;
    letter-spacing:-.035em
  }

  .hero-description {
    font-size:11px;
    line-height:1.65;
    margin-top:24px
  }

  .hero-cta {
    font-size:10px;
    margin-top:20px
  }

  .hero-art {
    margin:20px -16px 0;
    width:calc(100% + 32px);
    height:auto;
    aspect-ratio:1;
    overflow:hidden
  }

  .hero-engraving {
    object-fit:contain;
    object-position:center
  }

  .hero-colophon {
    font-size:8px;
    gap:16px;
    padding-top:16px
  }

  .hero-colophon span:nth-child(2) {
    display:none
  }

  .hero-colophon span:last-child {
    text-align:right
  }

  .work-section {
    padding-block:85px
  }

  .section-label {
    font-size:9px
  }

  .section-label>span:last-child {
    display:none
  }

  .section-heading {
    display:block;
    margin:24px 0 32px
  }

  .section-heading h2 {
    font-size:40px
  }

  .section-heading p {
    margin-top:22px;
    font-size:10px
  }

  .project summary {
    grid-template-columns:23px 1fr 20px;
    gap:10px;
    padding-block:21px
  }

  .project summary h3 {
    font-size:28px
  }

  .project-number {
    font-size:9px
  }

  .project-type {
    display:none
  }

  .project-body {
    display:block;
    padding-left:33px
  }

  .project-body p {
    font-size:13px
  }

  .project-seal {
    display:none
  }

  .project-stack {
    font-size:8px
  }

  .project-body .button {
    font-size:9px
  }

  .lore-stage {
    padding:65px 21px 0 58px
  }

  .lore-heading {
    top:25px;
    right:21px
  }

  .lore-heading>span {
    font-size:8px
  }

  .lore-grid {
    grid-template-columns:1fr;
    gap:56px
  }

  .lore-number {
    font-size:10px
  }

  .lore-card h3 {
    font-size:36px;
    margin:20px 0 24px;
    line-height:1.04;
    min-height:0
  }

  .lore-card p {
    max-width:100%;
    font-size:11px;
    line-height:1.65;
    margin-top:23px;
    letter-spacing:.065em
  }

  .sigil-rail {
    left:10px;
    width:32px;
    top:100px;
    bottom:calc(var(--word-height,100px) + 12px)
  }

  .traveling-sigil {
    top:26px
  }

}

.footer-runway {
  scroll-margin-top:-1px
}

.sprite-eye,.sprite-threads,.sprite-mask {
  background-image:url('assets/plates.webp');
  background-size:300% 100%
}

.sprite-eye {
  background-position:0 50%
}

.sprite-threads {
  background-position:50% 50%
}

.sprite-mask {
  background-position:100% 50%
}

html {
  scroll-padding-top:0
}

.footer-runway {
  scroll-margin-top:0
}

.hero-engraving {
  filter:grayscale(1) contrast(1.35)
}

.archive-signature {
  width:100px;
  height:132px;
  object-fit:contain;
  filter:invert(1)
}

@media(max-width:760px) {
  .section-heading {
    position:relative
  }

  .archive-signature {
    position:absolute;
    right:0;
    top:0;
    width:55px;
    height:73px
  }

  .section-heading h2 {
    padding-right:55px
  }

}

/* Personal portfolio: artwork stays atmospheric; project content stays readable. */
.profile-intro {
  max-width:760px;
  font:15px/1.8 var(--sans);
  margin:0 0 38px;
  color:var(--muted);
}

.section-heading h2 {
  font-size:calc(73 * var(--u));
}

.project-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  border:0;
  align-items:start;
}

.project {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgb(255 255 255 / .3);
  background:var(--field);
}

.project::before {
  content:'';
  position:absolute;
  z-index:-2;
  inset:0;
  background:url('assets/plates.webp') 50% 0 / 300% 200%;
  filter:grayscale(1) contrast(1.3);
  mix-blend-mode:screen;
  opacity:.20;
  transition:opacity .3s,transform .6s;
}

.project:nth-child(2)::before {
  background-position:100% 100%;
}

.project:nth-child(3)::before {
  background-image:url('assets/plates.webp');
  background-size:300% 100%;
  background-position:50% 50%;
}

.project:nth-child(4)::before {
  background-position:100% 0;
}

.project::after {
  content:'';
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(0deg,var(--field),rgb(var(--field-rgb) / .2) 85%);
}

.project:hover::before,.project[open]::before {
  opacity:.32;
  transform:scale(1.035);
}

.project summary {
  min-height:240px;
  padding:28px;
  grid-template-columns:1fr auto;
  gap:14px;
  text-align:center;
}

.project-number {
  grid-row:1;
  grid-column:1/3;
}

.project summary h3 {
  grid-row:2;
  grid-column:1/3;
  font-size:clamp(32px,3.3vw,54px);
}

.project-type {
  display:block;
  grid-row:3;
  grid-column:1/3;
}

.project-disclosure {
  grid-row:4;
  grid-column:1/3;
  justify-self:center;
  display:flex;
  align-items:center;
  gap:13px;
  font:9px/1 var(--mono);
  text-transform:uppercase;
  letter-spacing:.1em;
  padding:10px 14px;
  background:white;
  color:var(--field);
}

.project-arrow {
  width:12px;
  height:12px;
}

.project-body {
  padding:0 28px 30px;
  display:block;
}

.project-body p {
  font-size:14px;
}

.project-seal {
  display:none;
}

.project-body .button {
  font-size:9px;
}

.menu-dialog {
  padding:30px;
  color:var(--field);
  background:white;
  border:0;
  width:calc(100vw - 24px);
  max-width:600px;
  max-height:calc(100dvh - 24px);
  margin:auto;
}

.menu-dialog::backdrop {
  background:rgb(var(--field-rgb) / .55);
  backdrop-filter:blur(7px);
}

.menu-top {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:16px;
  font:10px/1.4 var(--mono);
  letter-spacing:.08em;
}

.menu-close {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 0 12px 12px;
  font:10px/1 var(--mono);
  text-transform:uppercase;
}

.menu-close .icon {
  rotate:45deg;
  width:18px;
  height:18px;
}

.menu-dialog nav {
  margin:32px 0;
}

.menu-dialog nav a {
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px 0;
  border-bottom:1px solid rgb(var(--field-rgb) / .22);
  font:clamp(32px,9vw,48px)/1.2 var(--serif);
}

.menu-dialog nav a small {
  font:9px/1 var(--mono);
  align-self:center;
}

.menu-dialog nav a>span {
  margin-left:auto;
  font-size:24px;
}

.menu-colophon {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  font:9px/1.8 var(--mono);
}

html:has(dialog[open]) {
  overflow:hidden;
}

@media(max-width:760px) {
  .menu-toggle {
    padding:12px 14px;
    border:1px solid rgb(255 255 255 / .6);
    gap:12px;
    min-height:44px;
  }

  .burger-lines {
    display:grid;
    gap:5px;
    width:18px;
  }

  .burger-lines i {
    height:1px;
    background:currentColor;
  }

  .brand {
    font-size:22px;
  }

  .brand-caption {
    font-size:6px;
    letter-spacing:.12em;
  }

  .hero h1 {
    font-size:12.1vw;
  }

  .hero-kicker {
    font-size:8px;
  }

  .section-heading h2 {
    font-size:35px;
  }

  .profile-intro {
    font-size:13px;
    margin-bottom:28px;
  }

  .project-list {
    grid-template-columns:1fr;
    gap:16px;
  }

  .project summary {
    min-height:232px;
    padding:24px;
  }

  .project summary h3 {
    font-size:36px;
  }

  .project-type {
    font-size:9px;
  }

  .project-body {
    padding:0 24px 26px;
  }

  .sigil-rail {
    display:none;
  }

  .lore-stage {
    padding:65px 23px 0;
  }

  .lore-heading {
    right:23px;
  }

  .lore-card h3 {
    font-size:clamp(28px,8.4vw,44px);
  }

}

/* A single continuous panorama is divided across the four public projects. */
.project-list {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.project::before,.project:nth-child(2)::before,.project:nth-child(3)::before,.project:nth-child(4)::before {
  background-image:url('assets/plates.webp');
  background-size:400% 100%;
  background-position:0 50%;
  transform:none;
  opacity:.28;
}

.project:nth-child(2)::before {
  background-position:33.333% 50%;
}

.project:nth-child(3)::before {
  background-position:66.667% 50%;
}

.project:nth-child(4)::before {
  background-position:100% 50%;
}

.project:hover::before,.project[open]::before {
  opacity:.4;
  transform:none;
}

.project::after {
  background:linear-gradient(0deg,rgb(var(--field-rgb) / .75),rgb(var(--field-rgb) / .18));
}

.project summary {
  padding:28px 16px;
  min-height:280px;
}

.project summary h3 {
  font-size:clamp(25px,2.35vw,44px);
  min-height:2.3em;
  display:grid;
  align-content:center;
}

.project-body {
  padding:0 20px 25px;
}

.project-body p {
  font-size:13px;
}

.project-stack {
  font-size:10px;
}

.project-body .button {
  padding:12px;
  font-size:10px;
}

@media(max-width:1100px) and (min-width:761px) {
  .project-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .project summary h3 {
    font-size:34px;
    min-height:0;
  }

  .project summary {
    min-height:260px;
  }

}

@media(max-width:760px) {
  .project-list {
    grid-template-columns:1fr;
  }

  .project summary {
    min-height:260px;
    padding:26px;
  }

  .project summary h3 {
    font-size:38px;
    min-height:0;
  }

  .project-body {
    padding:0 26px 28px;
  }

  .project-body p,.profile-intro {
    font-size:15px;
  }

  .project-number,.project-type,.project-stack,.project-disclosure,.project-body .button {
    font-size:11px;
  }

  .lore-number,.lore-heading>span,.section-label,.hero-kicker {
    font-size:11px;
    line-height:1.5;
  }

  .hero-description,.lore-card p {
    font-size:13px;
  }

  .hero-cta {
    font-size:12px;
  }

  .hero-colophon {
    font-size:10px;
  }

  .section-heading p {
    font-size:12px;
    line-height:1.7;
  }

  .brand {
    font-weight:600;
  }

  .brand {
    font-size:24px;
  }

  .brand-caption {
    font-size:8px;
  }

  .hero-kicker {
    max-width:100%;
    letter-spacing:.035em;
  }

  .menu-toggle {
    width:48px;
    height:48px;
    padding:12px;
    display:grid;
    place-items:center;
    background:white;
    color:var(--field);
    border:0;
  }

  .menu-toggle-label {
    position:absolute;
    width:1px;
    height:1px;
    clip-path:inset(50%);
    overflow:hidden;
  }

  .burger-lines {
    width:23px;
    gap:5px;
  }

  .burger-lines i {
    height:2px;
  }

  .menu-dialog {
    padding:26px;
  }

  .menu-dialog nav a {
    font-size:clamp(38px,10.5vw,52px);
    padding-block:20px;
  }

  .menu-top,.menu-close,.menu-colophon {
    font-size:11px;
  }

  .menu-dialog nav a small {
    font-size:11px;
  }

  .menu-colophon {
    flex-direction:column;
    align-items:start;
    gap:12px;
  }

}

@media(max-width:760px) and (max-height:600px) {

  .menu-dialog nav {
    margin-block:15px;
  }

  .menu-dialog nav a {
    padding-block:10px;
    font-size:32px;
  }

}
/* Final proportions: normal word rhythm; the globe fits inside its counter. */
.project { --project-art-height:300px; }
.project summary { min-height:var(--project-art-height); }
.project::before,.project:nth-child(2)::before,.project:nth-child(3)::before,.project:nth-child(4)::before { height:var(--project-art-height); bottom:auto; background-size:400% auto; background-repeat:no-repeat; background-color:black; }
.project::after { height:var(--project-art-height); bottom:auto; }
/* A deliberately timed signature, with no progress indicators. */
.entry-screen { display:none; }
html.is-loading { overflow:hidden; }
html.is-loading .entry-screen { position:fixed; inset:0; z-index:1000; display:grid; place-content:center; justify-items:center; gap:30px; background:var(--field); color:white; }
html.is-loading:not(.is-revealing) .scroll-layer { visibility:hidden; }
.entry-glyph { width:clamp(84px,9vw,132px); height:auto; object-fit:contain; opacity:0; transform-origin:center; }
@media(max-width:760px) {
  .menu-toggle { background:var(--field); color:white; border:1px solid white; }
}
/* Preserve accent ink above the animated line boxes. */
.hero h1 .line { padding-top:.23em; margin-top:-.23em; }
.project::before,.project:nth-child(2)::before,.project:nth-child(3)::before,.project:nth-child(4)::before { opacity:.42; filter:grayscale(1) contrast(1.3); }
.project::before,.project:nth-child(2)::before,.project:nth-child(3)::before,.project:nth-child(4)::before { background-position-y:18%; }

/* A restrained light trace keeps the title stable and makes the card boundary visible. */
.project-edge {
  position:absolute; inset:0; z-index:4; pointer-events:none;
  padding:1.25px; opacity:0;
  background:linear-gradient(125deg,transparent 25%,var(--soft) 40%,white 50%,var(--soft) 60%,transparent 75%);
  background-size:300% 300%;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  transition:opacity .25s;
  animation:project-edge-trace 3.6s ease-in-out infinite alternate paused;
}
.project:hover .project-edge,.project:focus-within .project-edge {
  opacity:1; animation-play-state:running;
}
@keyframes project-edge-trace { from { background-position:15% 15%; } to { background-position:75% 75%; } }
@media(prefers-reduced-motion:reduce) { .project-edge { animation:none; } }
.service-stack { padding-top:16px; opacity:.75; font-size:11px!important; }
.sprite-eye { background-image:url('assets/voluta.webp'); background-size:cover; background-position:center; }
.sprite-temple { background-image:url('assets/iris.webp'); background-size:cover; background-position:center; transform:scale(1.22); }
html.js .project-list:not([data-art-ready]) .project::before,
html.js .lore-card:not([data-art-ready]) .lore-sprite { background-image:none; }
.hero-art { overflow:visible; }
.art-parallax { max-width:100%; }

@media(min-width:761px) { .hero-art { width:100%; margin-left:0; } .hero-engraving { object-fit:contain; object-position:center bottom; } }

.language-switch { position:absolute; right:0; bottom:-12px; display:flex; align-items:center; gap:7px; font:12px/1 var(--mono); }
.language-switch a { padding:6px 3px; border:0; background:transparent; color:inherit; font:inherit; opacity:.55; cursor:pointer; }
.language-switch a[aria-current=page] { opacity:1; text-decoration:underline; text-underline-offset:5px; }
.service-stack { display:grid; gap:18px; margin:24px 0 0; padding:18px 0 0; border-top:1px solid rgb(var(--field-rgb) / .18); opacity:1; }
.service-stack dt { font:700 15px/1.5 var(--mono); margin-bottom:5px; }
.service-stack dd { margin:0; font:13px/1.65 var(--sans); text-transform:none; letter-spacing:0; }
@media(max-width:760px) { .language-switch { right:64px; bottom:auto; top:17px; } .service-stack dd { font-size:14px; } }

html[lang=en] .hero h1 { font-size:min(6vw,calc(116 * var(--u))); }
@media(max-width:760px) { html[lang=en] .hero h1 { font-size:10.9vw; } }

/* Stop with the closing word seated inside the frame, rather than scrolling it away. */
html,body { overscroll-behavior-y:none; }
@media(max-width:760px) {
  .hero h1,.section-heading h2,.lore-card h3,#dialog-title,.menu-dialog nav > a { font-weight:600; }
  .service-stack dd { font-weight:500; }
}
@media(max-width:760px) {
  .footer-runway { height:0; }
  /* The address bar must not resize the closing composition mid-gesture. */
  .page-frame { border-top-width:0; border-bottom-width:0; }
}

@media(max-width:760px) {
  .lore-heading { left:23px; right:auto; text-align:left; }
  .footer-note-left { line-height:1.8; }
}

/* Preserve the complete portrait plate and its outer thread fans. */
.hero-engraving { object-fit:contain; object-position:center bottom; }
@media(max-width:760px) { .hero-art { width:calc(100% + 32px); margin:12px -16px 0; aspect-ratio:1197 / 1314; } }

.hero-engraving { object-position:center; filter:grayscale(1); }
@media(min-width:761px) { .hero-art { width:calc(100% + clamp(24px,6vw,88px)); } }

.sprite-hand { background-image:url('assets/pomona.webp'); background-size:cover; background-position:center; }

/* A calligraphic closing word; bleed the first glyph into the blue frame. */

/* Crop below the palm without transforming the sticky footer or its reveal. */
@media(max-width:760px) and (orientation:portrait) {
  .footer-note-left { bottom:24px; }
}

/* Trim the printed border and exterior paper together: one clean seal edge. */

@media(max-width:760px) {
  .lore-panel { border-top:var(--frame) solid var(--field); }
}

.reveal-shutter { position:absolute; left:0; width:100%; height:calc(100% / 6 + 1px); background:white; z-index:8; pointer-events:none; }

@media(max-width:760px) {
  .page-frame { border-top-width:var(--frame); }
}

/* Keep the first composition inside a phone viewport without cropping the plate. */
@media(min-width:761px) {
  .hero h1 { font-size:min(6.2vw,calc(120 * var(--u))); }
  .hero { min-height:420px; }
  .work-section { padding-top:70px; }
}
@media(max-width:760px) and (orientation:portrait) {
  .hero { height:calc(100svh - 112px); min-height:530px; gap:10px; }
  .hero-copy { padding-top:12px; flex:none; }
  .hero h1 { font-size:10.7vw; }
  html[lang=en] .hero h1 { font-size:10vw; }
  .hero-description { margin-top:16px; font-size:12px; }
  .hero-cta { margin-top:16px; }
  .hero-art { flex:1; height:auto; min-height:225px; aspect-ratio:auto; margin-top:0; }
  .work-section { padding-top:40px; }
}

/* Keep native scrolling and zoom, without painting a scrollbar. */
html { scrollbar-width:none; }
html::-webkit-scrollbar,body::-webkit-scrollbar { display:none; }
img,canvas { user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
@media(max-width:760px) and (orientation:landscape) {
  .hero { display:grid; grid-template-columns:52% 48%; height:calc(100svh - 110px); min-height:260px; gap:0; }
  .hero-copy { padding-top:12px; }
  .hero h1,html[lang=en] .hero h1 { font-size:5.5vw; }
  .hero-description { font-size:10px; margin-top:12px; }
  .hero-cta { margin-top:12px; padding:10px 14px; }
  .hero-art { width:100%; height:100%; margin:0; aspect-ratio:auto; }
  .work-section { padding-top:40px; }
}
.button { transition:color .35s ease,background-color .35s ease,border-color .35s ease; }
dialog { scrollbar-width:none; }
dialog::-webkit-scrollbar { display:none; }

/* Extra grid height is reserved below the rows, never distributed into them. */
.project-list { align-content:start; }

/* Keep the badge dimensions while its four edges draw independently of text. */
.lore-heading > span { position:relative; border-color:transparent; }
.lore-heading > span::before {
  content:''; position:absolute; inset:-1px; pointer-events:none;
  background:linear-gradient(currentColor,currentColor) left top / var(--frame-x,100%) 1px no-repeat,
    linear-gradient(currentColor,currentColor) right bottom / var(--frame-x,100%) 1px no-repeat,
    linear-gradient(currentColor,currentColor) right top / 1px var(--frame-y,100%) no-repeat,
    linear-gradient(currentColor,currentColor) left bottom / 1px var(--frame-y,100%) no-repeat;
}

.menu-emblem-frame { width:44px; height:66px; margin-right:auto; flex:none; overflow:hidden; border-radius:3px; background:var(--field); }
.menu-emblem { width:100%; height:100%; object-fit:cover; object-position:68% 20%; transform:scale(2.25); transform-origin:68% 20%; mix-blend-mode:screen; }

/* Share content rows so each service stack begins after the tallest description. */
@media(min-width:761px) {
  .lore-grid { row-gap:0; }
  .lore-card { display:grid; grid-template-rows:subgrid; grid-row:span 5; row-gap:0; }
}
body { caret-color:transparent; }
input,textarea,[contenteditable="true"] { caret-color:auto; }

.word-assembly {
  margin:170px calc(-30 * var(--u)) 0 calc(-150 * var(--u));
  overflow:hidden;
  position:relative;
  height:var(--word-height,280px)
}
.word-letters {
  position:absolute;
  top:var(--word-top,-40px);
  left:var(--word-left,-2px);
  font:400 var(--word-size,29vw)/1 var(--serif);
  letter-spacing:.012em;
  white-space:nowrap;
  width:max-content
}

@media(max-width:760px) {

  .word-assembly {
    margin:90px -21px 0 -58px
  }

}



.baseline-probe {
  display:inline-block;
  width:0;
  height:0;
  padding:0;
  margin:0;
  border:0;
  vertical-align:baseline
}

.word-letters {
  transform:scaleX(1.013);
  transform-origin:top left
}

@media(max-width:760px) {

  .word-assembly {
    margin:90px -23px 0;
  }

}

@media(max-width:760px) {

  .word-letters {
    font-weight:600;
  }

}

.contact-options { display:grid; gap:22px; padding:12px 0 28px; font:14px/1.5 var(--mono); }
.contact-options .button { justify-self:start; }
@media(max-width:760px) {
  .contact-options > a:not(.button) { font-weight:500; }
}
.word-letters { font-family:'Cormorant Garamond',var(--serif); font-weight:600; left:calc(var(--word-left,0px) - 3px); }
