.g3d-site {
  color-scheme: light;
  --outside: var(--site-background);
  --card: var(--site-surface);
  --ink: var(--site-text);
  --muted: #595750;
  --rule: var(--site-border);
  --line: #d2cec5;
  --accent: var(--site-accent);
  --sans: var(--site-body-font);
  --serif: var(--site-heading-font);
}

.g3d-site, .g3d-site * { box-sizing: border-box; }

.g3d-site, .g3d-site { min-width: 0; min-height: 100%; }

.g3d-site {
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.g3d-site ::selection { background: var(--accent); color: var(--card); }
.g3d-site a { color: inherit; text-decoration: none; }
.g3d-site h1, .g3d-site h2, .g3d-site p { margin: 0; }

.g3d-site :focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.g3d-site .skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 11px;
  background: var(--ink);
  color: var(--card);
  font-size: 12px;
  transform: translateY(-150%);
}

.g3d-site .skip-link:focus { transform: translateY(0); }

.g3d-site .card-stage {
  display: grid;
  place-items: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 22px;
  outline: none;
}

.g3d-site .business-card {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 168px;
  width: min(1040px, 100%);
  height: min(660px, calc(100dvh - 44px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--card);
}

.g3d-site .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.g3d-site .card-header .card-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.045em;
}

.g3d-site .card-header .card-title span {
  position: relative;
  top: -.52em;
  margin-left: 3px;
  font-size: .48em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}

.g3d-site .language-switch {
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}

.g3d-site .language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); }
.g3d-site .language-switch a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); }

.g3d-site .card-body {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  min-height: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.g3d-site .introduction, .g3d-site .examples { min-width: 0; padding: clamp(22px, 3vw, 38px); }

.g3d-site .introduction {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.g3d-site .eyebrow, .g3d-site .examples-heading, .g3d-site .disciplines, .g3d-site .card-footer > p, .g3d-site .example-links a span, .g3d-site .example-links a small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.g3d-site .eyebrow { color: var(--muted); }

.g3d-site .introduction :is(h1,h2) {
  max-width: 430px;
  margin-top: clamp(30px, 5vh, 50px);
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 48px);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.g3d-site .summary {
  max-width: 390px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.45;
}

.g3d-site .disciplines {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
}

.g3d-site .disciplines span { padding-bottom: 3px; border-bottom: 1px solid var(--rule); }

.g3d-site .maker-mark {
  position: absolute;
  right: -18px;
  bottom: -25px;
  width: 120px;
  height: 120px;
  transform: rotate(18deg);
  opacity: .16;
}

.g3d-site .maker-mark i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
}

.g3d-site .maker-mark i:nth-child(2) { transform: rotate(30deg); }
.g3d-site .maker-mark i:nth-child(3) { transform: rotate(60deg); }

.g3d-site .examples { border-left: 1px solid var(--rule); }

.g3d-site .examples-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.g3d-site .examples-heading h2 { font: inherit; }
.g3d-site .examples-heading > span { color: var(--muted); }

.g3d-site .example-links { margin-top: 20px; border-top: 1px solid var(--rule); }

.g3d-site .example-links a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background-color 180ms ease;
}

.g3d-site .example-links a:last-child { border-bottom-color: var(--rule); }
.g3d-site .example-links a span, .g3d-site .example-links a small { color: var(--muted); }
.g3d-site .example-links a strong { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.g3d-site .example-links a b { color: var(--accent); font-size: 16px; font-weight: 400; }

.g3d-site .card-footer {
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 0 18px 12px;
}

.g3d-site .email {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr) 20px;
  align-items: center;
  gap: 20px;
}

.g3d-site .email > span { font-size: 12px; color: var(--muted); }
.g3d-site .email > strong { font-family: var(--serif); font-size: clamp(20px, 2.7vw, 31px); font-weight: 400; letter-spacing: -.025em; }
.g3d-site .email > b { color: var(--accent); font-size: 18px; font-weight: 400; }

.g3d-site .card-footer > p {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.g3d-site .company-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
}

.g3d-site .maker-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.g3d-site .maker-portrait {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 50%;
  outline: 1px solid rgb(173 66 28 / 24%);
  outline-offset: 2px;
  background: #c4a56c;
}

/* The source photo is already a square head-and-shoulders crop. */
.g3d-site .maker-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g3d-site .maker-name { display: grid; gap: 3px; min-width: 0; }
.g3d-site .maker-name .maker-bio {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.35;
}
.g3d-site .maker-name .maker-bio li { display: block; }

.g3d-site .maker-identity {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.g3d-site .maker-portrait, .g3d-site .maker-name, .g3d-site .maker-name .maker-bio { transition: font-size .22s ease, width .22s ease, height .22s ease, flex-basis .22s ease; }

/* Expanded micro CV: double-size text, larger portrait, card grows taller. */
.g3d-site .business-card.cv-open {
  grid-template-rows: 68px var(--cv-body-height, minmax(0, 1fr)) auto;
  height: auto;
}

.g3d-site .cv-open .card-footer { min-height: 168px; }
.g3d-site .cv-open .maker-identity { gap: 16px; }
.g3d-site .cv-open .maker-portrait { width: 72px; height: 72px; flex-basis: 72px; }
.g3d-site .cv-open .maker-name { gap: 6px; font-size: 20px; }
.g3d-site .cv-open .maker-name .maker-bio { font-size: 18px; }
.g3d-site .cv-open .maker-name .maker-bio { display: grid; gap: 4px; }
.g3d-site .cv-open .company-details { grid-template-columns: auto minmax(0, 1fr) auto; }
.g3d-site .cv-open .company-details { font-size: min(18px, calc((100vw - 56px) / 16)); transition: font-size .22s ease; }
.g3d-site .cv-open .company-details > a { justify-self: center; }
.g3d-site .cv-open .maker-name .maker-bio li { white-space: nowrap; }

/* Quiet, mismatched markers: each CV line gets its own tiny geometric mark. */
.g3d-site .cv-open .maker-name .maker-bio li::before {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .75em;
  vertical-align: .06em;
  opacity: .8;
  box-sizing: border-box;
}
.g3d-site .cv-open .maker-name .maker-bio li:nth-child(1)::before { border: 1px solid var(--accent); transform: rotate(45deg) scale(.85); }
.g3d-site .cv-open .maker-name .maker-bio li:nth-child(2)::before {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
}
.g3d-site .cv-open .maker-name .maker-bio li:nth-child(3)::before { background: var(--accent); clip-path: polygon(0 100%, 100% 100%, 50% 8%); }
.g3d-site .cv-open .maker-name .maker-bio li:nth-child(4)::before { border: 1px solid var(--accent); border-radius: 50%; }

.g3d-site .company-details > :first-child { justify-self: start; }
.g3d-site .company-details > a { color: var(--accent); }
.g3d-site .company-details > :last-child { justify-self: end; }

@media (hover: hover) and (pointer: fine) {
  .g3d-site .example-links a:hover { padding-inline: 10px; background: rgb(173 66 28 / 7%); }
  .g3d-site .email:hover > strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}

@media (max-width: 720px) {
  .g3d-site .card-stage { display: block; padding: 10px; }
  .g3d-site .business-card {
    grid-template-rows: 54px auto auto;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 20px);
  }
  .g3d-site .card-header { padding: 10px 13px; }
  .g3d-site .card-body { grid-template-columns: 1fr; }
  .g3d-site .introduction, .g3d-site .examples { padding: 20px 16px; }
  .g3d-site .introduction { min-height: 305px; }
  .g3d-site .introduction :is(h1,h2) { max-width: 355px; margin-top: 28px; font-size: clamp(32px, 9.7vw, 42px); }
  .g3d-site .summary { max-width: 340px; margin-top: 16px; font-size: 13px; }
  .g3d-site .disciplines { margin-top: 26px; padding-top: 0; }
  .g3d-site .maker-mark { right: -28px; bottom: -35px; }
  .g3d-site .examples { border-top: 1px solid var(--rule); border-left: 0; }
  .g3d-site .examples-heading { min-height: 22px; }
  .g3d-site .example-links { margin-top: 12px; }
  .g3d-site .example-links a { grid-template-columns: 22px minmax(0, 1fr) 17px; gap: 10px; min-height: 49px; }
  .g3d-site .example-links a small { display: none; }
  .g3d-site .card-footer { min-height: 140px; padding-inline: 13px; }
  .g3d-site .email { grid-template-columns: 1fr 18px; gap: 8px; padding-block: 12px; }
  .g3d-site .email > span { display: none; }
  .g3d-site .email > strong { overflow-wrap: anywhere; font-size: clamp(20px, 6vw, 25px); }
  .g3d-site .company-details {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    font-size: 9px;
  }
  .g3d-site .maker-identity { grid-row: span 2; }
  .g3d-site .company-details > a { justify-self: end; }
  .g3d-site .business-card.cv-open { grid-template-rows: 54px auto auto; }
  .g3d-site .cv-open .company-details { gap: 12px; }
  .g3d-site .cv-open .maker-identity { grid-column: 1 / -1; grid-row: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
  .g3d-site .cv-open .company-details > a { grid-column: 1; justify-self: start; }
  .g3d-site .cv-open .company-details > :last-child { grid-column: 2; }
  .g3d-site .cv-open .maker-portrait { width: 60px; height: 60px; flex-basis: 60px; }
  .g3d-site .cv-open .company-details { grid-template-columns: minmax(0, 1fr) auto; }
  .g3d-site .cv-open .maker-name { width: 100%; font-size: min(20px, calc((100vw - 56px) / 20)); }
  .g3d-site .cv-open .maker-name .maker-bio { font-size: min(18px, calc((100vw - 56px) / 25)); }
  .g3d-site .cv-open .maker-name .maker-bio li { white-space: nowrap; }
}

@media (max-height: 690px) and (max-width: 720px) {
  .g3d-site .introduction { min-height: 270px; padding-block: 15px; }
  .g3d-site .introduction :is(h1,h2) { margin-top: 20px; font-size: 31px; }
  .g3d-site .summary { margin-top: 12px; }
  .g3d-site .disciplines { margin-top: 17px; }
  .g3d-site .examples { padding-block: 14px; }
  .g3d-site .example-links a { min-height: 43px; }
  .g3d-site .card-footer { min-height: 122px; }
}

@media (prefers-reduced-motion: reduce) {
  .g3d-site, .g3d-site *, .g3d-site *::before, .g3d-site *::after { transition: none !important; }
}

/* Five project links remain visible on shorter desktop screens. */
@media (min-width: 721px) and (max-height: 690px) {
  .g3d-site .examples { padding-block: 18px; }
  .g3d-site .example-links { margin-top: 12px; }
  .g3d-site .example-links a { min-height: 44px; }
}

/* Core UI stays outside this scope and outside the card's stacking contexts. */
html:has(.g3d-site),body:has(.g3d-site){background:var(--site-background)}
.g3d-site{line-height:normal;font-size:16px;--g3d-card-height:max(560px,min(660px,calc(100dvh - 44px)))}
.g3d-site .business-card{grid-template-rows:68px auto;height:auto;min-height:var(--g3d-card-height)}
.g3d-site .g3d-content{display:grid;grid-template-columns:.92fr 1.08fr;grid-template-rows:minmax(min-content,calc(var(--g3d-card-height) - 238px)) minmax(52.4375px,auto) auto auto;min-width:0;outline:none}
.g3d-site .g3d-content>.content-block{margin:0;border:0;border-radius:0;background:transparent;min-width:0;position:relative}
.g3d-site .g3d-content>.content-block>.block-inner{padding:0;height:100%;min-width:0}
.g3d-site .g3d-content>.block-hero,.g3d-site .g3d-content>.block-cards{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.g3d-site .introduction,.g3d-site .examples{height:100%;margin:0}
.g3d-site .introduction :is(h1,h2){text-wrap:wrap;color:var(--ink);margin-bottom:0;line-height:1}
.g3d-site .eyebrow{margin-bottom:0}
.g3d-site .maker-mark{pointer-events:none}
.g3d-site .summary .body-text{font:inherit;line-height:inherit;white-space:normal;color:inherit;max-width:none;margin:0}
.g3d-site .summary p{margin:0}
.g3d-site .example-links a,.g3d-site .example-links .example-row{margin:0;text-decoration:none}
.g3d-site .example-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto 18px;align-items:center;gap:14px;min-height:54px;border-bottom:1px solid var(--line)}
.g3d-site .example-row strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.g3d-site .example-row>span,.g3d-site .project-kind{font-size:10px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.g3d-site .project-kind .body-text{font:inherit;line-height:inherit;color:inherit;margin:0;white-space:normal}
.g3d-site .project-kind .body-text p{margin:0}
.g3d-site .availability .body-text,.g3d-site .availability .rich-editor{font:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;white-space:normal;text-align:right}
.g3d-site .availability .body-text p{margin:0}
.g3d-site .example-links a strong{white-space:normal;overflow-wrap:anywhere}
.g3d-site .examples-heading h2{font:inherit;margin:0;line-height:normal;letter-spacing:inherit;text-wrap:wrap}
.g3d-site .g3d-content>.content-block:not(.block-hero):not(.block-cards){grid-column:1/-1}
.g3d-site .g3d-content>h1{grid-column:1/-1;padding:18px}
.g3d-site .g3d-content>.block-contacts{padding:0 18px}
.g3d-site .email{height:100%;text-decoration:none}
.g3d-site .g3d-content>.block-text{margin:0 18px}
.g3d-site .availability{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;line-height:normal}
.g3d-site .g3d-content>.block-image-text{padding:0 18px 12px}
.g3d-site .maker-identity{position:relative;min-height:0;justify-content:flex-start;border-radius:0}
.g3d-site .maker-name>.body-text,.g3d-site .maker-name .maker-bio .body-text{font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;white-space:normal;max-width:none;margin:0}
.g3d-site .maker-name .maker-bio :is(ul,ol,li,p){list-style:none;margin:0;padding:0;line-height:inherit}
.g3d-site .maker-name .maker-bio :is(li,p){white-space:normal}
.g3d-site .maker-name .maker-bio li{display:block}
.g3d-site .cv-open .maker-bio :is(ul,ol){display:grid;gap:4px}
.g3d-site .cv-toggle{position:absolute;inset:0;width:100%;height:100%;min-height:44px;border:0;border-radius:0;padding:0;background:transparent;color:inherit}
.g3d-site .cv-toggle:hover{background:transparent}
.g3d-site .business-card.cv-open{grid-template-rows:68px auto}
.g3d-site .cv-open .g3d-content{grid-template-rows:minmax(min-content,var(--cv-body-height,422px)) auto auto auto}
.g3d-site .g3d-content>.content-block:not(:is(.block-hero,.block-cards,.block-contacts,.block-text,.block-image-text)){grid-column:1/-1;padding:24px 18px}
.g3d-site .company-details>span:last-child{text-align:right}
.g3d-site .company-details :is(a,span){text-decoration:none}
.editing .g3d-site .business-card{overflow:visible}
.editing .g3d-site .g3d-content>.content-block>.block-inner{padding:0}
.editing .g3d-site .g3d-content>.block-hero,.editing .g3d-site .g3d-content>.block-cards{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.editing .g3d-site .cv-toggle{inset:0 auto auto 0;width:44px;height:44px}
.editing .g3d-site .maker-name .rich-toolbar{font:12px system-ui;color:#20332f}
.editing .g3d-site .rich-editor{margin:0;padding:0;border:0;background:transparent;min-width:0}
.editing .g3d-site .rich-editor .tiptap{font:inherit;line-height:inherit;color:inherit;min-height:1em}
.editing .g3d-site .g3d-content>.is-hidden{opacity:.5}
html.qr-intro,html.qr-intro body,html[data-theme-intro] body{background:#000}
html.qr-intro body{overflow:hidden}
html.qr-intro .g3d-site .card-stage,html[data-theme-intro] .g3d-site .card-stage{opacity:0;animation:g3d-intro-failsafe .01s linear 4s forwards}
@keyframes g3d-intro-failsafe{to{opacity:1}}
.qr-intro-layer{position:fixed;inset:0;z-index:50;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
.qr-intro-layer canvas{display:block;width:100%;height:100%}
@media(max-width:720px){
 .g3d-site .business-card,.g3d-site .business-card.cv-open{grid-template-rows:54px auto;min-height:calc(100dvh - 20px)}
 .g3d-site .g3d-content,.g3d-site .cv-open .g3d-content{grid-template-columns:1fr;grid-template-rows:auto}
 .g3d-site .g3d-content>.block-hero{border-bottom:0}
 .g3d-site .g3d-content>.block-contacts{padding:0 13px}
 .g3d-site .g3d-content>.block-text{margin:0 13px}
 .g3d-site .g3d-content>.block-image-text{padding:0 13px 12px}
 .g3d-site .g3d-content>.block-hero .introduction{min-height:305px}
}
@media(max-height:690px) and (max-width:720px){.g3d-site .g3d-content>.block-hero .introduction{min-height:270px}}
@media(prefers-reduced-motion:reduce){html[data-theme-intro] .g3d-site .card-stage{opacity:1;animation:none}}
