/* Salt Contractors — homepage (Apple-style: big type, full-width tiles, lots of air) */
body { background: #fff; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; background: #000; color: #fff; overflow: hidden; display: grid; justify-items: center; align-content: start; text-align: center; padding-top: clamp(104px, 21vh, 210px); }
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media > * { opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero-media > .on { opacity: 1; animation: drift 9s linear forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.12) 48%, rgba(0,0,0,.5)); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 1000px; }
.hero h1 { font-size: clamp(46px, 8.4vw, 96px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.hero p { font-size: clamp(19px, 2.3vw, 28px); line-height: 1.25; margin: 16px auto 30px; max-width: 28ch; color: rgba(255,255,255,.92); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-bar { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.hero-bar i { display: block; width: 30px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.32); overflow: hidden; position: relative; }
.hero-bar i.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-left: 8px; }
.hero-pause:focus-visible, .rail-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* full-width tiles */
.tile { position: relative; isolation: isolate; overflow: hidden; margin-top: 12px; min-height: min(88vh, 780px); display: grid; justify-items: center; align-content: start; text-align: center; padding: clamp(48px, 8vh, 90px) var(--gutter) 0; color: #fff; background: #000; }
.tile-media, .tile-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0) 58%); }
.tile h2 { font-size: clamp(38px, 5.8vw, 68px); font-weight: 700; letter-spacing: -0.028em; }
.tile p { font-size: clamp(19px, 2.1vw, 27px); margin: 10px auto 0; max-width: 26ch; color: rgba(255,255,255,.92); line-height: 1.25; }
.tile-links { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.tile .link { color: #fff; }

/* sections */
.sec { padding: clamp(84px, 12vw, 150px) 0; text-align: center; }
.sec.gray { background: var(--paper-2); }
.sec.dark { background: #000; color: #f5f5f7; }
.sec h2 { font-size: clamp(38px, 5.8vw, 68px); font-weight: 700; letter-spacing: -0.028em; max-width: 18ch; margin: 0 auto; }
.sec .sub { font-size: clamp(19px, 2.2vw, 28px); color: var(--ink-3); max-width: 32ch; margin: 16px auto 0; line-height: 1.25; }
.sec.dark .sub { color: #a1a1a6; }

/* swipe row of steps */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px max(var(--gutter), calc((100vw - var(--max)) / 2)) 8px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); scrollbar-width: none; text-align: left; }
.rail::-webkit-scrollbar { display: none; }
.step-card { position: relative; isolation: isolate; flex: 0 0 clamp(280px, 30vw, 390px); height: clamp(440px, 50vw, 560px); border-radius: 28px; overflow: hidden; scroll-snap-align: start; background: #1d1d1f; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.step-card .card-media, .step-card .card-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.step-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 38%, rgba(0,0,0,0) 52%, rgba(0,0,0,.72)); }
.step-card small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.step-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.step-card p { margin: 0; font-size: 17px; line-height: 1.35; color: rgba(255,255,255,.92); }
.rail-nav { display: flex; gap: 12px; justify-content: flex-end; max-width: var(--max); margin: 22px auto 0; padding: 0 var(--gutter); }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: var(--ink-2); font-size: 18px; cursor: pointer; transition: background .2s; }
.rail-nav button:hover { background: rgba(0,0,0,.16); }

/* gallery */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; text-align: left; }
.gal button { all: unset; position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--paper-2); }
.gal button > img, .gal button > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gal button:hover > img, .gal button:hover > video { transform: scale(1.04); }
.gal button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); }
.gal span { position: absolute; z-index: 2; left: 22px; bottom: 18px; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.gal button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .gal { grid-template-columns: 1fr; } .gal button { border-radius: 22px; } }

/* big numbers */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 24px; margin-top: 64px; }
.fact b { display: block; font-size: clamp(60px, 9vw, 112px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff 30%, var(--accent-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { display: block; margin: 14px auto 0; max-width: 20ch; font-size: 19px; color: #a1a1a6; line-height: 1.3; }

/* about */
.sec .big { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; max-width: 24ch; margin: 0 auto; }
.sec .fine { font-size: 14px; color: var(--ink-3); margin: 28px auto 0; max-width: 60ch; }

/* contact */
.contact-lines { display: flex; gap: 12px 36px; justify-content: center; flex-wrap: wrap; margin-top: 36px; font-size: 19px; }
.contact-lines a { color: var(--accent); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span { color: var(--ink-3); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta-row .btn { font-size: 19px; padding: 14px 28px; }

/* inner pages */
.tile h1 { font-size: clamp(38px, 5.8vw, 68px); font-weight: 700; letter-spacing: -0.028em; }
.page-hero { margin-top: 0; min-height: min(76vh, 680px); padding-top: calc(48px + clamp(48px, 10vh, 100px)); }
.page-title { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.nav-links a[aria-current] { color: #fff; }
.foot-links { display: flex; gap: 6px 4px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; padding: 0 4px; }
.foot-links a:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; text-align: left; }
.card { background: var(--paper-2); border-radius: 28px; padding: 32px; min-height: 200px; }
.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 10px 0 0; color: var(--ink-3); font-size: 17px; line-height: 1.4; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; padding: 26px; } }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 64px; text-align: left; }
.point h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.point p { margin: 10px 0 0; font-size: 18px; line-height: 1.4; color: #a1a1a6; }
.checks { list-style: none; padding: 0; margin: 48px auto 0; max-width: 640px; text-align: left; display: grid; gap: 12px; }
.checks li { font-size: 20px; line-height: 1.3; padding: 18px 22px; background: #fff; border-radius: 18px; display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; }
.note { font-size: 15px; color: var(--ink-3); margin: 28px auto 0; text-align: center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px) 0; text-align: left; }
.row:nth-child(even) .row-media { order: 2; }
.row-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.row-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.row h2 { text-align: left; margin: 8px 0 0; max-width: none; font-size: clamp(32px, 4.4vw, 52px); }
.row p { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-3); margin: 16px 0 0; line-height: 1.4; max-width: 30ch; }
@media (max-width: 800px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row-media { order: 0; } .row-media { aspect-ratio: 4 / 3; } }
.faq { max-width: 760px; margin: 56px auto 0; text-align: left; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 21px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--ink-3); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 12px 0 0; font-size: 18px; color: var(--ink-3); line-height: 1.45; }
