/* Tub Pro new style. Palette scored in palette_search.txt, type confirmed in fontsearch.txt.
   ground  #c4c4fa  periwinkle glaze, 8.8 from Kaydzen #c9b3e6 on every folder, 16.7 from Pro Roofing #86b2f5 on the 56 list
   ink     #26111c  claret black, 8.0 from Abrantes #220b0a on both pools; 10.7 to 1 on the ground
   accent  #1240b0  glaze cobalt (hue 222), 15.4 from Aberdeen #30439a on every folder, 22.7 from Pro Roofing #1e64bf on the 56 list;
                    5.29 to 1 on the ground, 8.8 to 1 under white. Moved from #1227b2 (hue 232) after the anti slop pass, to sit off indigo
   white   #ffffff  porcelain panels, photographs and inputs only
   Spacing on a 4px grid. Weights 400 and 500 only. */
@font-face { font-family: 'Corben'; src: url(fonts/Corben_Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Yantramanav'; src: url(fonts/Yantramanav_Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Yantramanav'; src: url(fonts/Yantramanav_Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root { --ground: #c4c4fa; --ink: #26111c; --cobalt: #1240b0; --white: #ffffff;
  --head: 'Corben', Georgia, serif; --body: 'Yantramanav', system-ui, sans-serif; --pad: 48px; --max: 1184px; }
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--cobalt); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 16px; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 8px; background: var(--cobalt); color: var(--white);
  font: 500 18px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; border-radius: 8px; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--cobalt); font-weight: 500; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 2px solid var(--ink); }
.bar-in { display: flex; align-items: center; gap: 40px; height: 72px; }
.name { font: 400 24px/1 var(--head); text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.bar nav a { text-decoration: none; padding: 4px 0; }
.bar nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--cobalt); }

/* home hero: words at left on the wrap, the photograph bleeds off the right edge at full first screen height */
.hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: calc(100vh - 74px); max-height: 900px;
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); }
.hero-words { align-self: center; padding: 40px 56px 40px 0; }
.hero h1 { font-size: 72px; line-height: 1; letter-spacing: -0.02em; }
.hero h1 .l { display: block; }
.hero .lead { margin-top: 32px; font-size: 20px; max-width: 34em; }
.hero .acts { margin-top: 32px; }
.proof { list-style: none; margin: 40px 0 0; padding: 16px 0 0; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 500; font-size: 16px; }
.proof li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); margin-right: 12px; vertical-align: 2px; }
.hero-pic { margin: 0; display: flex; flex-direction: column; padding: 24px 0 16px; }
.frame { position: relative; flex: 1; overflow: hidden; border-radius: 36px 0 0 36px; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 60%; }
.hero-pic figcaption { font-size: 14px; padding: 8px 0 0 4px; }
/* the sheen: a soft band of white light crossing the glossy tub once on arrival, then again every nine seconds */
.sheen { position: absolute; top: -10%; bottom: -10%; left: 0; width: 18%; background: rgba(255, 255, 255, .42); filter: blur(22px);
  transform: translateX(-200%) skewX(-16deg); pointer-events: none; mix-blend-mode: screen; }

/* warranty line, a porcelain strip, once on the whole site */
.warranty { background: var(--white); border-bottom: 2px solid var(--ink); }
.warranty p { font: 400 28px/1.3 var(--head); padding: 40px 0; max-width: 28em; }

/* what Tub Pro renews: heading at left, ruled rows at right */
.renews { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; padding-top: 128px; padding-bottom: 128px; }
.renews h2 { font-size: 44px; line-height: 1.1; }
.renews > p { grid-column: 2; }
.rows { list-style: none; margin: 0; padding: 0; grid-column: 2; grid-row: 1; }
.rows li { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 24px 0; border-top: 2px solid var(--ink); }
.rows li:last-child { border-bottom: 2px solid var(--ink); }
.rows h3 { font-size: 24px; line-height: 1.2; }

/* the two hour band: ink field, the numeral as the anchor, the sequence at right */
.clock { background: var(--ink); color: var(--ground); }
.clock-in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.numeral { font: 400 360px/0.8 var(--head); letter-spacing: -0.04em; display: flex; align-items: flex-end; gap: 16px; }
.numeral span { font: 500 20px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 24px; }
.clock h2 { font-size: 44px; line-height: 1.1; color: var(--white); }
.seq { list-style: none; margin: 40px 0 0; padding: 0 0 0 32px; border-left: 2px solid var(--ground); display: grid; gap: 32px; }
.seq li { position: relative; }
.seq li::before { content: ''; position: absolute; left: -41px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); }
.tag { display: block; font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }

/* found pictures: one tall, two stacked, one wide */
.gallery { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; padding-top: 128px; }
.pic { margin: 0; }
.pic img { width: 100%; object-fit: cover; border-radius: 24px; background: var(--white); }
.pic figcaption { font-size: 14px; margin-top: 8px; }
.g-tall { grid-row: span 2; } .g-tall img { height: 652px; object-position: 50% 70%; }
.g-a img, .g-b img { height: 280px; }
.g-c { grid-column: 1 / -1; } .g-c img { height: 420px; object-position: 50% 55%; }
.g-note { grid-column: 1 / -1; font-size: 16px; font-weight: 500; }

/* close: porcelain panel */
.close { padding-top: 128px; padding-bottom: 128px; }
.panel { background: var(--white); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 6fr 6fr; gap: 16px 48px; align-items: end; border: 2px solid var(--ink); }
.panel h2 { font-size: 44px; line-height: 1.1; grid-row: span 2; }
.panel .acts { gap: 16px 28px; }

/* inner pages */
.sub-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.sub-hero h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.02em; }
.sub-hero .lead { margin-top: 24px; font-size: 20px; max-width: 34em; }
.sub-hero .acts { margin-top: 32px; }
.sub-pic img { height: 520px; }
.svc-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.svc h2 { font-size: 28px; line-height: 1.15; }
.svc-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 8px; }
.svc-pic { padding-top: 96px; padding-bottom: 128px; }
.wide img { height: 480px; object-position: 50% 60%; }

.numbers { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.numbers li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.numbers span { font-weight: 500; }
.numbers a { font-weight: 500; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.form-row { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; padding-bottom: 128px; }
.ask { background: var(--white); border: 2px solid var(--ink); border-radius: 28px; padding: 48px; display: grid; gap: 8px; }
.ask h2, .areas h2 { font-size: 36px; line-height: 1.1; margin-bottom: 16px; }
.ask label { font-weight: 500; font-size: 16px; margin-top: 12px; }
.ask input, .ask select, .ask textarea { font: 400 18px/1.4 var(--body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 16px; width: 100%; }
.ask .btn { margin-top: 24px; justify-self: start; }
.note { font-size: 16px; margin-top: 8px; }
.areas { padding-top: 48px; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: 80px 0 64px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-name { font: 400 44px/1 var(--head); }
.foot-line { margin-top: 12px; }
.foot-acts, .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.foot-acts { margin-top: 20px; }
.foot a { text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--cobalt); }
.foot-own { margin-top: 40px; max-width: 46em; }
.credits { margin-top: 32px; font-size: 14px; }
.credits ul { margin: 8px 0 0; padding-left: 20px; }
.concept { margin-top: 24px; font-size: 14px; }

/* motion: hero lines and the photograph rise and settle, the photograph drifts, the sheen crosses; sections rise once */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l, .hero .lead, .hero .acts, .hero .proof { animation: up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .l:nth-child(2) { animation-delay: .08s; } .hero h1 .l:nth-child(3) { animation-delay: .16s; }
  .hero .lead { animation-delay: .28s; } .hero .acts { animation-delay: .36s; } .hero .proof { animation-delay: .44s; }
  .frame { animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-img { animation: drift 14s ease-out both; }
  .sheen { animation: sweep 9s 1.3s cubic-bezier(.4, 0, .2, 1) infinite; }
  .js .rise { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .rise.in { opacity: 1; transform: none; }
}
@keyframes up { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { opacity: 0; transform: translateY(64px); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes sweep { 0% { transform: translateX(-200%) skewX(-16deg); } 26%, 100% { transform: translateX(760%) skewX(-16deg); } }

/* tablet */
@media (max-width: 1100px) {
  .hero h1 { font-size: 60px; }
  .numeral { font-size: 260px; }
}
/* phone: the hero is recomposed, the camera moves in on the tub and the words take their own zone below */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .bar-in { height: auto; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 8px; }
  .name { font-size: 20px; }
  .bar nav { order: 3; width: 100%; gap: 24px; font-size: 15px; }
  html { scroll-padding-top: 112px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; max-height: none; padding: 0; }
  .hero-pic { padding: 0; }
  .frame { flex: none; height: 40vh; min-height: 300px; border-radius: 0 0 32px 32px; }
  .hero-img { object-position: 26% 72%; }
  .hero-pic figcaption { padding: 8px 20px 0; }
  .hero-words { padding: 28px 20px 48px; }
  .hero h1 { font-size: 40px; line-height: 1.04; }
  .hero .lead { font-size: 18px; margin-top: 20px; }
  .hero .acts { margin-top: 24px; gap: 12px 24px; }
  .proof { margin-top: 28px; gap: 8px 20px; font-size: 15px; }
  .warranty p { font-size: 22px; padding: 32px 0; }
  .renews, .clock-in, .gallery, .sub-hero, .form-row { grid-template-columns: 1fr; gap: 32px; }
  .renews { padding-top: 88px; padding-bottom: 88px; }
  .renews h2, .clock h2, .panel h2 { font-size: 32px; }
  .rows, .renews > p { grid-column: 1; grid-row: auto; }
  .rows li { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .rows h3 { font-size: 22px; }
  .clock-in { padding-top: 80px; padding-bottom: 80px; }
  .numeral { font-size: 200px; }
  .gallery { padding-top: 88px; gap: 24px; }
  .g-tall { grid-row: auto; } .g-tall img { height: 420px; }
  .g-a img, .g-b img { height: 240px; } .g-c img { height: 260px; }
  .close { padding-top: 88px; padding-bottom: 88px; }
  .panel { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 24px; }
  .sub-hero { padding-top: 40px; padding-bottom: 56px; }
  .sub-hero h1 { font-size: 40px; }
  .sub-pic img { height: 300px; }
  .svc-list ul { grid-template-columns: 1fr; gap: 16px; }
  .svc { padding: 28px 24px; }
  .svc h2 { font-size: 24px; }
  .svc-pic { padding-top: 56px; padding-bottom: 88px; }
  .wide img { height: 260px; }
  .ask { padding: 28px 20px; border-radius: 24px; }
  .ask h2, .areas h2 { font-size: 28px; }
  .areas { padding-top: 0; }
  .foot { padding: 56px 0 48px; }
  .foot-name { font-size: 36px; }
}
