/* Arco Design — site styles
   Palette and type come from the Arco brochure: terracotta cover, cream pages,
   charcoal service panels; The Rivers display, Mixon capitals. */

@font-face { font-family: "The Rivers"; src: url("../fonts/the-rivers.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mixon"; src: url("../fonts/mixon-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --terra: #7f3e29;
  --terra-deep: #6a3221;
  --terra-ink: #8c3b26;
  --terra-soft: #ecd2c2;
  --cream: #f2e8de;
  --paper: #fbf6f0;
  --charcoal: #4c4f4e;
  --charcoal-soft: #d8d0c6;
  --ink: #2b2522;
  --ink-muted: #5c524b;
  --line: #d9cbbd;
  --error: #9b2f1f;

  --font-display: "The Rivers", "Didot", Georgia, serif;
  --font-caps: "Mixon", "Albert Sans", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px;
  --space-5: 64px; --space-6: clamp(80px, 10vw, 144px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 77px; scrollbar-color: var(--terra) var(--cream); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--terra); accent-color: var(--terra); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--terra); color: var(--cream); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--terra); border: 3px solid var(--cream); border-radius: 12px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
.cover :focus-visible, .contact :focus-visible, .services__panel :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { display: none; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--cream); font-weight: 600; text-decoration: none; border-radius: 4px; }
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }

/* Logo: the traced AR monogram, painted in currentColor via a mask */
.logo { display: block; background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo--mark { --logo: url("../img/arco-mark.svg"); width: 58px; aspect-ratio: 234 / 149.2; }
.logo--lockup { --logo: url("../img/arco-lockup.svg"); width: clamp(148px, 14vw, 200px); aspect-ratio: 234 / 178.4; }

/* Type */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
.display--xl { font-size: clamp(2.6rem, 5.2vw, 4.75rem); }
.display--l { font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.1; }
p { max-width: 68ch; text-wrap: pretty; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--cream { background: var(--cream); color: var(--terra-ink); }
.btn--cream:hover { background: var(--paper); }
.btn--line-cream { border-color: rgba(242, 232, 222, 0.7); color: var(--cream); }
.btn--line-cream:hover { border-color: var(--cream); background: rgba(242, 232, 222, 0.1); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--terra-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(127, 62, 41, 0.35); }
.text-link .icon:last-child { transition: transform 260ms var(--ease-out); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link:hover .icon:last-child { transform: translateX(4px); }
.text-link--cream { color: var(--cream); text-decoration-color: rgba(242, 232, 222, 0.4); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream); transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.site-header.is-solid { background: rgba(242, 232, 222, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid { background: rgba(242, 232, 222, 0.86); backdrop-filter: blur(12px) saturate(1.2); } }
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gutter); }
.brand { display: inline-flex; padding: 6px 0; color: inherit; }
.site-header.is-solid .brand { color: var(--terra); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="true"] { background-size: 100% 1px; }
.btn--header { background: var(--cream); color: var(--terra-ink); }
.site-header.is-solid .btn--header { background: var(--terra); color: var(--cream); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Cover */
.cover { position: relative; background: var(--terra); color: var(--cream); }
.cover__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: var(--space-5); min-height: 100svh; max-width: var(--wrap); margin-inline: auto; padding: 120px var(--gutter) 64px; overflow: hidden; }
.cover__line { position: absolute; border: 2px solid rgba(242, 232, 222, 0.85); pointer-events: none; }
.cover__line--left { left: -2px; top: 34svh; width: clamp(48px, 7vw, 116px); height: 140svh; border-left: 0; border-bottom: 0; border-radius: 0 999px 0 0; }
.cover__line--right { right: -2px; top: 76px; width: min(20vw, 300px); height: 76svh; border-right: 0; border-top: 0; border-radius: 0 0 0 999px; }
.cover__region { position: absolute; top: 96px; right: var(--gutter); font-family: var(--font-caps); font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; }
.cover__copy { position: relative; z-index: 2; display: grid; gap: var(--space-3); padding-left: clamp(0px, 6vw, 96px); }
.cover__copy .logo { margin-bottom: var(--space-2); }
.cover__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; max-width: 11ch; }
.cover__lede { max-width: 44ch; color: var(--terra-soft); font-size: 1.125rem; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-1); }
.cover__window { position: relative; z-index: 1; aspect-ratio: 3 / 4.2; max-height: 74svh; width: 100%; justify-self: center; border-radius: 999px 999px 0 0; overflow: hidden; outline: 2px solid rgba(242, 232, 222, 0.85); outline-offset: 10px; background: var(--cream); }
.cover__film { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
/* static arch (reduced motion / no JS): enlarge from the left edge so the monogram stays outside the arch */
.cover:not(.cover--scrolly) .cover__film { transform: scale(1.35); transform-origin: 0% 50%; }
.cover__room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover__room--wide { display: none; }
.cover__window .film-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(43, 37, 34, 0.25); border-radius: 50%; background: rgba(242, 232, 222, 0.85); color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease-out); }
.cover__window .film-toggle:hover { background: var(--paper); }
.film-toggle .icon { width: 18px; height: 18px; }
.film-toggle .icon--play, .film-toggle[aria-pressed="true"] .icon--pause { display: none; }
.film-toggle[aria-pressed="true"] .icon--play { display: block; }

.cover__slot { display: none; }

/* Signature: scrolling opens the arch window across the whole cover.
   site.js adds .cover--scrolly (skipped for reduced motion) and drives
   --clip, --copy-o, --copy-y, --copy-blur, --lines-o, --room-o, --toggle-* each frame. */
.cover--scrolly { height: 200svh; }
.cover--scrolly .cover__stage { position: sticky; top: 0; height: 100svh; min-height: 0; max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.cover--scrolly .cover__slot { display: block; justify-self: center; align-self: center; width: 100%; max-height: 74svh; aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; outline: 2px solid rgba(242, 232, 222, 0.85); outline-offset: 10px; opacity: var(--lines-o, 1); }
.cover--scrolly .cover__window { position: absolute; inset: 0; z-index: 1; width: auto; justify-self: stretch; align-self: stretch; max-height: none; aspect-ratio: auto; border-radius: 0; outline: 0; background: transparent; clip-path: var(--clip, inset(100%)); will-change: clip-path; }
.cover--scrolly .cover__film { position: absolute; top: 0; left: var(--film-left, 0px); width: var(--film-w, 100%); max-width: none; height: 100%; object-position: 50% 50%; transform: translateX(var(--film-x, 0px)); will-change: transform; }
.cover--scrolly .cover__room--wide { display: block; opacity: var(--room-o, 0); object-position: 52% 30%; }
.cover--scrolly .cover__copy { opacity: var(--copy-o, 1); transform: translateY(var(--copy-y, 0px)); filter: blur(var(--copy-blur, 0px)); }
.cover--scrolly .cover__line, .cover--scrolly .cover__region { opacity: var(--lines-o, 1); }
.cover--scrolly .cover__window .film-toggle { right: var(--toggle-r, 16px); bottom: var(--toggle-b, 16px); opacity: var(--toggle-o, 1); visibility: var(--toggle-v, visible); }
@media (max-width: 959px) {
  .cover--scrolly .cover__stage { display: flex; flex-direction: column; gap: var(--space-3); padding-top: 92px; padding-bottom: 28px; }
  .cover--scrolly .cover__copy { gap: var(--space-2); }
  .cover--scrolly .cover__copy .logo { display: none; }
  .cover--scrolly .cover__region, .cover--scrolly .cover__line { display: none; }
  .cover--scrolly .cover__lede { font-size: 1rem; }
  .cover--scrolly .cover__actions .btn { min-height: 48px; }
  .cover--scrolly .cover__slot { flex: 1 1 0; width: auto; height: auto; min-height: 0; max-height: none; max-width: 80vw; outline-offset: 8px; }
}
@media (max-width: 959px) and (max-height: 700px) {
  .cover--scrolly .cover__lede { display: none; }
}


/* About */
.about { padding-top: var(--space-6); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-5); align-items: end; }
.about__text { display: grid; gap: var(--space-2); color: var(--ink-muted); }
.brush-image { width: 100%; }
.about .brush-image { margin-top: var(--space-5); }

/* Services: the charcoal quarter-round panel from the brochure */
.services { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-block: var(--space-6) 0; }
.services__panel { display: grid; gap: var(--space-5); padding: clamp(56px, 7vw, 112px) clamp(56px, 12vw, 200px) clamp(56px, 7vw, 112px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); background: var(--charcoal); color: var(--cream); border-radius: 0 min(36vw, 520px) 0 0; }
.services__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.service:first-child { grid-row: span 2; }
.service__name { margin-bottom: 12px; font-family: var(--font-body); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.005em; }
.service__list { display: grid; gap: 4px; color: var(--charcoal-soft); font-size: 0.9875rem; }
.service__list li::before { content: "– "; }
.services__object { display: grid; gap: var(--space-2); padding: var(--space-4) var(--gutter); justify-items: center; }
.services__object img { width: min(100%, 560px); }
.services__object figcaption { max-width: 32ch; color: var(--ink-muted); font-size: 0.9375rem; text-align: center; }

/* Sectors */
.sector { padding-top: var(--space-6); }
.sector__body { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.sector__body p { color: var(--ink-muted); font-size: 1.125rem; }
.sector--residential .sector__body { margin-top: var(--space-3); }
@media (min-width: 960px) { .sector--residential .sector__body { margin-top: calc(var(--space-4) * -1); position: relative; } }
.sector--commercial .brush-image { margin-top: var(--space-4); }
@media (min-width: 960px) {
  .sector--commercial .sector__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: start; align-items: end; column-gap: var(--space-5); text-align: left; }
  .sector--commercial .sector__body h2 { grid-row: span 2; align-self: start; }
}

/* Process */
.process { padding-top: var(--space-6); }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: end; }
.process__head p { color: var(--ink-muted); font-size: 1.125rem; }
.process__body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: center; margin-top: var(--space-5); }
.process__plate { width: 100%; aspect-ratio: 620 / 772; object-fit: cover; border-radius: 999px 999px 0 0; }
.process__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.step { display: grid; align-content: start; gap: 10px; padding-top: var(--space-3); border-top: 1px solid var(--ink); counter-increment: step; }
.step__name { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.step p { color: var(--ink-muted); font-size: 0.98rem; }
.process__site { margin-top: var(--space-5); }

/* Work */
.work { padding-block: var(--space-6); }
.work__head { display: grid; gap: var(--space-2); justify-items: center; text-align: center; }
.work__head p { color: var(--ink-muted); font-size: 1.125rem; }
.work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); max-width: 1180px; margin: var(--space-5) auto var(--space-4); }
.work__grid li { overflow: hidden; background: var(--line); box-shadow: 0 1px 0 rgba(43, 37, 34, 0.08), 0 12px 28px -18px rgba(43, 37, 34, 0.5); }
.work__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 700ms var(--ease-out); }
.work__grid li:hover img { transform: scale(1.05); }
.work .text-link { display: flex; width: fit-content; margin-inline: auto; }

/* Contact: the back cover */
.contact { position: relative; overflow: hidden; padding-block: var(--space-6); background: var(--terra); color: var(--cream); }
.contact__line { position: absolute; left: -2px; bottom: -2px; width: clamp(40px, 5vw, 84px); height: 78%; border: 2px solid rgba(242, 232, 222, 0.6); border-left: 0; border-bottom: 0; border-radius: 0 999px 0 0; pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.contact__details { display: grid; gap: var(--space-3); padding-left: clamp(0px, 4vw, 64px); }
.contact__lede { color: var(--terra-soft); font-size: 1.125rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.office { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid rgba(242, 232, 222, 0.35); }
.office div:first-child { grid-column: 1 / -1; }
.office dt { margin-bottom: 6px; font-family: var(--font-caps); font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra-soft); }
.office dd { font-size: 1.0625rem; }
.office a { text-decoration-color: rgba(242, 232, 222, 0.4); }
.contact__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* Contact illustration */
.contact__art { align-self: end; justify-self: center; width: min(calc(100% - 24px), 440px); }
.contact__art img { width: 100%; border-radius: 999px 999px 0 0; outline: 2px solid rgba(242, 232, 222, 0.6); outline-offset: 10px; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--cream); padding-block: var(--space-5); }
.site-footer__inner { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.logo--footer { width: 140px; }
.site-footer__tag { font-family: var(--font-display); font-size: 1.5rem; }
.site-footer__small { color: var(--charcoal-soft); font-size: 0.875rem; }

/* Tablet and phone */
@media (max-width: 959px) {
  .site-nav { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; background: var(--terra); color: var(--cream); visibility: hidden; opacity: 0; transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms; }
  .site-nav ul { flex-direction: column; align-items: center; gap: var(--space-2); }
  .site-nav a { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: 0; text-transform: none; }
  .site-header.nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease-out); }
  .site-header.nav-open { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header.nav-open .brand { color: var(--cream); }
  .nav-toggle { display: inline-flex; }
  .btn--header { margin-left: auto; }
  .btn--header span { display: none; }
  .btn--header { width: 44px; padding: 0; }

  .cover__stage { grid-template-columns: 1fr; gap: var(--space-4); padding-top: 112px; padding-bottom: var(--space-5); }
  .cover__copy { padding-left: 0; }
  .cover__region { top: 84px; }
  .cover__line--left, .contact__line { display: none; }
  .cover__line--right { width: 18vw; height: 22svh; }
  .cover__region { right: calc(18vw + 12px); }
  .cover__window { width: min(78vw, 420px); max-height: none; }

  .about__grid, .process__head, .contact__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .services { grid-template-columns: 1fr; }
  .services__panel { padding: var(--space-5) var(--gutter) var(--space-5); border-radius: 0 42vw 0 0; padding-right: 18vw; }
  .process__body { grid-template-columns: 1fr; }
  .process__plate { width: min(100%, 420px); justify-self: center; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__details { padding-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cover__actions .btn { width: 100%; }
  .services__groups { grid-template-columns: 1fr; gap: var(--space-4); }
  .service:first-child { grid-row: auto; }
  .services__panel { padding-right: var(--gutter); border-radius: 0 34vw 0 0; padding-top: 72px; }
  .process__steps { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .cover__window { display: none; }
  .cover, .contact, .services__panel { background: none; color: #000; }
}

/* Thank-you and 404 pages */
.note-page { min-height: 100svh; display: grid; place-items: center; background: var(--terra); color: var(--cream); }
.note { display: grid; justify-items: start; gap: var(--space-3); max-width: 760px; padding: var(--space-5) var(--gutter); }
.note p { color: var(--terra-soft); font-size: 1.125rem; }
.note__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note--with-art { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: var(--space-5); max-width: 1100px; }
.note__art { width: 100%; border-radius: 999px 999px 0 0; }
.note__copy { display: grid; gap: var(--space-3); justify-items: start; }
@media (max-width: 760px) { .note--with-art { grid-template-columns: 1fr; } .note__art { width: 60%; } }
