/* Harbourstone Property Management: "Editorial" template (example site by Keep Web Up).
   Stone and ink, one bottle-green accent, hairline rules, numbered sections. */
:root {
  --stone: #f2eee6;
  --stone-2: #e9e3d7;
  --paper: #faf8f3;
  --ink: #16191d;
  --ink-2: #3c4148;
  --muted: #575b60;
  --rule: #d6cfc1;
  --green: #1f3a32;
  --green-2: #2b4d43;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--stone); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Example banner */
.banner { background: var(--ink); color: #cfd2d6; font-size: 12.5px; line-height: 1.45; }
.banner-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 9px; padding-bottom: 9px; }
.banner b { color: #fff; font-weight: 600; }
.banner a { color: #fff; text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242, 238, 230, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark-name { font: 400 1.6rem/1 var(--serif); letter-spacing: -.01em; }
.mark-sub { margin-top: 5px; font: 500 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; border: 1px solid var(--ink); color: var(--ink) !important; transition: background-color .25s, color .25s !important; }
.nav-cta:hover { background: var(--ink); color: var(--stone) !important; }
@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 14px; font-size: .86rem; }
  .mark-name { font-size: 1.35rem; }
}

/* Shared */
.num { display: inline-block; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; color: var(--green); padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.num--light { color: #b9cbbf; }
.muted { color: var(--muted); }
h2 { font: 300 clamp(2.2rem, 4.6vw, 3.9rem)/1.04 var(--serif); letter-spacing: -.02em; }
h2 em { color: var(--green); }
h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--green); color: #f4f1ea; text-decoration: none; font: 500 .95rem/1 var(--sans); letter-spacing: .01em; border: 0; cursor: pointer; transition: background-color .3s var(--ease), gap .3s var(--ease); }
.btn:hover { background: var(--ink); gap: 18px; }
.btn--light { background: var(--stone); color: var(--ink); }
.btn--light:hover { background: #fff; }
.link { font-size: .98rem; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Hero: image first, then tagline left / headline right */
.hero { padding-top: 0; }
/* Hero opening: "scroll choreography", after the 21st.dev component by @harshjadhavconnect
   (21st.dev/@harshjadhavconnect/components/scroll-choreography). Four photos in a 2x2 facade;
   scroll sends three out of frame and grows the first to full bleed. Plain CSS fed --p / --e by
   /examples/scroll-hero.js. Defaults are the finished state: one full-width photo. */
.sh { --p: 1; --e: 1; position: relative; }
.sh-on .sh { --p: 0; --e: 0; height: calc(100svh - 73px + 110svh); }
.sh-stage { position: relative; overflow: hidden; height: clamp(320px, 44vw, 62vh); background: var(--stone);
  --g: var(--gutter); --t: 7%; --qw: calc(50% - var(--g) - 7px); --qh: calc(43% - 7px);
  --fade: clamp(0, calc((var(--p) - .4) / .35), 1); --plq: clamp(0, calc((var(--p) - .04) / .3), 1); --late: clamp(0, calc((var(--p) - .72) / .25), 1); }
.sh-on .sh-stage { position: sticky; top: 73px; height: calc(100svh - 73px); }
.q { position: absolute; margin: 0; overflow: hidden; background: var(--stone-2); width: var(--qw); height: var(--qh); }
.q img { width: 100%; height: 100%; object-fit: cover; }
.q1 { z-index: 2; left: calc(var(--g) * (1 - var(--e))); top: calc(var(--t) * (1 - var(--e)));
  width: calc(var(--qw) + (100% - var(--qw)) * var(--e)); height: calc(var(--qh) + (100% - var(--qh)) * var(--e)); }
.q1 img { object-position: 50% 40%; transform: scale(calc(1.18 - .18 * var(--e))); }
.q2 { left: calc(50% + 7px); top: var(--t); transform: translate(calc(var(--e) * 70%), calc(var(--e) * -40%)); }
.q3 { left: var(--g); top: calc(50% + 7px); transform: translate(calc(var(--e) * -40%), calc(var(--e) * 80%)); }
.q4 { left: calc(50% + 7px); top: calc(50% + 7px); transform: translate(calc(var(--e) * 70%), calc(var(--e) * 80%)); }
.q2, .q3, .q4 { opacity: calc(1 - var(--fade)); }
.q-plaque { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(calc(var(--plq) * -30px)); margin: 0; opacity: calc(1 - var(--plq));
  padding: clamp(22px, 3vw, 38px) clamp(26px, 4vw, 52px); background: var(--stone); text-align: center; white-space: nowrap;
  font: 300 clamp(1.6rem, 3.6vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.q-plaque em { color: var(--green); }
.q-plaque .num { display: block; width: max-content; margin: 0 auto 14px; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; }
.q-cap { position: absolute; z-index: 3; left: 0; bottom: 0; margin: 0; display: flex; gap: 14px; align-items: center; padding: 12px 18px 12px var(--gutter); background: var(--stone);
  font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); opacity: var(--late); }
.q-cap span { font: italic 400 .95rem/1 var(--serif); color: var(--green); }
.q-hint { display: none; }
.sh-on .q-hint { display: block; position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 8px 14px; background: var(--stone);
  font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); opacity: calc(1 - var(--p) * 6); }
@media (max-width: 760px) {
  .sh-stage { --t: 5%; --qh: calc(45% - 7px); --g: 14px; }
  .q-plaque { white-space: normal; width: min(86vw, 340px); }
  .q-cap { display: none; }
}
.hero-text { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; padding: clamp(40px, 6vw, 84px) 0 clamp(72px, 9vw, 128px); border-bottom: 1px solid var(--rule); }
.hero-tag { font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.hero-tag .num { display: block; width: max-content; margin-bottom: 18px; }
.hero-main { text-align: right; }
.hero h1 { font: 300 clamp(2.6rem, 6.6vw, 6rem)/.98 var(--serif); letter-spacing: -.03em; }
.hero h1 em { color: var(--green); }
.hero-sub { max-width: 520px; margin: 30px 0 0 auto; font-size: 1.08rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 18px 30px; margin-top: 34px; }
@media (max-width: 760px) {
  .hero-text { grid-template-columns: 1fr; gap: 26px; }
  .hero-main { text-align: left; }
  .hero-sub { margin-left: 0; }
  .hero-ctas { justify-content: flex-start; }
}

/* Sections */
.sec { padding: clamp(80px, 10vw, 136px) 0; }
.sec--tight { padding-top: clamp(64px, 8vw, 104px); }
.sec--panel { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 1fr 2.2fr; gap: 14px 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .num { align-self: start; justify-self: start; }
.sec-head h2 { grid-column: 2; }
.sec-head p { grid-column: 2; max-width: 520px; color: var(--muted); font-size: 1.04rem; }
.sec-head--tight { grid-template-columns: 1fr; margin-bottom: 36px; }
.sec-head--tight h2 { grid-column: 1; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } .sec-head h2, .sec-head p { grid-column: 1; } }

/* Services: an editorial index */
.index { border-top: 1px solid var(--ink); }
.index-row { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: 12px 40px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--rule); transition: padding-left .5s var(--ease); }
.index-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--green); transition: width .6s var(--ease); }
.index-row:hover { padding-left: 14px; }
.index-row:hover::before { width: 100%; }
.index-n { font: italic 300 1.5rem/1 var(--serif); color: var(--green); }
.index-row h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.index-row p { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 760px) { .index-row { grid-template-columns: 2.6rem 1fr; padding: 26px 0; } .index-row p { grid-column: 2; } .index-row:hover { padding-left: 0; } }

/* Approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.approach-media { overflow: hidden; aspect-ratio: 4 / 5; }
.approach-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.approach-media:hover img { transform: scale(1.04); }
.principles { border-top: 1px solid var(--rule); }
.principle { padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px 30px; }
.principle h3 { font-style: italic; font-weight: 300; font-size: 1.55rem; color: var(--green); }
.principle p { color: var(--ink-2); }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } .approach-media { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .principle { grid-template-columns: 1fr; } }

/* Process: a timeline with hairline and markers */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
.step { position: relative; padding-top: 44px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border: 1px solid var(--green); background: var(--stone); transform: rotate(45deg); transition: background-color .4s; }
.step:hover::before { background: var(--green); }
.step-n { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.step h3 { margin-bottom: 12px; font-size: 1.7rem; }
.step p { color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 34px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding-top: 0; }
  .step::before { left: -34px; top: 4px; }
}

/* Gallery: plates with figure captions */
.plates { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.plate--wide { grid-row: span 2; }
.plate { display: flex; flex-direction: column; }
.plate img { width: 100%; flex: 1; min-height: 0; object-fit: cover; aspect-ratio: 4 / 3; transition: filter .6s; filter: saturate(.9); }
.plate--wide img { aspect-ratio: auto; height: 100%; }
.plate:hover img { filter: saturate(1.05); }
.plate figcaption { display: flex; gap: 12px; padding-top: 12px; font-size: .84rem; color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: 12px; }
.plate figcaption span { white-space: nowrap; font-style: italic; font-family: var(--serif); color: var(--green); }
@media (max-width: 760px) { .plates { grid-template-columns: 1fr 1fr; } .plate--wide { grid-column: 1 / -1; grid-row: auto; } .plate--wide img { aspect-ratio: 4 / 3; height: auto; } }

/* Proposal */
.proposal { background: var(--green); color: #e9eee9; padding: clamp(80px, 10vw, 136px) 0; }
.proposal-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.proposal h2 { color: #f4f1ea; margin-top: 22px; }
.proposal h2 em { color: #b9cbbf; }
.proposal-copy > p { margin-top: 22px; max-width: 44ch; color: #c6d3cb; font-size: 1.04rem; }
.contact { margin-top: 40px; border-top: 1px solid rgba(233, 238, 233, .2); }
.contact div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(233, 238, 233, .2); }
.contact dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #9fb4a8; }
.contact dd { font: 400 1.2rem/1.2 var(--serif); }
.contact a { text-decoration: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.field { display: flex; flex-direction: column; padding-top: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #9fb4a8; }
.field input, .field textarea { font: 400 1.25rem/1.4 var(--serif); color: #f4f1ea; background: transparent; border: 0; border-bottom: 1px solid rgba(233, 238, 233, .3); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s; resize: vertical; }
.field input::placeholder { color: rgba(233, 238, 233, .35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #f4f1ea; }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.sent { color: #f4f1ea; font-size: .95rem; }
@media (max-width: 860px) { .proposal-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: #a8acb1; padding: clamp(56px, 7vw, 88px) 0 40px; font-size: .9rem; }
.foot-mark { font: 300 clamp(3rem, 12vw, 10rem)/.9 var(--serif); letter-spacing: -.035em; color: #e9e5dc; padding-bottom: 28px; border-bottom: 1px solid #2e3237; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; }
.foot-grid p:last-child { text-align: right; }
.foot a { color: #e9e5dc; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } .foot-grid p:last-child { text-align: left; } }

/* Scroll reveals: only when JS runs and motion is welcome */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .index-row.reveal:nth-child(2), .motion .principle.reveal:nth-child(2), .motion .step.reveal:nth-child(2) { transition-delay: .08s; }
.motion .index-row.reveal:nth-child(3), .motion .principle.reveal:nth-child(3), .motion .step.reveal:nth-child(3) { transition-delay: .16s; }
.motion .index-row.reveal:nth-child(4) { transition-delay: .24s; }
.motion .hero-text .reveal:nth-child(1) { transition-delay: .5s; }
.hero-main .reveal:nth-child(1) { transition-delay: .6s; }
.hero-main .reveal:nth-child(2) { transition-delay: .72s; }
.hero-main .reveal:nth-child(3) { transition-delay: .84s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
