/*
 * The Smile Culture website stylesheet, version 2.2.0 (13 Nov 2026). The version is set in
 * THE_SMILE_CULTURE_WEBSITE/site.json and described in THE_SMILE_CULTURE_WEBSITE/CHANGELOG.md.
 *
 * Palette from TheSmileCulture_Brand_Identity/_source/brandkit.py (HEX). Display type is
 * Bodoni Moda (SIL Open Font License, /fonts/OFL.txt), self-hosted so every device shows the
 * same Bodoni: the kit's display face is Bodoni MT, which cannot be served on the web. Body
 * text uses the device's Gill Sans where it has one. The motto uses Copperplate where the device
 * has it, otherwise the self-hosted Bodoni.
 *
 * One layout from phone to desktop. Multi-column layouts start at 640 px, so a phone held
 * sideways shows the same page as a desktop (client, 13 Nov 2026); only a phone held upright
 * stacks into one column.
 *
 * No inline styles anywhere: the Content-Security-Policy only allows this file and /fonts.
 */

@font-face {
  font-family: "TSC Bodoni";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "TSC Bodoni";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --onyx: #101215;
  --ground-hi: #1b1f26;
  --ground-lo: #07080a;
  --gold: #c8a253;
  --gold-light: #e7d3a1;
  --gold-deep: #8c6b27;
  --gold-ink: #6e531c;
  --porcelain: #f5f1ea;
  --enamel: #a9b0b5;
  --slate: #26343b;
  --ink-soft: #3b4148;
  --hair: rgba(200, 162, 83, 0.22);
  --hair-strong: rgba(200, 162, 83, 0.5);
  --serif: "TSC Bodoni", "Bodoni 72", "Bodoni MT", Didot, Georgia, serif;
  --sans: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Calibri, "Segoe UI", system-ui, -apple-system,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --engraved: "Copperplate Gothic Light", "Copperplate Gothic", Copperplate, "TSC Bodoni", Georgia, serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  /*
   * The header logo's width (client, 13 Nov 2026: small, the size of the earlier preview's
   * header logo, about 172 px on a phone and 214 px on a desktop, adjusting with the screen,
   * and always leaving room for the WhatsApp button beside it: 130 px for the button and the
   * gap, so the pair fits one row down to a 300 px screen).
   */
  --brand-w: min(214px, calc(7vw + 147px), max(140px, calc(100vw - 2 * var(--gutter) - 130px)));
  /* the sticky two-row header, so in-page links stop below it (measured: 59 px of rows and
     padding, plus the taller of the logo, 0.2489 of its width, and the 40 px button) */
  --header-h: calc(59px + max(var(--brand-w) * 0.2489, 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* No smooth scrolling (client, 16 Nov 2026: the header links and Back to top were "taking time"):
   on this long page the browser's glide took 0.7 to 1.5 s (Chrome, measured 16 Nov). In-page
   links now jump at once, and the section heading settles in as it arrives (section[id] below). */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--onyx);
  color: var(--porcelain);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

/* No single word left alone on the last line of running text. */
p,
figcaption {
  text-wrap: pretty;
}

a {
  color: var(--gold-light);
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--porcelain);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: rgba(200, 162, 83, 0.35);
  color: var(--porcelain);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--onyx);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

/* The section a header link jumps to: its heading settles in, so the jump still reads as a move. */
@keyframes section-arrive {
  from {
    opacity: 0.3;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.section:target .section-head {
  animation: section-arrive 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------------------------------------------------------------- header */
/*
 * Feedback1 round 2 (ver2a, 13 Nov 2026): two rows on every screen, kept at the top while the
 * page scrolls. Row one is the logo as in the client's saved file (Feedback1/logo.jpg), taken
 * from the kit's templates: the flat gold Primary lockup with its own arced motto, cropped to
 * its ink, small, with the WhatsApp button beside it. Row two is the navigation.
 *
 * Client decision, 13 Nov 2026: at this size the arced motto's capitals are about 2.5 px tall,
 * under the 8 px legibility floor, so here the motto is ornament. The readable motto is the
 * live-text line under the hero logo. tools/web/site_check.cjs reports this logo as a known
 * exception instead of a failure.
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 10, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hair);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.brand {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
}

.brand-logo {
  width: var(--brand-w);
}

.nav {
  border-top: 1px solid var(--hair);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.nav a {
  color: var(--enamel);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--gold-light);
}

/* Phones keep the same two rows, logo left and WhatsApp right: the logo narrows to leave the
   button its room (--brand-w), and the spacing tightens. */
@media (max-width: 599px) {
  .header-top {
    gap: 12px;
  }

  .header-top .header-cta {
    flex: none;
    padding: 0 14px;
    letter-spacing: 0.16em;
  }

  .nav-row {
    gap: 6px 16px;
  }

  .nav a {
    letter-spacing: 0.14em;
  }
}

/* The four links stay on one line down to a 320 px screen, so the header keeps its height. */
@media (max-width: 399px) {
  .nav-row {
    column-gap: 11px;
  }

  .nav a {
    letter-spacing: 0.07em;
  }
}

@media (max-width: 359px) {
  .nav-row {
    column-gap: 9px;
  }

  .nav a {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* A light champagne ramp, so the button reads as metal rather than flat paint. */
.btn-gold {
  background: linear-gradient(180deg, #dcbd75 0%, var(--gold) 52%, #b28d40 100%);
  color: var(--onyx);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ecd39a 0%, #d6b264 52%, #c19a4b 100%);
  color: var(--onyx);
}

.btn-line {
  background: rgba(7, 8, 10, 0.25);
  color: var(--gold-light);
}

.btn-line:hover {
  background: rgba(200, 162, 83, 0.12);
  color: var(--porcelain);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

/* Phones stack the buttons at one shared width, so the pair reads as a set. The tracking closes
   up a little so "Call +971 50 89-SMILE (76453)" stays on one line on a 360 px screen. */
@media (max-width: 559px) {
  .actions {
    flex-direction: column;
    align-items: center;
  }

  .actions .btn {
    width: 100%;
    max-width: 340px;
    padding: 0 16px;
    letter-spacing: 0.16em;
  }
}

/* ---------------------------------------------------------------- motto */
/*
 * Client rule, 3 Nov 2026: the motto is visible and readable on every screen, and desktop and
 * phone carry the same information in the same format. So every screen uses one treatment: the
 * No-Tagline logo with the motto set straight beneath it as one line of live text (the kit's
 * "motto straight" arrangement).
 *
 * Legibility floor: 8 px cap height (brandkit MOTTO_MIN_CAP_PX). Copperplate Gothic Light's
 * capitals measure 0.667 em, so 12.5 px type gives 8.3 px of cap. Phones keep the letters at
 * that size and close the tracking up instead, step by step with the screen width. Measured
 * line widths in Copperplate: 23.3 em at the 360 px setting (291 px, inside the 305 px the hero
 * leaves), 24.7 em at 375 px, 26.0 em at 414 px, 30.1 em at 560 px, 32.2 em on desktop.
 * tools/web/site_check.cjs measures the cap height, warns if the line breaks, and fails on
 * sideways scrolling.
 */

.motto {
  --trk: 0.06em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin: 0;
  color: var(--enamel);
  font-family: var(--engraved);
  font-size: 12.5px;
  letter-spacing: var(--trk);
  line-height: 1.3;
  text-transform: uppercase;
}

.motto .t {
  margin-right: calc(-1 * var(--trk));
  white-space: nowrap;
}

.motto .dia {
  flex: none;
  width: 0.45em;
  height: 0.45em;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (min-width: 375px) {
  .motto {
    --trk: 0.1em;
    column-gap: 0.5em;
  }
}

@media (min-width: 414px) {
  .motto {
    --trk: 0.14em;
    column-gap: 0.6em;
    font-size: 13px;
  }
}

@media (min-width: 560px) {
  .motto {
    --trk: 0.26em;
    column-gap: 0.9em;
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------- hero */
/*
 * The kit's own onyx ground (08_Photoshop_Layers, Layer 0) under a faint champagne glow, the
 * logo in the kit's champagne-foil presentation finish, and the premium cut's double rule as a
 * frame: a hairline outside, a heavier line inside, a brand diamond on each long edge.
 *
 * Feedback1 round 2 (ver2a): the frame no longer reserves most of the screen. It holds its
 * content with equal space above and below, scaled to the screen's height, so the banner sits
 * well on a desktop, a laptop and a phone held either way.
 */

.hero {
  position: relative;
  padding: clamp(10px, 2.5vw, 36px);
  background-color: var(--ground-lo);
  background-image:
    radial-gradient(56% 44% at 50% 46%, rgba(200, 162, 83, 0.12), rgba(200, 162, 83, 0) 72%),
    url("/assets/ground/onyx_1080.jpg");
  background-position: center, center;
  background-size: 100% 100%, cover;
  border-bottom: 1px solid var(--hair);
}

@media (min-width: 900px) {
  .hero {
    background-image:
      radial-gradient(56% 44% at 50% 46%, rgba(200, 162, 83, 0.12), rgba(200, 162, 83, 0) 72%),
      url("/assets/ground/onyx_1920.jpg");
  }
}

.hero-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 8vh, 96px) clamp(14px, 4vw, 64px);
  padding-block: clamp(36px, 8svh, 96px);
  border: 1px solid rgba(200, 162, 83, 0.22);
  text-align: center;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 162, 83, 0.38);
  pointer-events: none;
}

.gem {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.gem-top {
  top: -5px;
}

.gem-bottom {
  bottom: -5px;
}

/* Under the buttons, just above the KBM credit, so the two read as one statement of who stands
   behind the work (Feedback1, round 1). */
.eyebrow {
  margin: 44px 0 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Phones: tighter tracking so the eyebrow fits one line where it can, balanced where not. */
@media (max-width: 559px) {
  .eyebrow {
    letter-spacing: 0.2em;
  }
}

/* On phones the logo grows to the motto's width rather than the motto shrinking to the logo. */
.hero-title {
  align-self: stretch;
  margin: 0;
  line-height: 0;
}

.hero-logo {
  width: min(100%, 560px);
  margin: 0 auto;
}

.hero-motto {
  margin-top: 22px;
}

/* Desktop: the motto line is about 80% of the logo's width, the kit's proportion. */
@media (min-width: 860px) {
  .hero-logo {
    width: 720px;
  }

  .hero-motto {
    --trk: 0.32em;
    column-gap: 1.05em;
    margin-top: 30px;
    font-size: 18px;
  }
}

.credit {
  margin: 12px 0 0;
  color: var(--enamel);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  border-bottom: 1px solid var(--hair);
}

.section-alt {
  background: linear-gradient(180deg, var(--ground-hi) 0%, var(--onyx) 100%);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.section-head h2 em,
.feature h2 em {
  color: var(--gold-light);
  font-style: italic;
}

/* N° 01 — SERVICES: a numbered kicker, as the Reels' end cards use. */
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.kicker .no {
  color: var(--gold-light);
  font-family: var(--engraved);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.kicker .sep {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 220px;
  margin: 28px auto 0;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
}

.rule::before {
  background: linear-gradient(90deg, rgba(200, 162, 83, 0), var(--gold));
}

.rule::after {
  background: linear-gradient(90deg, var(--gold), rgba(200, 162, 83, 0));
}

.rule span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- N° 01 how the work is made */

.pillars {
  display: grid;
  gap: 44px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar + .pillar {
  padding-top: 44px;
  border-top: 1px solid var(--hair);
}

.pillar h3 {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--engraved);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Client, 16 Nov 2026: running text in the brand's text face (the kit: "Gill Sans MT sets
   everything else"), not the headings' Bodoni, which read too large on phones (19 to 22 px). The
   size follows the screen, 17 px on a phone (the body size; Gill Sans has a small x-height) to
   18.5 px from a laptop up, about 50 characters a line on both. */
.pillar p {
  color: rgba(245, 241, 234, 0.9);
  font-family: var(--sans);
  font-size: clamp(17px, 16.2px + 0.16vw, 18.5px);
  line-height: 1.75;
  letter-spacing: 0.005em;
}

.pillar p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .pillar {
    padding: 6px clamp(24px, 4.5vw, 56px);
  }

  .pillar + .pillar {
    padding-top: 6px;
    border-top: 0;
    border-left: 1px solid var(--hair);
  }
}

/* ---------------------------------------------------------------- N° 02 services */
/*
 * Client instruction, 13 Nov 2026: the services from the menu, categorised. Every service on
 * SC-TSC-MENU-003 v1.1 (tools/_build_menu_20261113.py, both pages), grouped by the kind of work
 * rather than by the menu's priced and unpriced pages. No prices: the site carries none (the
 * checker fails on any), so the note and its WhatsApp button send clinics to the menu.
 * v2.4.0 ("fine tune and optimize the Services part"): the zirconia crown is one service with the
 * menu's three crowns as its options; phones get tighter cards; the lists keep their list role
 * in Safari (role="list", which list-style: none would otherwise drop).
 */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/*
 * Two columns from 640 px. Each card keeps its own height and the cards flow down the columns
 * (01 and 02 on the left, 03 and 04 on the right), so a short group never sits in an empty frame
 * beside a long one. Menu v1.1 gives the ceramic group eight services against the fixed group's
 * five: in a grid row the fixed card stood 205 px hollow on a desktop and up to 349 px on a phone
 * held sideways.
 */
@media (min-width: 640px) {
  .services {
    display: block;
    column-count: 2;
    column-gap: 26px;
  }

  .service-group {
    break-inside: avoid;
    margin-bottom: 26px;
  }

  .service-group:last-child {
    margin-bottom: 0;
  }
}

/* Double rule, hairline outside and heavier inside, as on the kit's premium cut. */
.service-group {
  position: relative;
  padding: 40px clamp(24px, 3vw, 38px) 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--hair);
}

.service-group::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 162, 83, 0.4);
  pointer-events: none;
}

.num {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--engraved);
  font-size: 13px;
  letter-spacing: 0.3em;
}

.service-group h3 {
  margin-bottom: 18px;
  color: var(--porcelain);
  font-size: clamp(24px, 2.4vw, 28px);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list > li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}

/*
 * The zirconia crown's options: the three crowns of menu v1.1 (decision 7), as a short list under
 * the one name, each on the kit's gold lozenge, so the card does not repeat "zirconia crown"
 * three times.
 */
.s-options {
  display: grid;
  gap: 3px;
  margin: 6px 0 2px;
  padding: 0;
  list-style: none;
}

.s-opt {
  position: relative;
  padding-left: 17px;
  color: rgba(245, 241, 234, 0.88);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.s-opt::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.s-name {
  color: var(--porcelain);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}

.s-note {
  color: var(--enamel);
  font-size: 14px;
  line-height: 1.5;
}

/* Phones: the same cards with less air, so the four groups take fewer screens to pass. */
@media (max-width: 639px) {
  .service-group {
    padding: 30px 24px 22px;
  }

  .num {
    margin-bottom: 14px;
  }

  .service-group h3 {
    margin-bottom: 12px;
  }

  .service-list > li {
    padding: 10px 0;
  }

  .s-name {
    font-size: 18px;
  }
}

.services-actions {
  margin-top: 22px;
}

.services-note {
  margin: 36px 0 0;
  color: var(--enamel);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------------------------------------------------------------- N° 03 work */
/*
 * One horizontal gallery of black-background photographs as posted on Instagram, one per case,
 * each with a description beneath it (Feedback1, round 1). Round 2 (ver2b): every tile is the
 * same size, the gallery opens on the middle photograph so the visitor can swipe either way, and
 * the tiles scale with the screen, on a phone as on a desktop. CSS scroll-snap, no script (the
 * Content-Security-Policy allows none).
 *
 * Client rule: a photograph is never cropped or zoomed to fit a frame. Each tile is 3:2, the
 * shape of most of the set, and each photograph is scaled down whole inside it (object-fit:
 * contain). v2.5.0 (Mark, 14 Nov 2026: "grainy/matte black"): every photograph now stands on the
 * same grainy matte black, already set at 3:2 (tools/web/matte_ground.py), so each one fills its
 * tile and the set reads as one. The tile behind it is that ground's mean colour (#090909), in
 * case a browser leaves a sliver. The section stays the darker #040404.
 *
 * The tile is sized by the screen's width and, on a short screen, by its height too, so a photo
 * and its title always fit together under the sticky header.
 */

.section-black {
  background: #040404;
}

.gallery {
  --tile: clamp(240px, min(78vw, calc((100vh - var(--header-h) - 190px) * 1.5)), 600px);
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 6px calc(50% - var(--tile) / 2) 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-deep) transparent;
  scrollbar-width: thin;
}

@supports (height: 100svh) {
  .gallery {
    --tile: clamp(240px, min(78vw, calc((100svh - var(--header-h) - 190px) * 1.5)), 600px);
  }
}

.slide {
  flex: none;
  width: var(--tile);
  margin: 0;
  scroll-snap-align: center;
}

/* The gallery first shows the middle photograph, so a visitor can swipe either way. A one-line
   script right after the gallery does it in every browser (allowed by its hash in the server's
   security policy): Safari and Firefox lack scroll-initial-target, and Chrome did not apply it
   when the whole page arrived at once (seen on the 14 Nov draft). The CSS stays as a second way. */
.slide-start {
  scroll-initial-target: nearest;
}

.slide-frame {
  aspect-ratio: 3 / 2;
  background: #090909;
  border: 1px solid var(--hair);
}

.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide figcaption {
  margin: 20px auto 0;
  text-align: center;
}

.slide-no {
  display: block;
  color: var(--gold);
  font-family: var(--engraved);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.slide-title {
  margin: 10px 0 8px;
  color: var(--porcelain);
  font-size: clamp(20px, 1.9vw, 24px);
}

.slide-text {
  margin: 0;
  color: var(--enamel);
  font-size: 15px;
  line-height: 1.6;
}

/* The photograph in the middle is at full strength and its neighbours are softer, so the centre
   reads as the subject. Where the browser has no scroll-driven animation, every tile is full. */
@supports (animation-timeline: view()) {
  .slide {
    animation: slide-focus linear both;
    animation-timeline: view(inline);
  }
}

@keyframes slide-focus {
  0%,
  100% {
    opacity: 0.45;
  }

  35%,
  65% {
    opacity: 1;
  }
}

.gallery-hint {
  margin: 22px 0 0;
  padding: 0 var(--gutter);
  color: var(--enamel);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- N° 04 Smile Design */

.feature {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(200, 162, 83, 0.12), rgba(200, 162, 83, 0) 62%),
    linear-gradient(180deg, var(--slate) 0%, #151b1f 100%);
  text-align: center;
}

.feature .wrap {
  max-width: 900px;
}

.feature h2 {
  color: var(--gold-light);
  font-size: clamp(50px, 8vw, 100px);
  font-style: italic;
  line-height: 1.02;
}

.feature .quote {
  max-width: 30em;
  margin: 36px auto 0;
  color: var(--porcelain);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- N° 05 send a case (porcelain) */

.section-light {
  background: var(--porcelain);
  border-bottom: 1px solid rgba(16, 18, 21, 0.1);
  color: var(--onyx);
}

.section-light .kicker {
  color: var(--gold-ink);
}

.section-light .kicker .no {
  color: var(--gold-deep);
}

.section-light h2,
.section-light h3 {
  color: var(--onyx);
}

.section-light .section-head h2 em {
  color: var(--gold-deep);
}

.section-light .rule::before {
  background: linear-gradient(90deg, rgba(140, 107, 39, 0), var(--gold-deep));
}

.section-light .rule::after {
  background: linear-gradient(90deg, var(--gold-deep), rgba(140, 107, 39, 0));
}

.section-light .rule span {
  background: var(--gold-deep);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
  }
}

.steps li {
  padding-top: 28px;
  border-top: 1px solid rgba(140, 107, 39, 0.5);
  counter-increment: step;
}

/* Roman, not italic: in Bodoni Moda italic "01" reads as "OI" (seen on the 13 Nov preview). */
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 42px;
  font-style: normal;
  line-height: 1;
}

.steps h3 {
  font-size: 24px;
}

.steps p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.section-light .actions {
  margin-top: 60px;
}

.section-light .btn-gold {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(140, 107, 39, 0.25);
}

.section-light .btn-line {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--onyx);
}

.section-light .btn-line:hover {
  background: rgba(140, 107, 39, 0.1);
  color: var(--onyx);
}

.section-light :focus-visible {
  outline-color: var(--gold-ink);
}

/* ---------------------------------------------------------------- N° 06 contact */
/*
 * Feedback1 round 1 (ver1d): condensed, centred, inside the kit's double rule (heavier line
 * inside, hairline 5 px outside, as on the service cards). One row of four from 1180 px, two by
 * two from 640 px, one column on a phone held upright. Four columns start only where each cell
 * is at least 266 px wide, so the email holds one line; it can break only after the "@" (a <wbr>
 * in the page), never mid-word.
 */

.section-compact {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-compact .section-head {
  margin-bottom: 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 1068px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--hair);
  border: 1px solid rgba(200, 162, 83, 0.4);
  outline: 1px solid var(--hair);
  outline-offset: 5px;
  text-align: center;
}

.contact-grid li {
  padding: 22px 18px;
  background: var(--onyx);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid li {
    padding: 26px 24px;
  }
}

@media (min-width: 1180px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid li {
    padding: 28px 16px;
  }
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* Contact details in the text face too (client, 16 Nov 2026; they were 18 to 19 px Bodoni), from
   16 px on a phone to 17.5 px on a desktop. The longest, the phone number, keeps one line on a
   320 px screen and in a quarter of the desktop row, in Android's fallback sans as well. */
.value {
  display: block;
  color: var(--porcelain);
  font-family: var(--sans);
  font-size: clamp(16px, 15.4px + 0.15vw, 17.5px);
  letter-spacing: 0.02em;
  line-height: 1.4;
  overflow-wrap: break-word;
  text-wrap: balance;
}

a.value {
  text-decoration: none;
}

a.value:hover {
  color: var(--gold-light);
}

.sub {
  display: inline-block;
  margin-top: 6px;
  color: var(--enamel);
  font-size: 13px;
}

a.sub:hover {
  color: var(--gold-light);
}

/* ---------------------------------------------------------------- footer */
/*
 * Feedback1 round 2 (ver2c): no logo and no motto here; the header carries both on every
 * screen. The bottom padding leaves room under the last line for the floating controls.
 */

.site-footer {
  padding: 56px 0 120px;
  background: var(--ground-lo);
  text-align: center;
}

.footer-credit {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-wrap: balance;
}

.footer-meta {
  margin: 0 0 6px;
  color: var(--enamel);
  font-size: 14px;
}

.footer-meta a,
.footer-links a {
  color: var(--enamel);
}

.footer-meta a:hover,
.footer-links a:hover {
  color: var(--gold-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 26px 0 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  list-style: none;
}

.footer-copy {
  margin: 26px 0 0;
  color: var(--enamel);
  font-size: 12px;
}

/* ---------------------------------------------------------------- inner pages */

.page {
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--hair);
}

.page .wrap {
  max-width: 800px;
}

.page h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 58px);
}

.page h2 {
  margin: 44px 0 12px;
  font-size: 27px;
}

.page p {
  color: var(--enamel);
}

.updated {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-404 {
  text-align: center;
}

/* ---------------------------------------------------------------- floating controls */
/*
 * Feedback1: an encircled TSC seal labelled "Back to top" (round 1), shown at all times and the
 * same on every screen (round 2, ver2b). It is a plain link to #top, because the
 * Content-Security-Policy allows no script. Phones get a smaller seal, so it covers less of the
 * page. The seal carries no motto, by the brand rule's legibility exception.
 */

.floating {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
}

.to-top img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(200, 162, 83, 0.45), 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.to-top span {
  padding: 5px 7px 4px;
  background: rgba(7, 8, 10, 0.88);
  border: 1px solid var(--hair);
  white-space: nowrap;
}

/* Hover only where there is a mouse: on a touch screen a hover state can hold the first tap. */
@media (hover: hover) and (pointer: fine) {
  .to-top:hover {
    color: var(--porcelain);
  }

  .to-top:hover img {
    transform: translateY(-2px);
  }
}

@media (max-width: 599px), (orientation: landscape) and (max-height: 520px) {
  .floating {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .to-top {
    gap: 4px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .to-top img {
    width: 42px;
    height: 42px;
  }

  .to-top span {
    padding: 4px 5px 3px;
  }
}

/*
 * Phones held upright (v2.4.0, client: "floating Back to Top is not working with smaller
 * screens"). Safari on iPhone keeps its address bar at the foot of the screen: a floating bar from
 * iOS 26, and a compact bar once the page has scrolled. A tap in that strip goes to the browser,
 * which opens its bar instead of following the link, so a control 10 px from the bottom needed a
 * second tap or never reacted. The control now sits 96 px up, meant to clear that strip whether
 * the page reaches behind the bar or stops at it; not yet tested on an iPhone. A plain offset on purpose: a position
 * worked out from 100svh depends on how each iOS version measures the screen, and could put the
 * control back under the bar. Phones held sideways keep it low: Safari puts its bar at the top in
 * landscape.
 */
@media (max-width: 599px) and (orientation: portrait) {
  .floating {
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  }

  /* The footer's last line ends above the raised control at any text size. */
  .site-footer {
    padding-bottom: 200px;
  }
}

/* ---------------------------------------------------------------- phone held sideways */
/*
 * The same page as a desktop, scaled to a short screen: tighter header rows, and a hero that
 * keeps its logo, motto, buttons and credit together on one screen under the sticky header.
 */

@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-h: calc(47px + max(var(--brand-w) * 0.2489, 40px));
  }

  .section {
    padding-block: 48px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .kicker {
    margin-bottom: 14px;
  }

  .rule {
    margin-top: 18px;
  }

  .header-top {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .nav-row {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .hero {
    padding: 10px;
  }

  .hero-frame {
    padding: 20px 24px;
    padding-block: 20px;
  }

  .hero-logo {
    width: 400px;
  }

  .hero-motto {
    --trk: 0.14em;
    column-gap: 0.6em;
    margin-top: 16px;
    font-size: 13px;
  }

  .hero .actions {
    margin-top: 20px;
  }

  .hero .eyebrow {
    margin-top: 20px;
  }

  /* The photograph fits the screen under the header; its caption follows on scrolling. */
  .gallery {
    --tile: clamp(240px, min(60vw, calc((100vh - var(--header-h) - 40px) * 1.5)), 600px);
  }

  @supports (height: 100svh) {
    .gallery {
      --tile: clamp(240px, min(60vw, calc((100svh - var(--header-h) - 40px) * 1.5)), 600px);
    }
  }
}

/* ---------------------------------------------------------------- print */
/* A printed or saved page shows every photograph and drops the scroll controls. */

@media print {
  .site-header {
    position: static;
  }

  .floating,
  .skip-link,
  .gallery-hint {
    display: none;
  }

  .gallery {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-inline: var(--gutter);
  }

  .slide {
    animation: none;
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .section:target .section-head {
    animation: none;
  }

  .btn,
  .to-top img {
    transition: none;
  }

  .to-top:hover img {
    transform: none;
  }
}
