
:root {
  color-scheme: light dark;
  --blue: #1546d8;
  --blue-deep: #0e34ad;
  --paper: #f2efe7;
  --paper-2: #e5e0d4;
  --ink: #11110f;
  --muted: #64625c;
  --line: rgba(17,17,15,.22);
  --white: #f7f4ec;
  --card-shadow: 0 24px 80px rgba(20,24,38,.18);
  --ease: cubic-bezier(.22,1,.36,1);
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11110f;
  --paper-2: #1a1a17;
  --ink: #f2efe7;
  --muted: #aaa79e;
  --line: rgba(242,239,231,.22);
  --white: #f4f0e7;
  --card-shadow: 0 24px 90px rgba(0,0,0,.48);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --paper: #11110f;
    --paper-2: #1a1a17;
    --ink: #f2efe7;
    --muted: #aaa79e;
    --line: rgba(242,239,231,.22);
    --white: #f4f0e7;
    --card-shadow: 0 24px 90px rgba(0,0,0,.48);
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; }
html.is-card-turning,
html.is-card-turning body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper-2);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--paper-2);
  opacity: .82;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: var(--paper);
  box-shadow: -28px 0 72px rgba(20,24,38,.14);
  transform: translateX(102%);
}
html.is-page-leaving { cursor: progress; }
html.is-page-leaving body { pointer-events: none; }
html.is-page-leaving body::after {
  animation: page-curtain-from-right .54s cubic-bezier(.76,0,.2,1) both;
}
html.is-page-leaving.page-leaving-to-card body::after {
  box-shadow: 28px 0 72px rgba(20,24,38,.14);
  animation-name: page-curtain-from-left;
}
html.is-page-leaving:not(.page-leaving-to-card) .viewport,
html.is-page-leaving:not(.page-leaving-to-card) .page-controls,
html.is-page-leaving:not(.page-leaving-to-card) .legal-wrap {
  animation: page-content-out-left .42s cubic-bezier(.55,.02,.42,1) both;
}
html.is-page-leaving.page-leaving-to-card .viewport,
html.is-page-leaving.page-leaving-to-card .page-controls,
html.is-page-leaving.page-leaving-to-card .legal-wrap {
  animation: page-content-out-right .42s cubic-bezier(.55,.02,.42,1) both;
}
@keyframes page-curtain-from-right {
  from { transform: translateX(102%); }
  to { transform: translateX(0); }
}
@keyframes page-curtain-from-left {
  from { transform: translateX(-102%); }
  to { transform: translateX(0); }
}
@keyframes page-content-out-left {
  to { opacity: 0; filter: blur(4px); transform: translateX(-24px) scale(.985); }
}
@keyframes page-content-out-right {
  to { opacity: 0; filter: blur(4px); transform: translateX(24px) scale(.985); }
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
::selection { background: #ff5c35; color: #fff; }

.skip-link {
  position: fixed; left: 20px; top: -70px; z-index: 999;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  transition: top .2s ease;
}
.skip-link:focus { top: 20px; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

.viewport {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(110px, 14vh, 154px) clamp(28px, 5vw, 76px) clamp(54px, 8vh, 88px);
}
.scene {
  width: min(1040px, calc(100vw - clamp(96px, 11vw, 210px)), calc((100svh - 190px) * 1.72));
  aspect-ratio: 1.72 / 1;
  height: auto;
  min-height: 0;
  perspective: 1600px;
  perspective-origin: 50% 44%;
}
.card-shell {
  position: relative;
  width: 100%; height: 100%;
  background: transparent;
  transform-origin: 50% 50%;
}
.js .card-shell {
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1.28s cubic-bezier(.58,.02,.16,1.12);
  transition-timing-function: linear(
    0 0%,
    .004 5%,
    .015 10%,
    .035 15%,
    .068 20%,
    .12 25%,
    .205 30%,
    .34 35%,
    .52 40%,
    .69 45%,
    .805 50%,
    .88 55%,
    .93 60%,
    .96 64%,
    .982 68%,
    1 72%,
    1.008 75%,
    1.0125 77.5%,
    1.014 79%,
    1.0144 80%,
    1.0145 81%,
    1.0143 82%,
    1.0135 83%,
    1.012 84%,
    1.0098 85%,
    1.007 86%,
    1.0038 87%,
    1.0005 88%,
    .9978 89%,
    .9961 90%,
    .9955 91%,
    .99565 92%,
    .99607 93%,
    .99667 94%,
    .99738 95%,
    .99812 96%,
    .99883 97%,
    .99943 98%,
    .99985 99%,
    .99996 99.5%,
    1 100%
  );
  will-change: transform;
}
.js .card-shell.is-flipped { transform: rotateY(-180deg); }
.card-face {
  position: absolute; inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--paper);
  box-shadow: var(--card-shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.js .card-front { transform: translateZ(.75px); }
.card-back { transform: rotateY(180deg); }
.js .card-back { transform: rotateY(180deg) translateZ(.75px); }
.js .card-shell::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -1px;
  bottom: 1px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(122,117,105,.7), rgba(255,255,255,.34));
  transform: rotateY(90deg);
  transform-origin: left center;
  pointer-events: none;
}
.js .card-face[aria-hidden="true"] { pointer-events: none; }
.js .card-face[aria-hidden="false"] { pointer-events: auto; }
.no-js .card-face { position: relative; min-height: 100svh; transform: none; }

/* THEME TRANSITION */
.theme-transitioning body,
.theme-transitioning body::before,
.theme-transitioning .card-shell,
.theme-transitioning .card-back,
.theme-transitioning .back-left,
.theme-transitioning .back-right,
.theme-transitioning .utility-group,
.theme-transitioning .language-option,
.theme-transitioning .theme-choice,
.theme-transitioning .contact-row,
.theme-transitioning .back-footer,
.theme-transitioning .back-kicker,
.theme-transitioning .credentials {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, opacity .28s ease;
}

/* PAGE CONTROLS */
.page-controls {
  position: fixed;
  top: clamp(18px, 3vw, 30px);
  right: clamp(18px, 3vw, 30px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
}
.utility-group {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 8px 24px rgba(20,24,38,.08);
}
.language-group,
.theme-group {
  position: relative;
  isolation: isolate;
}
.language-group::before,
.theme-group::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  height: 28px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(20,24,38,.12);
  transform: translateX(0);
  transition: transform .32s var(--ease), background-color .28s ease, box-shadow .28s ease;
}
body[data-language="en"] .language-group::before,
html[data-theme="dark"] .theme-group::before {
  transform: translateX(100%);
}
@supports (backdrop-filter: blur(10px)) {
  .utility-group {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.language-option,
.theme-choice {
  display: grid;
  place-items: center;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
}
.language-option {
  position: relative;
  z-index: 1;
  min-width: 32px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .24s ease, transform .18s var(--ease);
}
.language-option,
.theme-choice { cursor: pointer; }
.language-option.is-active {
  background: transparent;
  color: var(--paper);
}
.theme-choice {
  position: relative;
  z-index: 1;
  transition: color .24s ease, transform .18s var(--ease);
}
.theme-choice[aria-pressed="true"] {
  background: transparent;
  color: var(--paper);
}
.language-option:hover,
.language-option:focus-visible,
.theme-choice:hover,
.theme-choice:focus-visible {
  color: var(--ink);
}
.language-option.is-active:hover,
.language-option.is-active:focus-visible,
.theme-choice[aria-pressed="true"]:hover,
.theme-choice[aria-pressed="true"]:focus-visible {
  color: var(--paper);
}
.language-option:active { transform: scale(.92); }
.language-option:focus-visible,
.theme-choice:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.theme-choice {
  width: 30px;
  padding: 0;
}
.theme-choice svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease), opacity .22s ease;
}
.theme-choice:hover svg { transform: scale(1.08); }
.theme-choice:active { transform: scale(.92); }
.theme-choice:active svg { transform: scale(.96); }

/* FRONT */
.card-front {
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
}
.front-copy {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 2.7vw, 42px);
  overflow: hidden;
}
.front-copy::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.13) calc(25% - 1px), rgba(255,255,255,.13) 25%);
  pointer-events: none;
}
.front-top, .front-main, .front-bottom { position: relative; z-index: 1; }
.front-top {
  display: flex; align-items: center;
}
.monogram {
  display: inline-flex; align-items: center;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.text-button {
  border: 0; padding: 0; background: none; cursor: pointer;
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
}
.text-button::after, .footer-links a::after, .underlink::after, .contact-row::after {
  content: ""; display: block; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.text-button:hover::after, .text-button:focus-visible::after,
.footer-links a:hover::after, .footer-links a:focus-visible::after,
.underlink:hover::after, .underlink:focus-visible::after,
.contact-row:hover::after, .contact-row:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}
.front-main {
  align-self: center;
  padding-block: clamp(14px, 3vh, 30px);
}
.eyebrow {
  margin: 0 0 22px;
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  opacity: .76;
}
.name {
  margin: 0;
  font-size: clamp(54px, 5.6vw, 88px);
  line-height: .84;
  letter-spacing: -.07em;
  text-transform: uppercase;
  font-weight: 760;
}
.name span { display: block; overflow: hidden; }
.name i { display: block; font-style: normal; transform: translateY(110%); animation: rise .95s .12s var(--ease) forwards; }
.name span:nth-child(2) i { animation-delay: .22s; }
@keyframes rise { to { transform: translateY(0); } }
.statement {
  max-width: 15ch;
  margin: clamp(18px, 2vw, 24px) 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.statement em { font-weight: 400; }
.front-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
}
.meta-line { margin: 0; font-size: 12px; line-height: 1.42; opacity: .8; }
.flip-button {
  display: inline-flex; align-items: center; gap: 18px;
  border: 0; background: none; color: inherit; padding: 0; cursor: pointer;
  font-size: 11px; letter-spacing: .04em; white-space: nowrap;
}
.flip-disc {
  width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background .25s ease, color .25s ease;
}
.flip-disc svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.flip-button:hover .flip-disc, .flip-button:focus-visible .flip-disc { transform: rotate(180deg); background: var(--white); color: var(--blue); }

.portrait-panel { position: relative; min-width: 0; overflow: hidden; background: #c7c3ba; }
.portrait-panel::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 18px 0 40px rgba(0,0,0,.08);
  pointer-events: none;
}
.portrait-panel img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%;
  transform: scale(1.025); animation: portrait-in 1.4s .1s var(--ease) both;
}
@keyframes portrait-in { from { transform: scale(1.09); filter: saturate(.65); } to { transform: scale(1.025); filter: saturate(1); } }
.portrait-flip {
  position: absolute; z-index: 2; right: 20px; bottom: 20px;
  gap: 11px;
  color: #fff;
  padding: 4px 4px 4px 11px;
  background: rgba(8,12,20,.54);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
  text-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.portrait-flip .flip-disc {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.68);
}
.portrait-flip .flip-disc svg {
  width: 18px;
  height: 18px;
}
.portrait-flip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* BACK */
.back-inner {
  height: 100%; display: grid; grid-template-columns: 39% 61%;
}
.back-left {
  position: relative;
  padding: clamp(22px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
  display: grid; grid-template-rows: auto 1fr auto;
}
.back-left::after {
  content: ""; position: absolute; width: clamp(92px, 10vw, 160px); aspect-ratio: 1;
  border-radius: 50%; background: #ff5c35; right: clamp(52px, 6vw, 86px); bottom: clamp(124px, 18vh, 184px);
  mix-blend-mode: multiply; opacity: .95;
}
html[data-theme="dark"] .back-left::after { mix-blend-mode: normal; }
.back-kicker { margin: 0; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hello {
  place-self: center; margin: 0; position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 400; font-style: italic; text-align: center;
  font-size: clamp(68px, 6vw, 118px); line-height: .88; letter-spacing: -.05em;
}
.back-note { grid-row: 3; position: relative; z-index: 1; margin: 12px 0 0; max-width: 280px; font-size: 14px; line-height: 1.42; }
.back-right {
  padding: clamp(22px, 2.5vw, 38px);
  display: grid; grid-template-rows: auto 1fr auto; min-width: 0;
}
.back-top { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.back-content { align-self: start; padding-top: 22px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: start; gap: 16px;
  padding: clamp(14px, 1.8vh, 20px) 0;
  border-bottom: 1px solid var(--line);
}
.contact-row::after { display: none; }
.contact-row .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-row strong {
  min-width: 0; overflow-wrap: break-word; word-break: normal; text-wrap: pretty;
  font-size: clamp(21px, 1.8vw, 30px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500;
}
.contact-row .arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.contact-row .arrow svg {
  display: block; width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round;
}
.contact-row:hover .arrow, .contact-row:focus-visible .arrow { transform: translate(5px,-5px); }
.credentials {
  display: grid;
  grid-template-columns: max-content repeat(3, max-content);
  align-items: center;
  column-gap: 22px;
  row-gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.credentials-label {
  display: block;
  align-self: center;
  line-height: 1.25;
}
.credentials a {
  display: inline-grid;
  grid-template-columns: max-content 13px;
  align-items: center;
  column-gap: 5px;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.25;
}
.credentials a > span:first-child {
  position: relative;
  display: block;
  line-height: 1.25;
}
.credentials a > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.credentials a:hover > span:first-child::after,
.credentials a:focus-visible > span:first-child::after {
  transform: scaleX(1);
  transform-origin: left;
}
.credential-arrow {
  display: block;
  width: 13px;
  height: 13px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.credentials a:hover .credential-arrow,
.credentials a:focus-visible .credential-arrow {
  transform: translate(3px, -3px);
}
.back-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { display: inline-block; }
.copyright-mobile { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 999;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 16px; background: var(--ink); color: var(--paper); font-size: 13px;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }



.mobile-flipbar {
  display: none;
}
.mobile-flip-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 2px 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-flip-text {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
.mobile-flip-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  display: none;
}
.mobile-flip-disc {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .46s var(--ease), background-color .22s ease, color .22s ease;
}
.mobile-flip-disc svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .mobile-flip-button:hover .mobile-flip-disc {
    transform: rotate(180deg);
    background: var(--ink);
    color: var(--paper);
  }
}
.mobile-flip-button:active .mobile-flip-disc {
  transform: rotate(180deg) scale(.92);
}
.mobile-flip-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

/* Legal */
.legal-page { background: var(--paper); }
.legal-wrap { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 90px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-head a { text-decoration: underline; text-underline-offset: 4px; }
.legal-actions, .legal-languages { display: flex; align-items: center; gap: 16px; }
.legal-languages { gap: 8px; padding-right: 16px; border-right: 1px solid var(--line); }
.legal-languages a { color: var(--muted); text-decoration: none; }
.legal-languages a.is-active { color: var(--ink); font-weight: 700; }
.legal-wrap h1 { margin: 72px 0 36px; font-size: clamp(52px, 8vw, 100px); line-height: .9; letter-spacing: -.07em; }
.legal-wrap h2 { margin: 42px 0 12px; font-size: 24px; }
.legal-wrap p, .legal-wrap li { color: var(--muted); line-height: 1.7; }
.legal-wrap > * {
  --legal-step: 0;
  animation: legal-content-in .72s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(45ms + var(--legal-step) * 42ms);
}
.legal-wrap > h1 { animation-name: legal-title-in; }
.legal-wrap > :nth-child(2) { --legal-step: 1; }
.legal-wrap > :nth-child(3) { --legal-step: 2; }
.legal-wrap > :nth-child(4) { --legal-step: 3; }
.legal-wrap > :nth-child(5) { --legal-step: 4; }
.legal-wrap > :nth-child(6) { --legal-step: 5; }
.legal-wrap > :nth-child(7) { --legal-step: 6; }
.legal-wrap > :nth-child(8) { --legal-step: 7; }
.legal-wrap > :nth-child(9) { --legal-step: 8; }
.legal-wrap > :nth-child(10) { --legal-step: 9; }
.legal-wrap > :nth-child(11) { --legal-step: 10; }
.legal-wrap > :nth-child(12) { --legal-step: 11; }
.legal-wrap > :nth-child(13) { --legal-step: 12; }
.legal-wrap > :nth-child(14) { --legal-step: 13; }
@keyframes legal-content-in {
  from { opacity: 0; filter: blur(5px); transform: translateY(18px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes legal-title-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(30px) skewY(.8deg); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0) skewY(0); }
}

@media (max-width: 980px) {
  .card-front { grid-template-columns: 56% 44%; }
  .name { font-size: clamp(48px, 7.2vw, 78px); }
  .statement { font-size: clamp(18px, 1.8vw, 22px); }
  .back-inner { grid-template-columns: 36% 64%; }
  .hello { font-size: clamp(62px, 7vw, 92px); }
  .contact-row { grid-template-columns: 78px 1fr auto; }
}

@media (max-width: 720px) {
  body { background-size: 28px 28px; }

  .viewport {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 68px 12px 56px;
  }

  .scene {
    width: min(calc(100vw - 24px), 560px, calc((100svh - 152px) * (85.6 / 54)));
    margin: 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 85.6 / 54;
    perspective: 1200px;
  }

  .card-shell {
    box-shadow: 0 18px 48px rgba(20,24,38,.22);
  }

  .card-face {
    border: 1px solid rgba(255,255,255,.16);
    overflow: hidden;
  }

  .page-controls {
    top: 14px;
    right: 12px;
    gap: 7px;
  }
  .utility-group { height: 34px; }
  .language-group::before,
  .theme-group::before { height: 26px; }
  .language-option,
  .theme-choice { height: 26px; }
  .language-option {
    min-width: 29px;
    padding: 0 6px;
    font-size: 9px;
  }
  .theme-choice { width: 28px; }
  .theme-choice svg { width: 13px; height: 13px; }

  .mobile-flipbar {
    display: flex;
    justify-content: center;
    width: min(calc(100vw - 24px), 560px);
    margin: 10px auto 0;
  }

  .mobile-flip-button {
    min-height: 46px;
    gap: 11px;
  }

  .mobile-flip-text {
    font-size: 12.5px;
    letter-spacing: .02em;
  }

  .mobile-flip-disc {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .mobile-flip-disc svg {
    width: 16px;
    height: 16px;
  }

  /* Keep the mobile card at the physical 85.6 x 54 mm business-card ratio. */
  .card-front {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    grid-template-rows: 1fr;
  }

  .front-copy {
    grid-row: auto;
    grid-template-rows: auto 1fr auto;
    padding: clamp(10px, 3vw, 20px);
    overflow: hidden;
  }

  .front-top { position: relative; }

  .monogram {
    font-size: clamp(7.5px, 2vw, 10px);
    letter-spacing: .1em;
  }

  .front-main {
    align-self: center;
    padding-block: clamp(3px, 1.2vw, 8px);
  }

  .eyebrow {
    margin: 0 0 clamp(5px, 1.5vw, 10px);
    font-size: clamp(7.5px, 2vw, 10px);
  }

  .name {
    font-size: clamp(27px, 9vw, 52px);
    line-height: .84;
    letter-spacing: -.07em;
  }

  .statement {
    max-width: 14ch;
    margin-top: clamp(6px, 2vw, 12px);
    font-size: clamp(10.5px, 3.25vw, 18px);
    line-height: 1.06;
  }

  .front-bottom {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .meta-line {
    font-size: clamp(7.2px, 2vw, 10px);
    line-height: 1.25;
  }

  .portrait-panel {
    grid-row: auto;
  }

  .portrait-panel::after {
    box-shadow: inset 10px 0 24px rgba(0,0,0,.09);
  }

  .portrait-panel img {
    object-position: 50% 34%;
    transform: scale(1.02);
  }

  .flip-button { display: none; }

  .back-inner {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(52px, 27%, 66px) minmax(0, 1fr);
  }

  .back-left {
    width: calc(100% + 2px);
    margin-inline: -1px;
    padding: 7px calc(clamp(9px, 3vw, 18px) + 1px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto minmax(58px, .7fr) minmax(0, 2fr);
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: clamp(8px, 2.8vw, 18px);
    overflow: hidden;
  }

  .back-kicker {
    grid-column: 2;
    grid-row: 1;
    max-width: 14ch;
    font-size: clamp(7.6px, 2vw, 10px);
    line-height: 1.18;
  }

  .back-left::after {
    width: clamp(32px, 10vw, 54px);
    left: clamp(17px, 5vw, 32px);
    right: auto;
    bottom: 50%;
    transform: translateY(50%);
  }

  .hello {
    grid-column: 1;
    grid-row: 1;
    place-self: center;
    font-size: clamp(30px, 9vw, 50px);
    line-height: .88;
  }

  .back-note {
    grid-column: 3;
    grid-row: 1;
    max-width: none;
    margin: 0;
    font-size: clamp(8px, 2.1vw, 11px);
    line-height: 1.2;
  }

  .back-right {
    position: relative;
    padding: 3px clamp(9px, 3vw, 18px) 4px;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .back-top {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 4px;
    transform: none;
    justify-content: center;
    gap: 8px;
    min-height: clamp(22px, 6.5vw, 32px);
    margin-bottom: 0;
    border-bottom: 0;
    pointer-events: none;
  }

  .back-top .text-button { pointer-events: auto; }
  .back-top [data-flip] { display: none; }

  .text-button {
    min-height: clamp(22px, 6.5vw, 32px);
    padding-inline: 4px;
    font-size: clamp(8px, 2.05vw, 10px);
    letter-spacing: .1em;
  }

  .back-content {
    align-self: stretch;
    min-height: 0;
    padding-top: 0;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: clamp(2px, .8vw, 6px);
    transform: translateY(clamp(-9px, calc(25px - 8vw), 0px));
  }

  .contact-list {
    border-top: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(3, clamp(26px, 8vw, 38px));
    align-content: center;
  }

  .contact-row {
    grid-template-columns: clamp(38px, 12vw, 62px) minmax(0, 1fr) clamp(9px, 2.5vw, 13px);
    align-items: center;
    gap: clamp(4px, 1.5vw, 9px);
    min-height: 0;
    padding: 1px 0;
  }

  .contact-row .label {
    font-size: clamp(7.6px, 1.95vw, 9.5px);
    letter-spacing: .075em;
  }

  .contact-row strong {
    font-size: clamp(11.5px, 3.2vw, 18px);
    line-height: 1.06;
    letter-spacing: -.025em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .contact-row .arrow {
    width: clamp(9px, 2.5vw, 13px);
    height: clamp(9px, 2.5vw, 13px);
  }

  .credentials {
    display: grid;
    grid-template-columns: max-content repeat(3, max-content);
    align-items: center;
    justify-content: space-between;
    gap: 2px clamp(5px, 1.6vw, 9px);
    min-height: clamp(24px, 7vw, 34px);
    margin-top: 0;
    font-size: clamp(8.2px, 2.1vw, 10.5px);
    line-height: 1.18;
  }

  .credentials-label {
    width: auto;
    color: var(--muted);
  }

  .credentials a {
    grid-template-columns: max-content 8px;
    min-height: clamp(24px, 7vw, 34px);
    column-gap: 2px;
    align-content: center;
  }

  .credential-arrow {
    width: 8.5px;
    height: 8.5px;
  }

  .back-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: clamp(22px, 6.5vw, 32px);
    padding-top: 0;
    font-size: clamp(7.1px, 1.8vw, 9px);
    line-height: 1;
  }

  .copyright-full { display: none; }
  .copyright-mobile {
    display: inline-block;
    white-space: nowrap;
  }
  .footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 12px);
    white-space: nowrap;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: clamp(22px, 6.5vw, 32px);
  }
}

@media (min-width: 721px) and (max-width: 800px) {
  .front-main { padding-block: 12px; }
  .eyebrow { margin-bottom: 14px; }
  .statement { margin-top: 14px; }
  .flip-disc { width: 42px; height: 42px; }
  .credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .credentials-label { width: 100%; }
}

@media (max-width: 400px) {
  .legal-head { align-items: flex-start; }
  .legal-actions { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  .legal-languages { padding-right: 0; border-right: 0; }
  .legal-wrap h1 { font-size: clamp(40px, 14vw, 52px); }
}

@media (max-width: 350px) {
  .viewport { padding-inline: 8px; }
  .scene,
  .mobile-flipbar { width: min(calc(100vw - 16px), calc((100svh - 152px) * (85.6 / 54))); }
  .back-left { grid-template-columns: auto minmax(51px, .65fr) minmax(0, 2fr); }
  .credentials-label { display: none; }
  .credentials { grid-template-columns: repeat(3, max-content); }
}

@media (min-width: 500px) and (max-width: 720px) and (min-height: 501px) {
  .back-content {
    transform: translateY(-6px);
  }
}

@media (max-width: 720px) and (max-height: 500px) {
  .viewport { padding: 58px 8px 8px; }
  .scene {
    width: min(calc(100vw - 16px), 560px, calc((100svh - 122px) * (85.6 / 54)));
  }
  .mobile-flipbar { width: min(calc(100vw - 16px), 560px); }
  .back-content {
    row-gap: 2px;
    transform: translateY(0);
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .viewport { padding: 76px 28px 20px; }
  .scene {
    width: min(1040px, calc(100vw - 56px), calc((100svh - 96px) * 1.72));
  }
  .front-main { padding-block: 20px; }
  .name { font-size: clamp(52px, 6.2vw, 80px); }
  .statement { margin-top: 18px; font-size: clamp(18px, 1.6vw, 24px); }
  .contact-row { padding: 12px 0; }
}

@media (max-height: 520px) and (min-width: 721px) {
  .front-copy { padding: 16px; }
  .front-main { padding-block: 5px; }
  .eyebrow { margin-bottom: 6px; font-size: 9px; }
  .name { font-size: clamp(32px, 4vw, 42px); }
  .statement {
    margin-top: 8px;
    font-size: clamp(13px, 1.55vw, 16px);
    line-height: 1.06;
  }
  .meta-line { font-size: 9.5px; }
  .flip-button { gap: 10px; font-size: 9px; }
  .flip-disc { width: 36px; height: 36px; }

  .back-left,
  .back-right { padding: 16px; }
  .back-kicker { font-size: 9px; line-height: 1.2; }
  .hello { font-size: clamp(44px, 6vw, 64px); }
  .back-note { margin-top: 6px; font-size: 10px; line-height: 1.25; }
  .back-left::after {
    width: clamp(58px, 8vw, 76px);
    right: 36px;
    bottom: 70px;
  }
  .back-content { padding-top: 7px; }
  .contact-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 0;
  }
  .contact-row .label { font-size: 8.5px; }
  .contact-row strong { font-size: clamp(14px, 1.7vw, 17px); }
  .credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
    font-size: 9px;
  }
  .back-footer { padding-top: 6px; font-size: 8px; }
  .copyright-full { display: none; }
  .copyright-mobile { display: inline-block; white-space: nowrap; }
}

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

@media (max-width: 350px) {
  .back-right { padding-right: 9px; }
  .back-footer {
    font-size: 6.6px;
    letter-spacing: .04em;
    gap: 6px;
  }
  .footer-links { gap: 7px; }
  .contact-row .arrow { justify-self: end; }
}
