/* Texas Sky Photography. Mobile first: base styles are for phones, wider screens are added at 601, 761 and 1024px. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/Fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/fonts/DMSans-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f4efe8; --card: #fffdfa; --line: #e3d9cc;
  --ink: #3b2a20; --text: #5e554d;
  --accent: #b4553a; --accent-dark: #93442d; --label: #a84d33;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --shadow: 0 18px 40px rgba(59, 42, 32, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--label); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p, li, blockquote { text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; line-height: 1.15; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 6.4vw, 2.6rem); }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
/* A text link inside a sentence still gets a 44px tap area. */
.tl { display: inline-block; padding: 12px 2px; margin: -12px -2px; }
/* Read out only by screen readers, e.g. "(opens in a new tab)". */
.nt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Square buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 48px; padding: 0 24px; border: 0; border-radius: 0; background: var(--accent); color: #fff; font: 500 0.875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font: 500 0.875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.more svg { width: 22px; height: 10px; }
@media (hover: hover) {
  .btn:hover { background: var(--accent-dark); }
  .more:hover { color: var(--label); }
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 232, 0.96); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
/* Her name (header, footer, 404): the heading serif, one weight, normal spacing. */
.brand { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font: 400 1.1875rem/1 var(--serif); font-variation-settings: "SOFT" 50, "WONK" 0; letter-spacing: -0.005em; white-space: nowrap; }
.brand span { margin-left: 0.25em; }
@media (min-width: 601px) { .brand { font-size: 1.375rem; } }
@media (min-width: 1280px) { .top .brand { font-size: 1.5rem; } }
/* The narrowest phones: the menu button keeps its icon and its name for screen readers, without the word. */
@media (max-width: 399px) {
  .menu-btn { width: 48px; padding: 0; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav, .top .btn { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--ink); font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.menu-btn i { display: grid; gap: 4px; width: 16px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; }
.sheet { position: fixed; top: 64px; left: 0; right: 0; z-index: 19; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--pad) 20px; }
.sheet[hidden] { display: none; }
.sheet a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font: 400 1.35rem/1 var(--serif); text-decoration: none; }
.sheet a.btn { margin-top: 18px; width: 100%; border: 0; color: #fff; font: 500 0.875rem/1 var(--sans); }
@media (min-width: 1024px) {
  .menu-btn, .sheet { display: none !important; }
  .nav { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; }
  .nav a[aria-current] { border-bottom-color: var(--accent); }
  .top .btn { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 0.8125rem; }
  .top .wrap { min-height: 80px; }
}
@media (min-width: 1024px) and (hover: hover) { .nav a:hover { color: var(--label); } }

/* Hero: centered line, then the curved strip of photos */
.hero { padding: 40px 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); max-width: 17ch; margin: 0 auto; }
.hero p { margin: 12px auto 0; color: var(--ink); font-size: 1.125rem; text-wrap: balance; }
/* Flat photos cut by one smooth arc, top and bottom: the top edge dips toward the middle, the bottom edge rises. */
.strip { --dip: 6vw; position: relative; display: flex; justify-content: center; gap: 3vw; margin: 36px 0 40px; overflow: hidden; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; height: var(--dip); pointer-events: none; }
/* The arcs are drawn as vector shapes (smooth edges), stretched to the strip's width and the dip's height. */
.strip::before { top: -1px; background: url(/img/curve-top.svg) 0 0 / 100% 100% no-repeat; }
.strip::after { bottom: -1px; background: url(/img/curve-bottom.svg) 0 0 / 100% 100% no-repeat; }
.strip figure { flex: 0 0 38vw; margin: 0; aspect-ratio: 5 / 6; background: var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 761px) {
  .hero { padding-top: 56px; }
  .strip { --dip: 3.5vw; gap: 2.5vw; margin: 44px 0 56px; }
  .strip figure { flex: 0 0 26vw; }
}

/* Sections */
.sec { padding: 64px 0; }
/* White sections melt into the cream page at the top and bottom, so sections flow into each other with no seam.
   The photo bands (the full-width photo and the 2027 banner) keep clean edges. */
.sec.white { background: linear-gradient(var(--bg), var(--card) 72px, var(--card) calc(100% - 72px), var(--bg)); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.head h2 { max-width: 20ch; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .sec { padding: 96px 0; } }

/* Welcome */
.welcome { padding-top: 40px; }
.welcome h2 { max-width: 19ch; font-size: clamp(1.9rem, 6.4vw, 2.5rem); }
.welcome .cols { display: grid; gap: 18px; margin-top: 28px; }
.welcome .cols p { margin: 0; font-size: 0.9375rem; }
.welcome .btn { justify-self: start; order: 3; }
@media (min-width: 761px) {
  .welcome .cols { grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-top: 32px; align-items: start; }
  .welcome .btn { order: 0; }
}

/* About: her words beside her photo */
.about { display: grid; gap: 28px; align-items: center; }
.about .sub { margin: 8px 0 0; color: var(--ink); font-size: 1.0625rem; }
.about p { margin: 16px 0 0; font-size: 0.9375rem; }
/* Her photo sits on a thin offset line, inside the column's edges */
.about figure { --off: 12px; position: relative; isolation: isolate; margin: 0 var(--off) var(--off) 0; aspect-ratio: 3 / 2; }
.about figure::before { content: ""; position: absolute; inset: var(--off) calc(var(--off) * -1) calc(var(--off) * -1) var(--off); z-index: -1; border: 1px solid var(--accent); }
.about figure img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--line); }
@media (min-width: 761px) {
  .about { grid-template-columns: 1fr 1fr; gap: 56px; }
  .about figure { --off: 18px; }
}

/* Gallery preview: two staggered columns */
.pics { display: grid; gap: 14px; margin-top: 32px; }
.pics a { display: block; overflow: hidden; background: var(--line); }
.pics img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pics .wide { aspect-ratio: 3 / 2; }
.pics .square { aspect-ratio: 1 / 1; }
.pics img.up { object-position: 50% 32%; }
.pics img.mid { object-position: 50% 30%; }
.pics img.low { object-position: 50% 62%; }
.pics .col { display: grid; gap: 14px; align-content: start; }
@media (min-width: 601px) { .pics { grid-template-columns: 1fr 1fr; gap: 20px; } .pics .col { gap: 20px; } }
@media (hover: hover) { .pics a:hover img { transform: scale(1.03); } }

/* A wide photo of hers, edge to edge (stops growing at 1800px on very wide screens) */
.pause { max-width: 1800px; margin: 0 auto; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.pause img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 761px) { .pause { aspect-ratio: 21 / 9; } }

/* Services */
.intro { max-width: 44rem; margin: 16px 0 0; }
.services { display: grid; gap: 32px; margin-top: 40px; }
.services .pic { display: block; margin-bottom: 18px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); }
.services .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
@media (min-width: 761px) { .services .pic { aspect-ratio: 4 / 5; } }
@media (hover: hover) { .services .pic:hover img { transform: scale(1.03); } }
.services h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; }

.services p { margin: 0; font-size: 0.9375rem; text-wrap: balance; }
@media (min-width: 761px) { .services { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .services { gap: 48px; } }

/* Photo banner */
.banner { position: relative; overflow: hidden; background: #2a1d16; }
.banner img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.banner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(30, 20, 14, 0.88), rgba(30, 20, 14, 0.66) 55%, rgba(30, 20, 14, 0.38)); }
.banner .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.banner h2 { color: #fff; max-width: 18ch; }
.banner .btn { margin-top: 26px; }
@media (min-width: 1024px) { .banner .wrap { padding-top: 120px; padding-bottom: 120px; } }

/* Kind words: a card over a photo, with arrows */
.words { display: grid; }
.words .lead { padding-bottom: 24px; }
.words .lead p { margin: 14px 0 0; }
.words > figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.words > figure img { width: 100%; height: 100%; object-fit: cover; }
.words > figure img.up { object-position: 50% 15%; }
.quote { position: relative; z-index: 1; margin: -48px 16px 0; padding: 28px 24px; background: #fff; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.6; }
.quote p { margin: 16px 0 0; color: var(--ink); font-weight: 500; }
.arrows { display: flex; justify-content: flex-end; gap: 4px; margin-top: 12px; }
.arrows button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.arrows svg { width: 20px; height: 12px; }
@media (min-width: 761px) {
  .words { grid-template-columns: 5fr 1fr 6fr; margin-top: 0; }
  .words .lead { grid-column: 1; grid-row: 1; padding-bottom: 32px; }
  .words > figure { grid-column: 2 / 4; grid-row: 1 / 3; aspect-ratio: auto; min-height: 400px; }
  .quote { grid-column: 1 / 3; grid-row: 2; margin: 0 0 -48px; align-self: end; padding: 32px 30px; }
  .words .lead { padding-right: 24px; }
  .words h2 { font-size: 1.9rem; }
  .arrows { grid-column: 3; margin-top: 12px; }
  #testimonials { padding-bottom: 24px; }
}
@media (min-width: 1024px) { .words h2 { font-size: 2.6rem; } }
@media (hover: hover) { .arrows button:hover { color: var(--label); } }
/* Changing reviews (site.js adds .q-live): the photos crossfade and settle in, the words fade and rise.
   All four reviews share one cell, so the card keeps the tallest one's height and the page never jumps. */
.q-pics { position: relative; }
.q-live .q-pics img { position: absolute; top: 0; left: 0; object-position: 50% 30%; opacity: 0; transform: scale(1.04); transition: opacity 0.9s ease, transform 1.6s ease; }
.q-live .q-pics img.on { opacity: 1; transform: none; }
.q-live .quote { display: grid; align-items: center; }
.q-live .quote [data-quote] { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s; }
.q-live .quote [data-quote].on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s, visibility 0s 0.3s; }
@media (prefers-reduced-motion: reduce) { .q-live .q-pics img, .q-live .quote [data-quote], .q-live .quote [data-quote].on { transition: none; transform: none; } }

/* Pricing cards */
.plans { display: grid; gap: 20px; margin-top: 40px; text-align: left; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; background: #fff; box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 1.125rem; }
.plan .price { flex: 1; margin: 12px 0 24px; color: var(--ink); font: 400 2.25rem/1 var(--serif); font-variation-settings: "SOFT" 50, "WONK" 0; }
.plan .price sup { font-size: 0.55em; vertical-align: 0.6em; }
.plan .btn { width: 100%; }
/* Sessions: smaller cards matching the wedding cards, each with its own booking link */
.subhead { margin: 48px 0 0; font: 400 1.75rem/1.2 var(--serif); font-variation-settings: "SOFT" 50, "WONK" 0; }
.plans.slim { margin-top: 20px; }
.plans.slim .plan { padding: 24px; }
.plan h4 { margin: 0; color: var(--ink); font: 500 1.125rem/1.3 var(--sans); }
.plans.slim .price { flex: none; margin: 10px 0 0; font-size: 2rem; }
.plans.slim .note { margin: 8px 0 0; font-size: 0.875rem; text-wrap: balance; }
.plans.slim .more { align-self: flex-start; margin-top: auto; padding-top: 12px; }
.fine { max-width: 34rem; margin: 28px auto 0; font-size: 0.875rem; }
@media (min-width: 761px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

/* Questions */
.faq-wrap { display: grid; gap: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; color: var(--ink); cursor: pointer; list-style: none; font: 500 1.0625rem/1.35 var(--sans); text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font: 300 1.6rem/1 var(--sans); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; font-size: 0.9375rem; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* Contact */
.contact { display: grid; gap: 36px; }
.area { margin: 16px 0 0; color: var(--ink); }
.phone { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; color: var(--ink); font: 400 1.75rem/1 var(--serif); font-variation-settings: "SOFT" 50, "WONK" 0; text-decoration: none; }
/* Her links in small spaced capitals, like "View portfolio": stacked on phones, one row from 601px. */
.social { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
@media (min-width: 601px) { .social { display: flex; flex-wrap: wrap; gap: 0 32px; } }
@media (hover: hover) { .phone:hover, .social a:hover { color: var(--label); } }
form { display: grid; gap: 16px; padding: 24px 20px; background: #fff; box-shadow: var(--shadow); }
.row2 { display: grid; gap: 16px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 0.875rem; font-weight: 500; }
input, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--sans); }
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-weight: 500; }
.status:empty { display: none; }
.status.ok { color: #2f6b3f; }
.status.bad { color: #b3261e; }
form .btn { width: 100%; }
/* Price buttons land on the form; the extra room covers the section still easing in. */
#contact-form { scroll-margin-top: 20px; }
@media (min-width: 601px) { .row2 { grid-template-columns: 1fr 1fr; } form { padding: 32px; } form .btn { width: auto; justify-self: start; } }
/* Side by side: her heading's letters line up with the top of the form card. */
@media (min-width: 1024px) {
  .contact { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  #contact-title { text-box: trim-start cap alphabetic; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(84px + env(safe-area-inset-bottom)); text-align: center; }
@media (min-width: 1024px) { .foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } }
.foot .motto { margin: 4px 0 0; color: var(--ink); font: 400 1.0625rem/1.4 var(--serif); text-wrap: balance; }
.foot .motto span { white-space: nowrap; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-top: 12px; }
.foot nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.foot .small { margin: 14px 0 0; font-size: 0.875rem; }
@media (hover: hover) { .foot nav a:hover { color: var(--label); text-decoration: underline; } }

/* Portfolio page */
.ph { padding-top: 48px; }
.ph h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); max-width: 18ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
@media (hover: hover) { .tabs a:not([aria-current]):hover { color: var(--ink); } }
.gallery { columns: 2; column-gap: 12px; padding-top: 28px; padding-bottom: 24px; }
.gallery[hidden] { display: none; }
.gallery img { width: 100%; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none; overflow: hidden; background: var(--line); cursor: zoom-in; break-inside: avoid; }
@media (min-width: 761px) { .gallery { column-gap: 20px; } .gallery button { margin-bottom: 20px; } }
.cta { padding-top: 48px; padding-bottom: 72px; text-align: center; }
.cta p { max-width: 32rem; margin: 12px auto 24px; }

/* Photo viewer */
.viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(28, 20, 15, 0.96); padding: max(56px, env(safe-area-inset-top)) var(--pad) max(72px, env(safe-area-inset-bottom)); touch-action: pan-y pinch-zoom; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font: 300 1.75rem/1 var(--sans); cursor: pointer; }
.viewer .x { top: max(8px, env(safe-area-inset-top)); right: var(--pad); }
.viewer .prev, .viewer .next { bottom: max(14px, env(safe-area-inset-bottom)); }
.viewer .prev { left: var(--pad); }
.viewer .next { right: var(--pad); }
.viewer .count { position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; color: #d8cfc4; font-size: 0.875rem; pointer-events: none; }
@media (min-width: 761px) { .viewer { padding: 64px 88px; } .viewer .prev, .viewer .next { top: 50%; bottom: auto; transform: translateY(-50%); } .viewer .count { bottom: 22px; } }
@media (hover: hover) { .viewer button:hover { background: rgba(255, 255, 255, 0.24); } }
html.locked, html.locked body { overflow: hidden; }

/* Not-found page */
.nf { padding-top: 18vh; padding-bottom: 64px; text-align: center; }
.nf h1 { margin: 24px auto 0; font-size: clamp(2rem, 7vw, 2.8rem); }
.nf p { margin: 12px 0 0; }
.nf .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Back to top: a small cream square in the corner, shown only while scrolling back up (site.js) */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 18; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ink); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
.totop.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s; }
.totop svg { width: 11px; height: 18px; }
@media (min-width: 1024px) { .totop { right: 24px; bottom: 24px; } }
@media (hover: hover) { .totop:hover { color: var(--label); border-color: var(--accent); } }

/* Smooth scrolling, and a soft fade from page to page (browsers without it simply change pages) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
  .top { view-transition-name: top; }
}

/* Sections ease in once, and photos ease in one by one; nothing moves for reduced motion */
/* A long, gentle ease-out: quick to start, then a slow settle with no hard stop. */
.rise { opacity: 0; transform: translateY(20px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.rise.in { opacity: 1; transform: none; }
.pop { opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.pop.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise, .pop { opacity: 1; transform: none; transition: none; } .pics img, .services .pic img, .totop { transition: none; } }
