/* Francesco Lucente Stabile — site styles */
:root {
  --bg: #0d0c0b;
  --bg-2: #151311;
  --bg-3: #1d1a17;
  --ink: #ede7dc;
  --ink-2: #b9b0a3;
  --ink-3: #847b70;
  --line: #2b2723;
  --gold: #c9a45c;
  --gold-2: #e2c48a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 68px 0 0 0; background: var(--bg);
    flex-direction: column; gap: 0; padding: 24px var(--gutter);
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  /* the blurred header traps fixed children, so give the menu its own full height */
  .nav { bottom: auto; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto; }
  .nav a { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); line-height: 1.75; }
.eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.muted { color: var(--ink-2); }
em.it, .it { font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: clamp(64px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { max-width: 15ch; }
.page-head .lead { max-width: 640px; }

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(48px, 8vw, 110px) 0; }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); line-height: .95; margin-bottom: .35em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; border-radius: var(--radius); filter: grayscale(.15) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: .55; }
.roles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--ink-3); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.roles li::before { content: "·"; color: var(--gold); margin-right: 22px; }
.roles li:first-child::before { display: none; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; }
  .hero-photo::after { inset: 10px -10px -10px 10px; }
}

/* ---------- Quote ---------- */
.quote { text-align: center; padding: clamp(72px, 11vw, 140px) 0; }
.quote blockquote { margin: 0 auto; max-width: 900px; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; }
.quote blockquote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: 18px; }
.quote cite { display: block; margin-top: 26px; font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.quote.sm blockquote { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }

/* ---------- Doors (big linked panels) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
.door { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; aspect-ratio: 4/5; background: var(--bg-2); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.62); }
.door:hover img { transform: scale(1.04); filter: brightness(.5); }
.door .door-text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3.5vw, 40px); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.door h2, .door h3 { color: #fff; margin-bottom: .25em; }
.door p { color: rgba(255,255,255,.82); margin: 0; max-width: 42ch; font-size: .98rem; }
.door .arrow { display: inline-block; margin-top: 16px; color: var(--gold-2); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.door:hover .arrow { color: #fff; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 4/4.4; } }

/* ---------- Rows (image + text) ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.row + .row { border-top: 1px solid var(--line); }
.row.flip .row-img { order: 2; }
.row-img { display: block; overflow: hidden; border-radius: var(--radius); }
.row-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
a.row-img:hover img { transform: scale(1.03); }
.row h2 a, .row h3 a { text-decoration: none; }
.row .num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; font-style: italic; display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row.flip .row-img { order: 0; } }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--gold); color: #0d0c0b; }
.btn.solid { background: var(--gold); color: #0d0c0b; }
.btn.solid:hover { background: var(--gold-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.textlink { color: var(--gold-2); text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.textlink:hover { color: #fff; }

/* ---------- Document cards ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.doc {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2); text-decoration: none; transition: border-color .25s, transform .25s;
}
.doc:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.doc .kind { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.doc h3 { font-size: 1.55rem; margin: 0; }
.doc p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.doc .meta { margin-top: auto; padding-top: 12px; font-size: .8rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.doc .meta a { color: var(--gold-2); }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 36px 0; }
.feature { background: var(--bg); padding: 28px; }
.feature .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.feature h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 22px; }
.videos.one { grid-template-columns: 1fr; max-width: 920px; }
.video figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.video figcaption b { color: var(--ink); font-weight: 500; display: block; }
.video { margin: 0; }
.yt { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background .25s; }
.yt:hover::before { background: rgba(0,0,0,.15); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.8); display: grid; place-items: center; background: rgba(0,0,0,.35); transition: background .25s, border-color .25s; }
.yt:hover .play { background: var(--gold); border-color: var(--gold); }
.yt .play svg { width: 22px; height: 22px; margin-left: 4px; fill: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.on::before { display: none; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 22px; }
.gallery figure { break-inside: avoid; margin: 0 0 34px; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.gallery button:hover img { transform: scale(1.025); }
.gallery figcaption { padding-top: 12px; }
.gallery .t { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.gallery .t i { color: var(--ink-2); }
.gallery .m { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.gallery .note { font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.badges li { font-size: .7rem; letter-spacing: .04em; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.badges li.win { border-color: var(--gold); color: var(--gold-2); }
.badges .more { cursor: pointer; background: none; font: inherit; color: var(--gold-2); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 9px; font-size: .7rem; }
.badges.collapsed li.extra { display: none; }
.gallery.photos { columns: 3 280px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,4,.96); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 20px; }
.lb.open { display: flex; }
.lb img { max-width: min(1400px, 100%); max-height: calc(100vh - 150px); width: auto; object-fit: contain; border-radius: 2px; }
.lb .cap { margin-top: 16px; text-align: center; color: var(--ink-2); font-size: .95rem; max-width: 760px; }
.lb .cap b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); display: block; }
.lb button { position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 14px; font-size: 0; }
.lb button svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lb button:hover { color: var(--gold); }
.lb .x { top: 8px; right: 8px; }
.lb .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 4px; top: 50%; transform: translateY(-50%); }
body.lb-on { overflow: hidden; }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub .yr { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.pub .yr small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.pub h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: 8px; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { color: var(--gold-2); }
.pub p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Contact ---------- */
.contact-links { display: grid; gap: 0; margin-top: 40px; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem); }
.contact-links a:last-child { border-bottom: 1px solid var(--line); }
.contact-links a span { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-links a:hover span { color: var(--gold-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; color: var(--ink-3); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.site-footer .sig { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.site-footer .sig small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.social { display: flex; gap: 22px; flex-wrap: wrap; }
.social a { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; color: var(--ink-2); }
.social a:hover { color: var(--gold-2); }

/* ---------- Reveal on scroll ---------- */
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal:not(.in) { opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* ---------- Paintings: museum frames, read left to right ---------- */
.gallery.frames { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 26px; }
.gallery.frames figure { margin: 0; }
.gallery.frames button { box-sizing: border-box; height: clamp(360px, 46vw, 480px); background: var(--bg-2); display: flex; align-items: center; justify-content: center; padding: 28px; border: 1px solid var(--line); transition: border-color .3s; }
.gallery.frames button:hover { border-color: var(--gold); }
.gallery.frames img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.gallery.frames button:hover img { transform: scale(1.02); }

/* roles: small gold marks that wrap cleanly */
.roles li::before, .roles li:first-child::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin: 0 10px 2px 0; vertical-align: middle; }
@media (max-width: 860px) { .hero-photo { margin-right: 12px; } }

/* =================== Restyle: icons & sections (Nov 2026) =================== */
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none; }

/* gold icon in a thin ring */
.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-2);
  background: color-mix(in srgb, var(--gold) 7%, transparent); transition: background .3s, color .3s, transform .3s; }
.icon-badge .ic { width: 20px; height: 20px; }

/* numbers on rows: ring + roman numeral side by side */
.row .num { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.row:hover .icon-badge { background: var(--gold); color: var(--bg); transform: rotate(-6deg); }

/* doors: icon row on top of the picture */
.door-icons { position: absolute; top: clamp(18px, 3vw, 30px); left: clamp(18px, 3vw, 30px); display: flex; gap: 8px; z-index: 1; }
.door-icons .icon-badge { width: 38px; height: 38px; background: rgba(13,12,11,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.door-icons .icon-badge .ic { width: 17px; height: 17px; }
.door:hover .door-icons .icon-badge { border-color: var(--gold); }
.door .arrow { display: inline-flex; align-items: center; gap: 8px; }
.door .arrow .ic { transition: transform .3s; }
.door:hover .arrow .ic { transform: translateX(5px); }

/* "New" band under the doors */
.news { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 32px); align-items: center;
  margin-top: clamp(16px, 2.5vw, 28px); padding: clamp(22px, 3.5vw, 36px); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 10%, var(--bg-2)), var(--bg-2) 55%); transition: border-color .3s; }
.news:hover { border-color: var(--gold); color: var(--ink); }
.news .icon-badge { width: 60px; height: 60px; }
.news .icon-badge .ic { width: 26px; height: 26px; }
.news .eyebrow { margin-bottom: 6px; }
.news h3 { margin: 0 0 6px; }
.news p { margin: 0; color: var(--ink-2); font-size: .97rem; max-width: 62ch; }
.news .go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-2); transition: all .3s; }
.news:hover .go { background: var(--gold); border-color: var(--gold); color: var(--bg); }
@media (max-width: 640px) { .news { grid-template-columns: 1fr; } .news .go { display: none; } }

/* quotes over a darkened photo */
.quote.photo { position: relative; isolation: isolate; margin: clamp(40px, 6vw, 80px) 0; padding: clamp(110px, 16vw, 200px) 0; }
.quote.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-img) center/cover no-repeat; filter: grayscale(.3) brightness(.38); }
.quote.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg), transparent 22%, transparent 78%, var(--bg)); }
.quote.photo blockquote { text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.quote.photo cite { color: var(--ink-2); }

/* home: strip of works that scrolls sideways */
.filmstrip-sec { padding: clamp(64px, 9vw, 112px) 0 clamp(24px, 4vw, 48px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.btn .ic { width: 16px; height: 16px; }
.filmstrip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.filmstrip a { flex: none; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; height: clamp(240px, 32vw, 380px); background: var(--bg-2); }
.filmstrip img { height: 100%; width: auto; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: brightness(.9); }
.filmstrip a:hover img { transform: scale(1.04); filter: none; }
.filmstrip:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* page headings with a faded picture on the right */
.page-head.cover { position: relative; isolation: isolate; }
.page-head.cover::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(-1 * var(--gutter)); width: min(54%, 620px);
  background: var(--cover) center/cover no-repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%), linear-gradient(transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 60%), linear-gradient(transparent, #000 25%, #000 70%, transparent); mask-composite: intersect; }
@media (max-width: 760px) { .page-head.cover::before { width: 100%; opacity: .22; } }

/* small thumbnail strip under Art rows */
.mini-strip { display: flex; gap: 8px; margin: 6px 0 22px; max-width: 420px; }
.mini-strip span { flex: 1; aspect-ratio: 1; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); transition: border-color .3s; }
.mini-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mini-strip:hover span { border-color: var(--gold); }
.mini-strip span:hover img { transform: scale(1.08); }

/* DIOLSA features with icons */
.feature .icon-badge { margin-bottom: 14px; }
.feature:hover .icon-badge { background: var(--gold); color: var(--bg); }
.doc .kind { display: flex; align-items: center; gap: 8px; }

/* footer: round social icons */
.social { gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: all .25s; }
.social a:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.social .ic { width: 19px; height: 19px; }

/* contact rows with icons */
.contact-links a em { font-style: normal; display: inline-flex; align-items: center; gap: 18px; }
.contact-links a em .ic { width: .8em; height: .8em; color: var(--gold); stroke-width: 1.2; }

/* Home portrait: old polaroid (replaces the gold line) */
.hero-photo::after { content: none; }
.hero-photo { justify-self: center; width: min(100%, 440px); margin: 0;
  padding: 16px 16px 72px; background: #ece6d8;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(120,90,40,.12), transparent 55%);
  border-radius: 2px; transform: rotate(-2.5deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 50px rgba(0,0,0,.55); transition: transform .5s ease; }
.hero-photo:hover { transform: rotate(-1deg) translateY(-4px); }
.hero-photo img { aspect-ratio: 1 / 1.04; border-radius: 0; object-position: center 22%;
  filter: sepia(.35) saturate(.8) contrast(.92) brightness(1.04); }
/* faded, slightly washed-out film over the photo */
.hero-photo::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; aspect-ratio: 1 / 1.04; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,230,180,.18), transparent 50%, rgba(60,40,90,.12)); box-shadow: inset 0 0 40px rgba(60,40,20,.35); }
@media (max-width: 860px) { .hero-photo { margin: 8px auto 0; max-width: 340px; padding: 12px 12px 56px; } .hero-photo::before { left: 12px; right: 12px; top: 12px; } }

/* handwritten note on the polaroid */
.polaroid-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: "Caveat", "Segoe Print", cursive; font-size: 2.1rem; line-height: 1; color: #2b3a67;
  transform: rotate(-1.5deg); opacity: .85; }
@media (max-width: 860px) { .polaroid-note { font-size: 1.7rem; bottom: 10px; } }

/* ---- Polaroid v2: real photo look, worn paper, lifted shadow, ink ---- */
.hero-photo {
  background: #e6dcc5 url(../img/polaroid-paper.jpg) center/cover no-repeat;
  padding: 18px 18px 84px; border-radius: 3px; transform: rotate(-3deg);
  box-shadow:
    0 1px 1px rgba(0,0,0,.35),
    0 6px 10px rgba(0,0,0,.30),
    0 30px 45px -10px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.25);
}
.hero-photo:hover { transform: rotate(-1.5deg) translateY(-5px); }
.hero-photo img { aspect-ratio: 1; object-position: center; filter: none; }
/* photo sits slightly sunk into the frame */
.hero-photo::before { left: 18px; right: 18px; top: 18px; aspect-ratio: 1; background: none;
  box-shadow: inset 0 0 0 1px rgba(40,25,10,.25), inset 0 1px 3px rgba(0,0,0,.35); }
/* lifted, slightly curled bottom-right corner casts a longer shadow */
.hero-photo::after { content: ""; position: absolute; z-index: -1; right: 10px; bottom: 14px; width: 55%; height: 30%;
  transform: rotate(4deg) translate(6px, 10px); box-shadow: 18px 22px 30px rgba(0,0,0,.55); border-radius: 0 0 40% 0; }
/* the handwriting: ballpoint ink soaked into the paper */
.polaroid-note { font-family: "Homemade Apple", "Segoe Script", cursive; font-size: 1.55rem; bottom: 22px; left: 8%; right: auto;
  text-align: left; color: #1f2c5c; opacity: .82; transform: rotate(-4deg); mix-blend-mode: multiply;
  text-shadow: 0 0 .6px rgba(31,44,92,.6); letter-spacing: .01em; }
@media (max-width: 860px) {
  .hero-photo { padding: 13px 13px 64px; }
  .hero-photo::before { left: 13px; right: 13px; top: 13px; }
  .polaroid-note { font-size: 1.2rem; bottom: 16px; }
}
.hero-photo::after { content: none; }
.hero-photo { box-shadow:
    0 1px 1px rgba(0,0,0,.35),
    0 6px 10px rgba(0,0,0,.30),
    0 30px 45px -10px rgba(0,0,0,.6),
    22px 34px 34px -14px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.25); }

/* polaroid straight, not tilted */
.hero-photo { transform: none; }
.hero-photo:hover { transform: translateY(-5px); }
/* name: first name white, surname gold */
.hero h1 .first { color: #fff; }

/* =================== Mathematics page =================== */
.m-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
/* faint graph paper */
.m-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.m-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 100px); }
.m-hero h1 { max-width: 12ch; }
.m-hero h1 em { color: var(--gold); }
.m-big-formula { margin-top: 36px; padding: 22px 26px; border-left: 2px solid var(--gold); background: color-mix(in srgb, var(--bg-2) 80%, transparent); max-width: 560px; }
.m-big-formula .f { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--ink); }
.m-big-formula small { display: block; margin-top: 10px; font-size: .85rem; color: var(--ink-3); line-height: 1.55; }
.mod { font-style: normal; color: var(--ink-2); font-size: .75em; }
.m-painting { margin: 0; justify-self: center; }
.m-painting img { max-height: 560px; width: auto; border: 10px solid #1b1814; outline: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.m-painting figcaption { margin-top: 14px; font-size: .82rem; color: var(--ink-3); text-align: center; }
@media (max-width: 860px) { .m-hero-grid { grid-template-columns: 1fr; } .m-painting img { max-height: 420px; } }

.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); padding: clamp(56px, 8vw, 96px) 0; }
.m-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); text-decoration: none; overflow: hidden; transition: border-color .3s, transform .3s; }
.m-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.m-card:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); transform: translateY(-4px); color: var(--ink); }
.m-card:hover::after { transform: none; }
.m-card:hover .icon-badge { background: var(--gold); color: var(--bg); }
.m-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.m-n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-3); }
.m-formula { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--gold-2); padding: 14px 0; margin-bottom: 18px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.m-card h2 { font-size: clamp(1.6rem, 2.3vw, 2rem); }
.m-card h2 i { color: var(--ink-3); }
.m-card p { color: var(--ink-2); font-size: .97rem; }
.m-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.m-go .ic { transition: transform .3s; }
.m-card:hover .m-go .ic { transform: translateX(5px); }
@media (max-width: 960px) { .m-cards { grid-template-columns: 1fr; } }

.m-time { padding-bottom: clamp(40px, 6vw, 72px); }
.m-time ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.m-time ol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.m-time li a { display: block; position: relative; padding: 34px 20px 0 0; text-decoration: none; }
.m-time li a::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); transition: background .3s; }
.m-time li a:hover::before { background: var(--gold); }
.m-time .y { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.m-time b { display: block; font-weight: 500; margin: 10px 0 4px; }
.m-time .d { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.m-time li a:hover b { color: var(--gold-2); }
@media (max-width: 860px) {
  .m-time ol { grid-template-columns: 1fr; padding-left: 24px; }
  .m-time ol::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .m-time li a { padding: 0 0 28px 8px; }
  .m-time li a::before { left: -24px; top: 8px; }
}

/* no graph-paper background on Mathematics */
.m-hero::before { content: none; }

/* DIOLSA: "how it works" steps */
.how { position: relative; padding: 34px 0 10px 72px; border-top: 1px solid var(--line); margin-top: 34px; }
.how-n { position: absolute; left: 0; top: 36px; }
.how h3 { margin-bottom: 14px; }
.how .m-big-formula { margin: 22px 0 26px; }
.how .m-big-formula .f { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
@media (max-width: 640px) { .how { padding-left: 0; } .how-n { position: static; display: block; margin-bottom: 14px; } }

/* DIOLSA steps as side-by-side blocks */
.hows { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: 40px; }
.hows .how { margin: 0; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  display: flex; flex-direction: column; transition: border-color .3s; }
.hows .how:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.hows .how:hover .icon-badge { background: var(--gold); color: var(--bg); }
.hows .how-n { position: static; margin-bottom: 20px; }
.hows .how h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.hows .how p { font-size: .95rem; color: var(--ink-2); }
.hows .m-big-formula { margin: 8px 0 22px; padding: 16px 18px; }
.hows .m-big-formula .f { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
@media (max-width: 960px) { .hows { grid-template-columns: 1fr; } }

/* =================== DIOLSA demo =================== */
.page-head h1 em.gold { color: var(--gold); }
.play-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 20px 24px; border: 1px solid var(--gold); border-radius: var(--radius);
  text-decoration: none; background: color-mix(in srgb, var(--gold) 8%, transparent); transition: background .3s; }
.play-cta > .ic:first-child { width: 40px; height: 40px; color: var(--gold-2); }
.play-cta span { flex: 1; } .play-cta b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.play-cta small { color: var(--ink-2); font-size: .9rem; }
.play-cta > .ic:last-child { transition: transform .3s; }
.play-cta:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--ink); }
.play-cta:hover > .ic:last-child { transform: translateX(5px); }

.demo-note { display: flex; gap: 12px; align-items: flex-start; max-width: 680px; font-size: .9rem; color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 14px; }
.demo-note .ic { color: var(--gold); margin-top: 3px; }
.demo-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(22px, 4vw, 44px); margin-bottom: 32px; }
.demo-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.demo-head .icon-badge { flex: none; width: 54px; height: 54px; }
.demo-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .2em; }
.demo-head p { margin: 0; max-width: 62ch; }
.demo-head .eyebrow { margin-bottom: 6px; }

.demo-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.demo-form label small { text-transform: none; letter-spacing: 0; }
.demo-form label.wide { flex: 1 1 100%; }
.demo-box input, .demo-box textarea, .demo-box select {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; min-width: 0; }
.demo-box input:focus, .demo-box textarea:focus, .demo-box select:focus { outline: none; border-color: var(--gold); }
#one-k { width: 14ch; } #one-c { width: 6ch; text-align: center; }
#msg-k { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.demo-box textarea { resize: vertical; width: 100%; }
.with-btn { display: flex; gap: 10px; } .with-btn input { flex: 1; }
.demo-box .btn { cursor: pointer; background: none; font-family: var(--sans); }
.demo-box .btn.solid { background: var(--gold); }
.demo-box .btn:disabled { opacity: .45; cursor: default; }
.demo-box .btn .ic { width: 16px; height: 16px; }

.demo-out { margin-top: 30px; }
.demo-out:empty { display: none; }
.demo-err { color: #e59a7a; }
.steps { margin: 0 0 26px; padding-left: 1.3em; display: grid; gap: 18px; }
.steps li { color: var(--ink-2); padding-left: 6px; }
.steps li::marker { color: var(--gold); font-family: var(--serif); }
.steps b { color: var(--ink); font-weight: 500; }
.eq { display: block; margin: 8px 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); word-break: break-all; }
.eq b { font-style: normal; color: var(--gold-2); font-weight: 500; }
.mono, .eq.mono { font-family: ui-monospace, Menlo, monospace; font-style: normal; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.chip { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); }
.chip.on { border-color: var(--gold); color: var(--gold-2); }
.dots { color: var(--ink-3); padding: 3px 2px; }
.cipher-pair { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; padding: 18px 22px; border: 1px dashed var(--gold); border-radius: var(--radius); margin: 8px 0 34px; }
.cipher-pair span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cipher-pair b { font-family: ui-monospace, Menlo, monospace; font-weight: 400; color: var(--gold-2); word-break: break-all; }
h3.sub { font-size: 1.5rem; margin: 0 0 6px; }
.trail { border-collapse: collapse; margin: 14px 0; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; min-width: min(100%, 420px); }
.trail th { text-align: left; font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); }
.trail td { padding: 5px 14px 5px 0; color: var(--ink-2); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.trail tr.hit td { color: var(--bg); background: var(--gold); font-weight: 600; }
.trail tr.hit td:first-child { padding-left: 8px; }
.trail tr.gap td { text-align: center; color: var(--ink-3); }
.result { font-size: 1.1rem; } .result b { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-2); font-weight: 500; }
details.wrong { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); }
details.wrong summary { cursor: pointer; color: var(--gold-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.stats div { background: var(--bg); padding: 16px 18px; }
.stats b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; }
.stats span { font-size: .78rem; color: var(--ink-3); }
.stats .tot b { color: var(--gold-2); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.eve-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.pairs, .eve { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 14px; max-height: 340px; overflow-y: auto; }
.pair { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; padding: 3px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-3); background: var(--bg); transition: all .3s; cursor: default; }
.reveal .pair.seed { border-color: #6d86c9; color: #a9bbec; background: rgba(109,134,201,.12); }
.reveal .pair.data { border-color: var(--gold); color: var(--gold-2); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.reveal .pair.fake { opacity: .45; }
.legend { display: none; gap: 8px; margin-bottom: 18px; }
.pairs.reveal + .legend { display: flex; }
.legend .pair.seed { border-color: #6d86c9; color: #a9bbec; } .legend .pair.data { border-color: var(--gold); color: var(--gold-2); } .legend .pair.fake { opacity: .6; }
.result-box { margin-top: 20px; padding: 20px 22px; border-left: 2px solid var(--gold); background: var(--bg); }
.result-box span { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.result-box b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin: 4px 0; white-space: pre-wrap; }
.result-box small { color: var(--ink-3); }
.result-box.bad { border-left-color: #c96d5c; } .result-box.bad b { font-size: 1.3rem; display: inline; }
.small { font-size: .85rem; }

.stream-ctl { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 22px; }
.stream-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; }
.stream-grid .panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 220px; display: flex; flex-direction: column; }
.stream-grid h3 { font-size: 1.3rem; }
.stream-grid .eve { flex: 1; align-content: flex-start; margin: 0 0 10px; max-height: 260px; }
.bob { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; overflow-y: auto; max-height: 260px; white-space: normal; word-break: break-word; }
@media (max-width: 960px) { .stream-grid { grid-template-columns: 1fr; } }

/* =================== Mobile optimisation =================== */
/* grids never wider than the screen, even on small phones */
.videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.docs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
img, svg, video, iframe { max-width: 100%; }
h1, h2, h3, p, a { overflow-wrap: break-word; }
/* bigger tap targets in the mobile menu, no grey flash on tap */
a, button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 60px; }
  .nav { top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .brand { font-size: 1.25rem; }
  .page-head { padding: 44px 0 28px; }
  .section { padding: 56px 0; }
  .quote { padding: 64px 0; }
  .quote.photo { padding: 96px 0; margin: 24px 0; }
  .quote blockquote::before { font-size: 3.6rem; margin-bottom: 10px; }
  .hero { padding: 24px 0 40px; gap: 36px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .roles { gap: 8px 16px; font-size: .72rem; }
  .row { padding: 36px 0; gap: 22px; }
  .door-icons .icon-badge { width: 32px; height: 32px; }
  .door-icons .icon-badge .ic { width: 15px; height: 15px; }
  .news { padding: 20px; }
  .news .icon-badge { width: 48px; height: 48px; }
  .filmstrip-sec { padding: 56px 0 16px; }
  .filmstrip a { height: 220px; }
  .gallery.frames { gap: 36px; }
  .gallery.frames button { height: auto; max-height: 72vh; padding: 16px; }
  .gallery.frames img { max-height: calc(72vh - 32px); }
  .m-hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .m-painting img { max-height: 380px; border-width: 7px; }
  .m-big-formula { padding: 16px 18px; }
  .m-cards { padding: 44px 0; }
  .m-card, .hows .how { padding: 24px 20px; }
  .play-cta { padding: 16px; gap: 12px; }
  .play-cta > .ic:last-child { display: none; }
  .btn { padding: 12px 20px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .pub { padding: 26px 0; }
  .pub .yr { font-size: 1.6rem; }
  /* contact: name on top, detail underneath (nothing cut off) */
  .contact-links a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 0; font-size: 1.9rem; }
  .contact-links a span { padding-left: calc(.8em + 18px); font-size: .72rem; word-break: break-all; }
  .site-footer { padding: 40px 0 32px; }
  /* iPhone zooms into inputs smaller than 16px */
  input, textarea, select { font-size: 16px !important; }
}
