/* HarbourStone Construction — demonstration website
   Palette: concrete, charcoal, slate, oxide copper */
:root {
  --paper: #ecebe7;
  --paper-2: #f5f4f1;
  --concrete: #d9d6cf;
  --ink: #1b1d1f;
  --ink-2: #2b2e31;
  --slate: #5d6670;
  --oxide: #b5532a;
  --oxide-2: #c9622f;
  --line: rgba(27, 29, 31, .14);
  --line-2: rgba(27, 29, 31, .28);
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1320px;
  --gutter: clamp(18px, 4.5vw, 52px);
  --section: clamp(84px, 11vw, 150px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: var(--paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 120px, 120px 100%;
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--paper); opacity: .82; pointer-events: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--oxide); color: #fff; }
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.mono { font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }

h1, h2 { font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 1.4rem + 5vw, 6rem); line-height: .96; }
h1 span { color: var(--slate); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); line-height: 1.02; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.muted { color: var(--slate); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 26px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper-2); font: 600 1rem/1.2 var(--sans); cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, transform .35s var(--ease);
}
.btn:hover { background: var(--oxide); border-color: var(--oxide); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .94rem; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(236, 235, 231, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.header.is-scrolled { box-shadow: 0 12px 30px -26px rgba(0, 0, 0, .5); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 26px; height: 26px; fill: var(--paper); }
.logo-mark .door { fill: var(--oxide-2); }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.logo-text small { display: block; margin-top: 5px; font-family: var(--mono); font-size: .58rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; font-size: .98rem; padding: 6px 0; transition: color .3s; }
.nav ul a i { font-style: normal; font-family: var(--mono); font-size: .64rem; color: var(--oxide); }
.nav ul a:hover { color: var(--oxide); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: 12px; }
.hero-copy .mono { margin-bottom: 28px; color: var(--oxide); }
.hero h1 { margin-bottom: 28px; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 30em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-in { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: calc(.3s + var(--d) * .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-figure { position: relative; margin: 0 0 0 28px; padding: 0 0 28px 0; }
.hero-figure picture { display: block; overflow: hidden; clip-path: inset(0 0 0 0); animation: wipe 1.6s var(--ease) .2s both; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.hero-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.dim { position: absolute; font-family: var(--mono); font-size: .7rem; color: var(--slate); }
.dim b { font-weight: 500; background: var(--paper); padding: 0 8px; position: relative; }
.dim-x { left: 0; right: 0; bottom: 4px; height: 12px; border-left: 1px solid var(--slate); border-right: 1px solid var(--slate); display: flex; align-items: center; justify-content: center; }
.dim-x::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--slate); }
.dim-y { left: -28px; top: 0; bottom: 28px; width: 12px; border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate); display: flex; align-items: center; justify-content: center; }
.dim-y::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--slate); }
.dim-y b { transform: rotate(-90deg); white-space: nowrap; padding: 0 6px; }
.hero-figure figcaption { position: absolute; right: 14px; top: 14px; padding: 6px 10px; background: rgba(245, 244, 241, .92); color: var(--ink); font-size: .66rem; }
.hero-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.hero-strip li { padding: 22px 24px 26px 0; color: var(--slate); font-size: .96rem; }
.hero-strip li + li { padding-left: 24px; border-left: 1px solid var(--line-2); }
.hero-strip .mono { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); color: var(--ink); margin-bottom: 14px; }
.hero-strip b { display: block; font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

/* Services */
.services-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.services-head { position: sticky; top: 110px; }
.services-head .mono { margin-bottom: 20px; }
.services-head h2 { margin-bottom: 36px; }
.services-figure { margin: 0; }
.services-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line-2); transition: padding .5s var(--ease), background-color .4s; }
.svc-list li:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(181, 83, 42, .07), transparent 70%); }
.svc-list .mono { color: var(--oxide); padding-top: 6px; }
.svc-list h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); margin-bottom: 8px; }
.svc-list p { color: var(--slate); max-width: 34em; }

/* Projects */
.projects { background: var(--ink); color: #c9cdd1; }
.projects .head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.projects .mono { color: #9aa3ab; }
.projects h2 { color: #fff; margin-top: 18px; }
.projects .head .muted { color: #9aa3ab; justify-self: end; max-width: 26em; }
.p-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.p-card { grid-column: span 4; position: relative; }
.p-card:nth-child(1) { grid-column: span 7; }
.p-card:nth-child(2) { grid-column: span 5; }
.p-card figure { overflow: hidden; aspect-ratio: 4 / 3; }
.p-card:nth-child(1) figure, .p-card:nth-child(2) figure { aspect-ratio: auto; height: clamp(260px, 32vw, 460px); }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.p-card:hover img { transform: scale(1.05); filter: none; }
.p-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.p-meta h3 { color: #fff; font-size: 1.08rem; order: -1; }
.p-meta .mono { color: var(--oxide-2); flex: none; }

/* Plans band */
.plans-band { position: relative; isolation: isolate; padding: var(--section) 0; overflow: hidden; }
.plans-media { position: absolute; inset: 0; z-index: -2; }
.plans-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5); }
.plans-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 29, 31, .2), rgba(27, 29, 31, .55)); }
.plans-inner { display: flex; justify-content: flex-end; }
.plans-card { max-width: 620px; padding: clamp(28px, 4vw, 52px); background: var(--paper-2); border-top: 4px solid var(--oxide); }
.plans-card .mono { color: var(--oxide); margin-bottom: 16px; }
.plans-card h2 { margin-bottom: 30px; }
.commit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.commit li { color: var(--slate); font-size: .95rem; padding-top: 14px; border-top: 1px solid var(--line-2); }
.commit b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* Process */
.process .head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-bottom: clamp(44px, 5vw, 70px); }
.process .head h2 { margin-top: 18px; }
.process .head .muted { justify-self: end; max-width: 24em; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.timeline li { position: relative; padding: 34px 22px 10px 0; }
.timeline li + li { padding-left: 22px; border-left: 1px solid var(--line-2); }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--oxide); }
.timeline li + li::before { left: -6px; }
.timeline .mono { display: block; color: var(--oxide); margin-bottom: 18px; }
.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--slate); font-size: .95rem; }

/* Studio */
.studio { padding-top: 0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.studio-figure { margin: 0; position: relative; }
.studio-figure::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--oxide); z-index: -1; }
.studio-figure img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.studio-copy .mono { margin-bottom: 18px; }
.studio-copy h2 { margin-bottom: 22px; }
.studio-copy > p { color: var(--ink-2); margin-bottom: 30px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.specs div { padding: 16px 14px 0 0; }
.specs div + div { padding-left: 14px; border-left: 1px solid var(--line-2); }
.specs .mono { display: block; font-size: .64rem; margin-bottom: 6px; }
.specs b { font-weight: 600; font-size: 1rem; line-height: 1.3; }

/* Contact */
.contact { background: var(--paper-2); border-top: 1px solid var(--line-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-info .mono:first-child { margin-bottom: 18px; color: var(--oxide); }
.contact h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--slate); margin-bottom: 32px; font-size: 1.06rem; }
.details { border-top: 1px solid var(--ink); }
.details div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.details dt { padding-top: 3px; }
.details dd { overflow-wrap: anywhere; font-weight: 500; }
.ph { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; color: var(--slate); vertical-align: 2px; }
.form { padding: clamp(24px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line-2); position: relative; }
.form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 4px; background: var(--oxide); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form label { display: block; margin-bottom: 18px; }
.form label .mono { font-size: .68rem; color: var(--ink-2); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--paper-2); color: var(--ink); font: inherit; transition: border-color .3s, box-shadow .3s; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%231b1d1f' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 38px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--oxide); }
.form .btn { margin-top: 6px; }
.form .demo-notice { color: var(--ink-2); border-radius: 0; border-color: var(--slate); font-family: var(--sans); }
.form .demo-notice a { text-decoration: underline; }

/* Footer */
.footer { background: var(--ink); color: #9aa3ab; padding: 64px 0 28px; font-size: .94rem; }
.footer .logo-mark { background: var(--paper); }
.footer .logo-mark svg { fill: var(--ink); }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: #9aa3ab; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer nav ul { display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-disclaimer { font-size: .88rem; line-height: 1.6; padding: 18px 20px; border: 1px dashed rgba(255, 255, 255, .22); }
.footer-disclaimer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .86rem; }

/* Responsive */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .timeline li:nth-child(4) { padding-left: 0; border-left: 0; }
  .timeline li:nth-child(4)::before { left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; cursor: pointer; position: relative; z-index: 2; }
  .bars { position: relative; width: 20px; height: 8px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
  .bars i:first-child { top: 0; } .bars i:last-child { top: 6.4px; }
  .nav-open .bars i:first-child { top: 3.2px; transform: rotate(45deg); }
  .nav-open .bars i:last-child { top: 3.2px; transform: rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--ink); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
  .hero-grid, .services-grid, .contact-grid, .studio-grid, .projects .head, .process .head { grid-template-columns: minmax(0, 1fr); }
  .projects .head .muted, .process .head .muted { justify-self: start; }
  .hero-figure { margin-left: 28px; }
  .services-head { position: static; }
  .services-figure { display: none; }
  .p-card, .p-card:nth-child(1), .p-card:nth-child(2) { grid-column: span 6; }
  .p-card:nth-child(1) { grid-column: 1 / -1; }
  .p-card figure, .p-card:nth-child(1) figure, .p-card:nth-child(2) figure { aspect-ratio: 4 / 3; height: auto; }
  .plans-inner { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; background-size: 100% 80px, 80px 100%; }
  .header-inner { height: 66px; }
  .logo-text { font-size: 1.1rem; }
  .logo-mark { width: 36px; height: 36px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-strip { grid-template-columns: minmax(0, 1fr); }
  .hero-strip li, .hero-strip li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li, .timeline li + li { padding: 26px 0 8px; border-left: 0; }
  .timeline li::before, .timeline li + li::before, .timeline li:nth-child(4)::before { left: 0; }
  .timeline li + li { border-top: 1px solid var(--line-2); }
  .p-card, .p-card:nth-child(1), .p-card:nth-child(2) { grid-column: 1 / -1; }
  .commit, .form .row { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div, .specs div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .studio-figure::after { inset: 12px -10px -12px 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
