/* Shifa Nail Care
   Monochrome interface with full-color imagery */

:root {
  --orange: #171717;
  --orange-deep: #000000;
  --cream: #EAE9E5;
  --paper: #FFFFFF;
  --paper-card: #FFFFFF;
  --ink: #111111;
  --ink-80: rgba(17, 17, 17, 0.82);
  --ink-65: rgba(17, 17, 17, 0.68);
  --ink-line: rgba(17, 17, 17, 0.24);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", serif;
  --pad: 40px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[dir="rtl"] { contain: paint; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* Typography ------------------------------------------------------------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-65);
  margin: 0 0 18px;
}
.eyebrow--tight { margin: 0; white-space: nowrap; }
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

.h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.h2--display {
  font-size: clamp(38px, 5vw, 68px);
  margin-bottom: 22px;
}
.section-head--center { text-align: center; max-width: 800px; margin-inline: auto; }
.section-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-65);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: balance;
}

.rule {
  border: 0;
  border-top: 1px dashed var(--ink-line);
  margin: 0 var(--pad);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 15px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 11px 24px; font-size: 14px; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.2);
}
.btn--primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.28);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.5);
}
.btn--ghost:hover { background: var(--cream); color: var(--ink); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 11px var(--pad);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--ink-line);
  direction: ltr;
}

.brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  color: var(--ink);
}
.brand img { height: 46px; width: auto; }

.site-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--ink);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--ink); }
.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 32px 1px 32px;
  align-items: center;
  height: 34px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
}
.lang-toggle__option {
  position: relative;
  z-index: 2;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--ink-65);
  text-align: center;
  transition: color 0.25s ease;
}
.lang-toggle__option--ar { font: 700 17px/1 var(--arabic); }
.lang-toggle__option.is-active { color: var(--orange-deep); }
.lang-toggle__divider { width: 1px; height: 13px; background: var(--ink-line); }
.lang-toggle__indicator {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 4px;
  width: 34px;
  height: 26px;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-toggle.is-arabic .lang-toggle__indicator { transform: translateX(34px); }
.lang-toggle.geo-fill { --geo-fill-color: var(--cream); }

/* Geometric button fill ------------------------------------------------- */

.geo-fill {
  --geo-fill-color: var(--orange);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.geo-fill__overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}
.geo-fill__cell {
  margin: -0.5px;
  border-radius: 2px;
  background: var(--geo-fill-color);
  opacity: 0;
  transform: scale(0);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1) var(--geo-delay),
    opacity 180ms ease var(--geo-delay);
}
.geo-fill__content {
  position: relative;
  z-index: 1;
  color: inherit;
  transition: color 220ms ease;
}
.geo-fill:hover .geo-fill__cell,
.geo-fill:focus-visible .geo-fill__cell {
  opacity: 1;
  transform: scale(1);
}
.geo-fill:hover .geo-fill__content,
.geo-fill:focus-visible .geo-fill__content { color: var(--paper); }
.btn--primary { --geo-fill-color: var(--paper); }
.btn--primary:hover .geo-fill__content,
.btn--primary:focus-visible .geo-fill__content { color: var(--ink); }
.service-tab.is-active { --geo-fill-color: var(--paper); }
.service-tab:hover .geo-fill__content,
.service-tab:focus-visible .geo-fill__content { color: var(--paper); }
.service-tab.is-active:hover .geo-fill__content,
.service-tab.is-active:focus-visible .geo-fill__content { color: var(--ink); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 74px));
  padding: 42px var(--pad) 50px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__wash { position: absolute; inset: 0; background: var(--paper); }
.hero__hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.05) 0 2px, transparent 2px 15px);
  opacity: 0.2;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 42%, rgba(255, 255, 255, 0.92) 0%, rgba(17, 17, 17, 0.02) 58%, rgba(255, 255, 255, 0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(310px, 0.86fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  direction: ltr;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero__mark-wrap {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

/* Animated glossy 3D mark */
.mark {
  position: relative;
  z-index: 2;
  width: clamp(270px, 22vw, 321px);
  height: auto;
  aspect-ratio: 436 / 695;
}
.mark__shadow {
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 170px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(17, 17, 17, 0.5) 0%, rgba(17, 17, 17, 0) 70%);
  transform: translateX(-50%);
  animation: markShadow 7s ease-in-out infinite;
}
.mark__float {
  position: absolute;
  inset: 0;
  animation: markFloat 7s ease-in-out infinite;
}
.mark__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mark__layer--d4 { filter: brightness(0.42) saturate(1.6) blur(7px); opacity: 0.42; transform: translate(16px, 20px); }
.mark__layer--d3 { filter: brightness(0.5) saturate(1.5); transform: translate(9px, 11px); }
.mark__layer--d2 { filter: brightness(0.66) saturate(1.4); transform: translate(6px, 7px); }
.mark__layer--d1 { filter: brightness(0.82) saturate(1.3); transform: translate(3px, 4px); }
.mark__layer--face { filter: saturate(1.12) contrast(1.05) drop-shadow(0 10px 14px rgba(138, 60, 5, 0.22)); }
.mark__layer--gloss {
  filter: brightness(1.55) saturate(0.65);
  animation: markGloss 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes markFloat {
  0%   { transform: perspective(1200px) rotateY(-13deg) rotateX(6deg) translateY(-10px) scale(1); }
  50%  { transform: perspective(1200px) rotateY(13deg) rotateX(-4deg) translateY(14px) scale(1.02); }
  100% { transform: perspective(1200px) rotateY(-13deg) rotateX(6deg) translateY(-10px) scale(1); }
}
@keyframes markGloss {
  0% { opacity: 0; } 28% { opacity: 0.55; } 55% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes markShadow {
  0%   { transform: translateX(-50%) scaleX(1); opacity: 0.22; }
  50%  { transform: translateX(-50%) scaleX(0.82); opacity: 0.12; }
  100% { transform: translateX(-50%) scaleX(1); opacity: 0.22; }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(58px, 7.3vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 700px;
}
.hero__title span, .hero__title em { display: block; }
.hero__title em {
  margin-left: clamp(28px, 5vw, 72px);
  font-style: italic;
  font-weight: 800;
  color: var(--orange);
}

.hero__lede {
  max-width: 570px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 24px 0 0;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 28px;
}

/* Arabic --------------------------------------------------------------- */

html[dir="rtl"] body { font-family: var(--arabic), var(--sans); }
html[dir="rtl"] .h2,
html[dir="rtl"] .hero__title,
html[dir="rtl"] .service-card__title h3,
html[dir="rtl"] .review blockquote,
html[dir="rtl"] .footer__title { font-family: var(--arabic), var(--serif); letter-spacing: 0; }
html[dir="rtl"] .hero__copy {
  direction: rtl;
  align-items: flex-end;
  text-align: right;
}
html[dir="rtl"] .hero__title { line-height: 1; }
html[dir="rtl"] .hero__title em { margin-left: 0; margin-right: clamp(28px, 5vw, 72px); }
html[dir="rtl"] .hero__cta { justify-content: flex-end; }
html[dir="rtl"] .service-deck,
html[dir="rtl"] .marquee { direction: ltr; }
html[dir="rtl"] .service-card { direction: rtl; text-align: right; }
html[dir="rtl"] .service-card__title h3 { line-height: 1.25; }
html[dir="rtl"] .service-card > a { align-self: flex-end; }
html[dir="rtl"] .review,
html[dir="rtl"] .footer__details,
html[dir="rtl"] .policy { direction: rtl; }

/* About ------------------------------------------------------------------ */

.about {
  padding: 92px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 68px;
  align-items: center;
}
.about__body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-80);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.about__body p:last-child { margin-bottom: 0; }
.about--compact {
  display: block;
  max-width: 860px;
  text-align: center;
}
.about--compact .about__body p { max-width: 680px; margin-inline: auto; }
.about--compact .about__actions { justify-content: center; }
.about__visual { position: relative; padding: 0 34px 34px 0; }
.about__visual::before {
  content: "";
  position: absolute;
  inset: 34px 0 0 34px;
  border-radius: 52% 48% 8px 8px;
  background: var(--cream);
  border: 1px dashed var(--ink-line);
}
.about__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 52% 48% 8px 8px;
  border: 1px solid var(--ink);
}
.about__stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  transform: rotate(7deg);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.18);
}
.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.text-link::after { content: "\2197"; }
.text-link:hover { color: var(--ink-65); }

/* Safety and clinical care ---------------------------------------------- */

.safety {
  padding: 92px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 68px;
  align-items: start;
}
.safety__intro > p:not(.eyebrow) {
  color: var(--ink-80);
  font-size: 17px;
  line-height: 1.75;
}
.safety__credential {
  width: min(100%, 380px);
  margin: 30px 0 22px;
  border: 1px solid var(--ink);
  background: #FFFFFF;
}
.safety__disclaimer {
  margin: 0;
  padding: 18px 0 0 20px;
  border-left: 3px solid var(--ink);
  font-size: 14px !important;
}
.safety__principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.safety__principles article {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-card);
}
.safety__principles span {
  display: block;
  margin-bottom: 42px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--ink-65);
}
.safety__principles h3 {
  margin: 0 0 12px;
  font: 700 25px/1.15 var(--serif);
}
.safety__principles p {
  margin: 0;
  color: var(--ink-80);
  font-size: 15px;
  line-height: 1.65;
}

.trust-strip {
  padding: 76px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.trust-strip__head {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.trust-strip__head .eyebrow { margin: 0 0 8px; }
.trust-strip__head .h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); }
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.trust-strip__grid article {
  min-height: 205px;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.trust-strip__grid span,
.credential-band span,
.approach-page__grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--ink-65);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.16em;
}
.trust-strip__grid h3 {
  margin: 0 0 10px;
  font: 700 21px/1.15 var(--serif);
}
.trust-strip__grid p {
  margin: 0;
  color: var(--ink-65);
  font-size: 14px;
  line-height: 1.55;
}
.trust-strip__link { margin-top: 28px; }

/* Clinical case work ----------------------------------------------------- */

.clinical {
  padding: 92px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.clinical__head { margin-bottom: 52px; }
.clinical__head .section-intro { max-width: 720px; }

.clinical__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.case {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
}
.case__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-line);
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.case:hover .case__media img { transform: scale(1.03); }

/* Before-and-after comparisons are matted, never cropped. */
.case__media--contain img { object-fit: contain; }
.case__media--contain { background: var(--cream); }

.case__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 6px 11px;
  background: var(--ink);
  color: var(--paper);
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case figcaption { padding: 22px 24px 26px; }
.case__tag {
  margin: 0 0 10px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.case__note {
  margin: 0;
  color: var(--ink-65);
  font-size: 14px;
  line-height: 1.6;
}

.case--credential {
  justify-content: center;
  padding: 30px 24px;
  background: var(--cream);
}
.case--credential .case__tag { margin-bottom: 16px; }
.credential-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.credential-list li {
  padding: 9px 0;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-80);
  font-size: 14px;
  line-height: 1.45;
}
.credential-list li:last-child { border-bottom: 1px solid var(--ink-line); }

.clinical__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .clinical__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .clinical { padding: 68px var(--pad); }
  .clinical__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .case__media img { transition: none; }
  .case:hover .case__media img { transform: none; }
}

/* Services --------------------------------------------------------------- */

.services { padding: 92px 0; max-width: 100%; overflow: hidden; }
.services > .section-head, .services > .policy { margin-inline: auto; width: min(calc(100% - (var(--pad) * 2)), var(--maxw)); }

.service-tabs {
  margin: 42px auto 30px;
  padding: 7px;
  width: max-content;
  max-width: calc(100% - (var(--pad) * 2));
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}
.service-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 19px;
  background: transparent;
  color: var(--ink-65);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.service-tab:hover, .service-tab.is-active {
  background: var(--ink);
  color: var(--cream);
}

.service-deck { width: min(100%, 1440px); margin-inline: auto; }
.service-deck__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px max(var(--pad), calc((100vw - var(--maxw)) / 2)) 30px;
}
.service-deck__viewport::-webkit-scrollbar { display: none; }
.service-deck__track { display: flex; gap: 22px; width: max-content; }
.service-card {
  position: relative;
  flex: 0 0 clamp(300px, 34vw, 430px);
  min-height: 440px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 24px 6px 24px 6px;
  background: var(--paper-card);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.service-card:nth-child(even) { border-radius: 6px 24px 6px 24px; }
.service-card:hover {
  transform: translateY(-7px) rotate(-0.4deg);
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.13);
}
.service-card[hidden] { display: none; }
.service-card--featured { background: var(--cream); border-color: var(--ink); }
.service-card__index {
  position: absolute;
  top: -25px;
  right: 15px;
  font-family: var(--serif);
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
  color: rgba(17, 17, 17, 0.08);
  pointer-events: none;
}
.service-card__cat {
  position: relative;
  margin: 0 0 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.service-card__photo {
  position: relative;
  height: 164px;
  margin: -10px 0 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--cream);
}
.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.service-card__title { position: relative; }
.service-card__title h3 {
  max-width: 280px;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.service-card__title strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  color: var(--orange-deep);
  font-size: 26px;
  line-height: 1;
}
.service-card__meta {
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px dashed var(--ink-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-65);
}
.service-card > p:not([class]) {
  margin: 14px 0 26px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-80);
}
.service-card > a {
  margin-top: auto;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card > a:hover { color: var(--orange-deep); }
.service-deck__controls {
  width: min(calc(100% - (var(--pad) * 2)), var(--maxw));
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.service-deck__controls p {
  margin: 0;
  color: var(--ink-65);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.deck-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.deck-arrow:hover { transform: translateY(-2px); background: var(--cream); }

.policy {
  margin-top: 48px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 6px;
  padding: 24px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  align-items: center;
  justify-content: space-between;
}
.policy__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-80);
  max-width: 760px;
}

/* Work slideshow --------------------------------------------------------- */

.work { padding: 92px 0; }
.work__head { max-width: 800px; margin: 0 auto 48px; padding: 0 var(--pad); }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track,
.marquee.is-loading .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; gap: 22px; padding-right: 22px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.slide {
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid rgba(17, 17, 17, 0.26);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.08) 0 1px, transparent 1px 11px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
  transition: transform 0.25s ease;
}
.slide:nth-child(3n + 1) { transform: rotate(-1.6deg); }
.slide:nth-child(3n + 2) { transform: rotate(1.3deg) translateY(12px); }
.slide:hover { transform: rotate(0) translateY(-6px); }
.slide--wide { width: 390px; aspect-ratio: 4 / 3; margin-top: 70px; }
.slide--tall { width: 270px; }
.slide--comparison-square,
.slide--comparison-tall {
  border: 2px solid var(--orange);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.2);
}
.slide--comparison-square {
  width: 350px;
  aspect-ratio: 1179 / 1165;
  margin-top: 44px;
}
.slide--comparison-tall {
  width: 220px;
  aspect-ratio: 706 / 1411;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.55);
}

/* Reviews carousel ------------------------------------------------------- */

.reviews { padding: 92px var(--pad); max-width: var(--maxw); margin: 0 auto; }

.reviews__head {
  margin-bottom: 48px;
}
.score { display: flex; align-items: baseline; justify-content: center; gap: 18px; }
.score__num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.score__label { display: block; font-size: 15px; color: var(--ink-65); margin-top: 6px; }
.stars { color: var(--orange); font-size: 20px; letter-spacing: 0.14em; }
.reviews__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.review {
  flex: 0 0 100%;
  min-width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 34px 8px 34px 8px;
  padding: 54px 44px;
  background: linear-gradient(145deg, var(--paper-card), var(--cream));
  text-align: center;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}
.review .stars { display: block; margin-bottom: 20px; }
.review blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 760px;
  text-wrap: pretty;
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review footer {
  border-top: 1px dashed var(--ink-line);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-65);
  display: inline-block;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.carousel__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.45);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.carousel__arrow:hover { background: var(--cream); transform: translateY(-2px); }

.carousel__dots { display: flex; gap: 10px; }
.carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.45);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.carousel__dots button[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.25);
}

/* About page ------------------------------------------------------------- */

.bio-hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--pad);
  gap: 72px;
  align-items: center;
}
.bio-hero--text {
  display: block;
  min-height: auto;
  max-width: 980px;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}
.bio-hero--text .bio-hero__copy h1,
.bio-hero--text .bio-hero__copy > p:not(.eyebrow) { margin-inline: auto; }
.bio-hero--text .hero__cta { justify-content: center; }
.bio-hero__copy h1 {
  max-width: 760px;
  margin: 0 0 28px;
  font: 800 clamp(48px, 6.7vw, 88px)/0.96 var(--serif);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.bio-hero__copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 0 34px;
  color: var(--ink-80);
  font-size: 18px;
}
.credential-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--maxw);
  margin: 0 auto 92px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.credential-band article {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.credential-band strong {
  display: block;
  font: 700 18px/1.25 var(--serif);
}
.approach-page {
  padding: 92px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: 68px;
  border-top: 1px dashed var(--ink-line);
}
.approach-page__intro > p:not(.eyebrow) {
  color: var(--ink-80);
  font-size: 16px;
}
.approach-page__intro > img {
  width: min(100%, 340px);
  margin: 28px 0 20px;
  border: 1px solid var(--ink);
}
.approach-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.approach-page__grid article {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.approach-page__grid h3 {
  margin: 0 0 12px;
  font: 700 24px/1.15 var(--serif);
}
.approach-page__grid p {
  margin: 0;
  color: var(--ink-80);
  font-size: 15px;
  line-height: 1.6;
}
.bio-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px var(--pad) 104px;
  text-align: center;
}
.bio-cta > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--ink-65);
}
.about-page .site-footer { padding-top: 40px; }
.about-page .footer__base { margin-top: 0; }
.about-page .footer__base a { color: rgba(255, 255, 255, 0.72); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 92px var(--pad) 40px;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: start;
}
.footer__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--cream);
}
.footer__title em { font-style: italic; color: var(--paper); }
.site-footer .btn--primary { border-color: var(--cream); }

.footer__details { display: grid; gap: 22px; margin: 0; }
.footer__details dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 4px;
}
.footer__details dd { margin: 0; font-size: 17px; line-height: 1.6; }
.footer__details a { color: var(--paper); }
.footer__details a:hover { color: var(--cream); }
.footer__socials { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer__base {
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .site-header { grid-template-columns: 1fr auto; gap: 14px; padding: 11px 22px; }
  .site-nav { display: none; }
  .header-actions { grid-column: 2; }
  .hero { min-height: 600px; padding-block: 34px 42px; }
  .hero__inner { display: block; }
  .hero__mark-wrap { display: none; }
  .hero__title { font-size: clamp(52px, 9vw, 76px); }
  .about, .safety, .trust-strip, .services, .reviews, .work { padding-top: 68px; padding-bottom: 68px; }
  .safety { grid-template-columns: 1fr; gap: 48px; }
  .trust-strip__head { grid-template-columns: 1fr; gap: 10px; }
  .trust-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding-top: 60px; }
  .credential-band { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: var(--pad); }
  .credential-band article:last-child { grid-column: 1 / -1; }
  .approach-page { grid-template-columns: 1fr; gap: 44px; padding-top: 68px; padding-bottom: 68px; }
  .service-card { flex-basis: min(82vw, 390px); }
  .review { padding: 32px 24px; }
  .slide { width: 240px; }
  .slide--wide { width: 320px; margin-top: 50px; }
  .slide--tall { width: 220px; }
  .slide--comparison-square { width: 290px; }
  .slide--comparison-tall { width: 190px; }
  .policy { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding-inline: 16px;
  }
  .site-nav { display: none; }
  .brand { grid-column: 1; justify-self: start; }
  .brand img { height: 34px; }
  .header-actions { grid-column: 2; }
  .header-book { padding: 10px 14px; font-size: 11px; }
  .hero {
    min-height: 590px;
    padding: 42px 20px 38px;
  }
  .hero__inner { display: block; }
  .hero__copy { position: relative; z-index: 3; }
  .hero__title { max-width: 360px; font-size: clamp(50px, 17vw, 72px); }
  .hero__title em { margin-left: 20px; }
  html[dir="rtl"] .hero__title em { margin-right: 20px; }
  .hero__lede { max-width: 92%; font-size: 16px; }
  .about__visual { padding: 0 22px 22px 0; }
  .about__stamp { width: 104px; font-size: 13px; }
  .safety__principles { grid-template-columns: 1fr; }
  .safety__principles article { min-height: 0; }
  .trust-strip { display: none; }
  .bio-hero { padding: 46px 20px 54px; }
  .bio-hero__copy h1 { font-size: clamp(44px, 14vw, 64px); }
  .credential-band { grid-template-columns: 1fr; margin-bottom: 58px; }
  .credential-band article,
  .credential-band article:last-child { grid-column: auto; min-height: 0; }
  .approach-page__grid { grid-template-columns: 1fr; }
  .approach-page__grid article { min-height: 0; }
  .service-tabs { margin-top: 32px; justify-content: flex-start; }
  .service-card { flex-basis: calc(100vw - 52px); min-height: 470px; padding: 28px; }
  .service-deck__controls { align-items: flex-end; }
  .service-deck__controls p { max-width: 150px; }
  .deck-arrow { width: 46px; height: 46px; }
  .score { align-items: center; }
  .score__meta { text-align: left; }
}

/* Respect reduced motion: stop all autoplay animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark__float, .mark__gloss, .mark__shadow, .mark__layer--gloss { animation: none !important; }
  .marquee__track { animation: none !important; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .carousel__track { transition: none !important; }
  .btn, .carousel__arrow, .carousel__dots button, .service-card, .deck-arrow, .slide, .geo-fill__cell, .geo-fill__content { transition: none !important; }
}
