/* EUG Interiors site preview. Image-led and airy: Malibu palette, Bodoni Moda headings, Jost text.
   One light brand theme by design; the photos carry the color. */
:root {
  --salt: #F5F5F1;
  --linen: #ECEBE5;
  --harbor: #2E4152;
  --harbor-deep: #24333F;
  --text: #24303A;
  --muted: #5B6670;
  --sea: #A9BDBF;
  --dune: #DCCDB6;
  --driftwood: #8C7A64;
  --hair: #D9D8D0;
  --alert: #9A3B2E;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--salt); color: var(--text); font-family: var(--body); font-size: 15.5px; line-height: 1.65; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--harbor); margin: 0; text-wrap: balance;
  font-optical-sizing: none; font-variation-settings: "opsz" 18; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--harbor); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: calc(var(--gutter-l) + 8px); padding-right: calc(var(--gutter-r) + 8px); }
.eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--harbor); }
.btn { display: inline-block; background: var(--harbor); color: var(--salt); text-decoration: none; font: inherit; font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; padding: 15px 26px; border-radius: 1px; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--harbor-deep); }
.link { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--harbor); text-decoration: none;
  border-bottom: 1px solid var(--driftwood); padding-bottom: 3px; }

/* draft note */
.draft { background: var(--harbor); color: var(--salt); font-size: 11.5px; letter-spacing: 0.04em; text-align: center;
  padding: 8px var(--gutter-r) 8px var(--gutter-l); }
.note { border: 1px dashed var(--driftwood); border-radius: 4px; padding: 12px 14px; background: color-mix(in srgb, var(--dune) 18%, var(--salt));
  font-size: 12.5px; color: var(--muted); }
.note b { color: var(--harbor); font-weight: 500; }

/* header: the logo on the left, the pages on the right (as before) */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--salt) 94%, transparent); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.site-head .logo svg { height: 44px; width: auto; color: var(--harbor); }
.site-head nav { display: flex; align-items: center; gap: 30px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--driftwood); }
.site-head nav a[aria-current="page"] { border-bottom: 1px solid var(--driftwood); padding-bottom: 2px; }
.menu-btn { display: none; font: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--harbor);
  background: none; border: 1px solid var(--harbor); border-radius: 1px; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.site-foot :focus-visible { outline-color: var(--salt); }

/* page intro */
.intro { padding-block: clamp(32px, 5.6vw, 77px) clamp(26px, 4vw, 51px); }
.intro .wrap { display: grid; gap: 18px; justify-items: start; }
.intro .wrap > * { max-width: 900px; }
.intro h1 { font-size: clamp(31.5px, 4.46vw, 60.5px); line-height: 1.04; letter-spacing: -0.01em; }
.intro p { font-size: 16.5px; color: var(--muted); max-width: 58ch; }
.intro-wrap { max-width: 1240px; margin: 0 auto; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(22px, 4vw, 64px); align-items: center; padding-block: 32px 58px; }
.hero h1 { font-size: clamp(33.5px, 4.93vw, 66px); line-height: 1.02; letter-spacing: -0.01em; margin: 18px 0 21px; }
.hero p { font-size: 16.5px; max-width: 46ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 27px; }
.arch { max-width: 100%; width: 100%; margin: 0; }
.arch-frame { position: relative; }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 5.4; object-fit: cover; border-radius: 999px 999px 0 0; }
.arch-frame::after { content: ""; position: absolute; inset: -12px -12px 0; border: 1px solid var(--driftwood); border-radius: 999px 999px 0 0; border-bottom: 0; pointer-events: none; opacity: .65; }
.hero .arch { max-width: 440px; justify-self: end; }
.arch-cap { margin-top: 14px; font-size: 12px; color: var(--muted); }
.hero-side { display: grid; gap: 22px; justify-items: end; min-width: 0; }

/* full-bleed pause */
.pause img { width: 100%; height: clamp(280px, 52vw, 680px); object-fit: cover; }

/* sections */
.sec { padding-block: clamp(51px, 7.2vw, 96px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(29px, 4vw, 45px); }
.sec-head h2 { font-size: clamp(25px, 3.35vw, 41px); line-height: 1.08; }
.sec-head p { color: var(--muted); max-width: 58ch; }
.sec-foot { margin-top: 27px; }
.band { background: var(--linen); }

/* service cards */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.services div { border-top: 1px solid var(--hair); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.services h3 { font-size: 19.5px; line-height: 1.2; }
.services p { font-size: 14.5px; color: var(--muted); }

/* featured work */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; }
.work figure { margin: 0; position: relative; overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } .work a:hover img { transform: none; } }
.work figcaption { position: absolute; left: 12px; bottom: 12px; background: color-mix(in srgb, var(--salt) 92%, transparent); color: var(--harbor);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; }
.w-a { grid-column: 1 / 8; grid-row: span 2; }
.w-b { grid-column: 8 / 13; grid-row: span 2; }
.w-c { grid-column: 1 / 5; grid-row: span 2; }
.w-d { grid-column: 5 / 9; grid-row: span 2; }
.w-e { grid-column: 9 / 13; grid-row: span 2; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-style: italic; font-size: 37px; line-height: 1; color: var(--driftwood);
  font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.steps h3 { font-size: 18.5px; }
.steps p { font-size: 14.5px; color: var(--muted); }
.steps.long { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; }
.steps.long li { grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; row-gap: 4px; border-top: 1px solid var(--hair); padding-block: 18px; }
.steps-sec { padding-top: clamp(8px, 1.6vw, 19px); }
.steps.long li::before { grid-row: span 3; }
.steps.long h3 { font-size: 22.5px; }
.steps.long p { font-size: 15.5px; max-width: 60ch; }
.steps.long .detail { font-size: 13.5px; color: var(--driftwood); }

/* split: photo beside copy */
.split .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(26px, 4.8vw, 77px); align-items: center; }
.split.flip .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split.flip .wrap > figure { order: 2; }
.split figure { margin: 0; }
.split figure img { width: 100%; height: auto; }
.split .arch { max-width: 420px; }
.split .arch img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
/* the headshot uses the full, wider frame and sits a little smaller */
.split .arch.portrait { max-width: 330px; }
.split .arch.portrait img { aspect-ratio: 4 / 5; object-position: 50% 0; }
.copy { display: grid; gap: 18px; justify-items: start; }
.copy h2 { font-size: clamp(24px, 2.98vw, 36.5px); line-height: 1.1; }
.copy p { color: var(--muted); max-width: 54ch; }
.copy ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

/* service rows */
.svc-list { display: grid; gap: clamp(45px, 6.4vw, 83px); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 58px); align-items: center; }
.svc:nth-child(even) > figure { order: 2; }
.svc figure { margin: 0; }
.svc img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.svc .num { font-family: var(--display); font-style: italic; font-size: 37px; line-height: 1; color: var(--driftwood); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.svc h2 { font-size: clamp(24px, 2.88vw, 34.5px); line-height: 1.1; }
.included { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px; list-style: none; padding: 0; margin: 0; }
.included li { border-top: 1px solid var(--hair); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.included b { font-family: var(--display); font-weight: 500; font-size: 17.5px; color: var(--harbor); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.included span { font-size: 14px; color: var(--muted); }

/* portfolio index: one card per project */
.p-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(35px, 4vw, 54px) clamp(19px, 2.4vw, 32px); }
.p-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-content: start; text-decoration: none; }
.p-card figure { grid-column: 1 / -1; margin: 0 0 8px; overflow: hidden; }
.p-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.p-card:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .p-card img { transition: none; } .p-card:hover img { transform: none; } }
.p-card .num { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--driftwood); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.p-card h2 { font-size: clamp(20.5px, 2.14vw, 27px); line-height: 1.12; }
.p-card p, .p-card .link { grid-column: 2; }
.p-card p { color: var(--muted); max-width: 46ch; }
.p-card .link { justify-self: start; margin-top: 6px; }

/* project page: the words stay beside the photos: the cover, then a two-column collage */
.proj { display: grid; grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr); gap: clamp(22px, 3.2vw, 51px); align-items: start; padding-block: clamp(22px, 3.2vw, 38px) clamp(45px, 5.6vw, 77px); }
.proj-text { position: sticky; top: 104px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--harbor); text-decoration: none; border-bottom: 1px solid var(--driftwood); }
.proj-text h1 { font-size: clamp(25px, 2.51vw, 36.5px); line-height: 1.06; letter-spacing: -0.01em; }
.proj-text > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.credits { display: grid; gap: 10px; border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 4px; }
.credits span { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.credits b { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--harbor); }
.proj-photos { display: grid; gap: 14px; min-width: 0; }
.proj-photos figure { margin: 0; }
.proj-photos img { width: 100%; height: auto; }
.masonry { columns: 2; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; }
.proj-photos figcaption { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted); padding-top: 8px; font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.proj-end { display: grid; justify-items: center; gap: 22px; padding-block: 0 clamp(45px, 5.6vw, 77px); }
.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; width: 100%; border-top: 1px solid var(--hair); padding-top: 19px; }
.pn a { display: grid; gap: 6px; justify-items: start; align-content: start; text-decoration: none; }
.pn a.next { text-align: right; justify-items: end; }
.pn b { font-family: var(--display); font-weight: 500; font-size: clamp(16.5px, 1.77vw, 21.5px); line-height: 1.15; color: var(--harbor); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.pn a:hover b { color: var(--driftwood); }

/* placeholder for video or stock photo to come */
.ph { position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 7; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--linen) 0 14px, color-mix(in srgb, var(--linen) 70%, var(--salt)) 14px 28px);
  border: 1px dashed var(--driftwood); color: var(--muted); }
.ph div { display: grid; gap: 8px; justify-items: center; max-width: 46ch; }
.ph b { font-family: var(--display); font-weight: 500; font-size: 18.5px; color: var(--harbor); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.ph span { font-size: 13px; }

/* trade strip */
.trade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.trade div { border-top: 1px solid var(--hair); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.trade h3 { font-size: 17.5px; }
.trade p { font-size: 14px; color: var(--muted); }

/* inquiry band */
.inquire { background: var(--harbor); color: var(--salt); }
.inquire .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 26px 51px; align-items: end; padding-block: clamp(51px, 6.4vw, 83px); }
.inquire h2 { color: var(--salt); font-size: clamp(27px, 3.63vw, 45.5px); line-height: 1.05; }
.inquire p { color: color-mix(in srgb, var(--salt) 78%, var(--harbor)); max-width: 46ch; margin-top: 18px; }
.inquire .side { display: grid; gap: 16px; justify-items: start; }
.inquire .btn { background: var(--salt); color: var(--harbor); }
.inquire .btn:hover { background: var(--dune); }
.inquire .mail { font-size: 14px; color: var(--salt); }

/* inquiry form page */
.form-page { position: relative; min-height: 100vh; }
.form-page > .bg { position: absolute; inset: 0; z-index: -1; }
.form-page > .bg img { width: 100%; height: 100%; object-fit: cover; }
.form-page > .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(36, 51, 63, 0.62), rgba(36, 51, 63, 0.42)); }
.form-page .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 58px); align-items: start; padding-block: clamp(32px, 5.6vw, 77px); }
.form-intro { color: var(--salt); display: grid; gap: 18px; align-content: start; padding-top: 12px; }
.form-intro .eyebrow { color: var(--salt); }
.form-intro h1 { color: var(--salt); font-size: clamp(31.5px, 4.09vw, 54px); line-height: 1.04; }
.form-intro p { color: color-mix(in srgb, var(--salt) 85%, var(--harbor)); max-width: 42ch; font-size: 16px; }
.form-intro .mail { color: var(--salt); }
.form-card { background: var(--salt); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.form-card .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--harbor); }
.field label span { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--hair); border-radius: 1px;
  padding: 12px 12px; min-height: 48px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--harbor); outline-offset: 0; border-color: var(--harbor); }
.form-card .btn { justify-self: start; }
.sent { display: none; border-top: 1px solid var(--hair); padding-top: 16px; color: var(--muted); font-size: 14px; }
.sent b { color: var(--harbor); font-weight: 500; }
.form-card.done .sent { display: block; }
/* rows where one label runs to two lines: line the boxes up along the bottom */
.form-card .row2.low { align-items: end; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: -2px; }
.field .msg { display: none; font-size: 12.5px; color: var(--alert); }
.field.err .msg { display: block; }
.field.err input { border-color: var(--alert); }

/* footer: a few words on the left, the full logo in the middle, the pages on the right */
.site-foot { background: var(--harbor-deep); color: color-mix(in srgb, var(--salt) 76%, var(--harbor-deep)); font-size: 13px; }
.site-foot .wrap { display: grid; gap: clamp(26px, 3.2vw, 38px); padding-block: clamp(42px, 4.8vw, 58px) 22px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px 32px; align-items: start; }
.foot-about { display: grid; gap: 12px; max-width: 34ch; font-size: 14px; line-height: 1.6; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--salt); }
.foot-about a { border-bottom: 1px solid color-mix(in srgb, var(--salt) 30%, var(--harbor-deep)); }
.foot-mark { justify-self: center; display: grid; justify-items: center; gap: 16px; }
.foot-mark > a { color: var(--salt); }
.foot-mark svg { display: block; width: 92px; height: auto; }
.foot-nav { justify-self: end; display: grid; gap: 8px; justify-items: end; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.foot-legal { border-top: 1px solid color-mix(in srgb, var(--salt) 16%, var(--harbor-deep)); padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 19px; font-size: 11.5px; }
.to-top { background: none; border: 0; cursor: pointer; padding: 8px 0; font: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: inherit; }
.to-top:hover { color: var(--salt); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(26px, 4vw, 51px); max-width: 1060px; }
.pair p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }


/* responsive */
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-head nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--salt); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 8px calc(var(--gutter-r) + 8px) 18px calc(var(--gutter-l) + 8px); }
  .site-head.open nav { display: flex; }
  .site-head nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .site-head nav a[aria-current="page"] { padding-bottom: 14px; }
  .services, .steps:not(.long), .included, .trade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .proj { grid-template-columns: minmax(0, 1fr); }
  .proj-text { position: static; }
}
@media (max-width: 760px) {
  .hero .wrap, .split .wrap, .split.flip .wrap, .inquire .wrap, .svc, .form-page .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.flip .wrap > figure { order: 0; }
  .svc:nth-child(even) > figure { order: 0; }
  .hero .arch { max-width: 340px; justify-self: center; }
  .hero-side { justify-items: center; }
  .split .arch { max-width: 300px; justify-self: center; }
  .split .arch.portrait { max-width: 260px; }
  .arch-frame::after { inset: -8px -8px 0; }
  .hero .wrap { padding-block: 19px 45px; }
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; }
  .work figure { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .work .w-a { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .steps.long li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
  .steps.long li::before { font-size: 30px; }
  .ph { aspect-ratio: 4 / 3; }
  .form-card .row2, .pair { grid-template-columns: minmax(0, 1fr); }
  .p-cards { grid-template-columns: minmax(0, 1fr); }
  .site-head .logo svg { height: 36px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .foot-about { justify-items: center; }
  .foot-nav { justify-self: center; justify-items: center; grid-template-columns: repeat(3, auto); gap: 10px 22px; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn a.next { text-align: left; justify-items: start; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .services, .steps:not(.long), .included, .trade { grid-template-columns: minmax(0, 1fr); }
}
.nw { white-space: nowrap; }

/* a drawn macron for ā in body text, since Jost misplaces its own (used for Pāhoa) */
.mac { position: relative; }
.mac::after { content: ""; position: absolute; left: 0.07em; right: 0.07em; top: 0.37em; height: 0.065em; background: currentColor; }
