:root {
  color-scheme: light;
  --ink: #172f43;
  --paper: #f8f5ed;
  --muted: #586c76;
  --line: #d8dcd5;
  --brass: #a77c36;
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 280px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 1.65vw, 14px);
  line-height: 1.5;
}

/* The same real page appears in the source panes and the finished preview. */
html[data-build-flow] { overflow: clip; }
html[data-build-flow] .site-header {
  opacity: var(--build-flow, 1);
  transform: translateY(calc(-22px * (1 - var(--build-flow, 1))));
}
html[data-build-flow] .hero-copy {
  opacity: var(--build-flow, 1);
  transform: translateX(calc(-36px * (1 - var(--build-flow, 1))));
}
html[data-build-flow] .content-placeholder {
  opacity: var(--build-flow, 1);
  transform: translate(calc(38px * (1 - var(--build-flow, 1))), calc(14px * (1 - var(--build-flow, 1))));
}
html[data-build-flow] footer {
  opacity: var(--build-flow, 1);
  transform: translateY(calc(22px * (1 - var(--build-flow, 1))));
}

button { padding: 0; color: inherit; font: inherit; background: transparent; border: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid #377b7d; outline-offset: 3px; }
.example-tooltip { position: fixed; z-index: 20; display: block; width: max-content; max-width: min(230px, calc(100vw - 12px)); padding: 8px 11px; color: #fffaf0; background: #172f43; border: 1px solid #b99553; border-radius: 6px; box-shadow: 0 4px 14px #172f4326; font: 11px/1.45 Arial, sans-serif; letter-spacing: 0; text-align: left; }
.example-tooltip[hidden] { display: none; }
html[data-outer-phone] .example-tooltip { max-width: min(180px, calc(100vw - 12px)); padding: 5px 7px; font-size: 9px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4em;
  width: 90%;
  max-width: 1120px;
  margin-inline: auto;
  padding-block: 1.2em;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: .83em;
  font-weight: 750;
  letter-spacing: .08em;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  width: 2.6em;
  height: 2.6em;
  flex: 0 0 2.6em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}
.brand-accent { stroke: var(--brass); }
.nav-menu-label, .nav-menu-icon { display: none; }
nav {
  display: flex;
  align-items: center;
  gap: 1.5em;
  font-size: .67em;
  font-weight: 700;
}
nav > button:last-child {
  display: inline-flex;
  min-height: 3em;
  align-items: center;
  gap: .7em;
  padding: .5em .8em;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.action-arrow {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main { display: grid; min-width: 0; min-height: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3%;
  width: 90%;
  max-width: 1120px;
  min-height: 0;
  margin-inline: auto;
  padding-block: 3%;
}
.hero-copy { min-width: 0; }
.services-concise { display: none; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .85em;
  margin: 0;
  color: #8b692f;
  font-size: .57em;
  font-weight: 750;
  letter-spacing: .16em;
}
.eyebrow::before { width: 2.2em; height: 1px; background: #b89350; content: ""; }
h1 {
  margin: .43em 0 .38em;
  font-size: clamp(27px, 4.8vw, 49px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
}
h1 em {
  color: var(--brass);
  font: italic 1.14em/1.03 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.hero-copy > p:not(.eyebrow, .canvas-note) {
  max-width: 25em;
  margin: 0 0 1.35em;
  color: var(--muted);
  font-size: .86em;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7em .8em;
}
.hero-actions > button {
  display: inline-flex;
  min-height: 3.5em;
  align-items: center;
  justify-content: center;
  gap: .9em;
  padding: .75em 1em;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: .69em;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .25s ease, border-color .25s ease;
}
.hero-actions .action-arrow { transition: transform .35s ease; }
.hero-actions > button:is(:hover, :focus-visible) .action-arrow { transform: translateX(2px); }
.button {
  color: var(--ink);
  background: #e9bf6a;
  border-color: #c9a14f;
}
.button:hover { background: #f1ce85; }
.work-link { background: transparent; }
.work-link:hover { background: #e9eee8; }
.canvas-note {
  margin: 1.3em 0 0;
  padding-left: .85em;
  color: var(--muted);
  border-left: 2px solid #d8ba7b;
  font-size: .62em;
}
.content-placeholder {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  max-height: 460px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.canvas-scene {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}
.canvas-wash-teal { fill: url("#canvas-teal"); opacity: .72; }
.canvas-wash-gold { fill: url("#canvas-gold"); opacity: .62; }
.canvas-shadow { fill: #173f4412; }
.canvas-back { fill: #e5e8df; stroke: #c6cfc2; stroke-width: 1; }
.canvas-project, .canvas-back { transform-origin: 222px 194px; transition: transform .65s cubic-bezier(.22, .61, .36, 1); }
.canvas-sheet { fill: url("#canvas-paper"); stroke: #bdc9c1; stroke-width: 1; }
.canvas-topline { fill: none; stroke: #d3d9cf; stroke-width: 1; }
.canvas-label { fill: #365768; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.canvas-index { fill: #8b692f; font-size: 8px; }
.canvas-space { fill: #fbf9f2; stroke: #dfe3d9; stroke-width: .8; }
.canvas-guides { fill: none; stroke: #b99a5b; stroke-width: 1.4; transition: stroke .45s ease; }
.canvas-center { fill: none; stroke: #c4cdbf; stroke-width: 1; }
.canvas-placeholder { fill: #788879; font-size: 7px; font-weight: 500; letter-spacing: 1.2px; }
.canvas-footerline { fill: none; stroke: #cfd7ca; stroke-width: 1; }
.swatch-ink { fill: #172f43; }
.swatch-teal { fill: #749d97; }
.swatch-gold { fill: #ddb96b; }
figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em 1.4em;
  padding: .8em .7em .15em;
  border-top: 1px solid var(--line);
}
figcaption > span {
  color: #637769;
  font-size: .5em;
  font-weight: 750;
  letter-spacing: .11em;
}
figcaption em { font: italic 1em/1.2 Georgia, "Times New Roman", serif; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-outer-desktop]) .hero:has(.work-link:is(:hover, :focus-visible)) .canvas-project,
  html:not([data-outer-desktop]) .content-placeholder:hover .canvas-project,
  html[data-outer-desktop] .canvas-scene:hover .canvas-project { transform: translateY(-5px) rotate(-1deg); }
  html:not([data-outer-desktop]) .hero:has(.work-link:is(:hover, :focus-visible)) .canvas-back,
  html:not([data-outer-desktop]) .content-placeholder:hover .canvas-back,
  html[data-outer-desktop] .canvas-scene:hover .canvas-back { transform: translate(4px, 3px) rotate(1deg); }
  html:not([data-outer-desktop]) .hero:has(.work-link:is(:hover, :focus-visible)) .canvas-guides,
  html:not([data-outer-desktop]) .content-placeholder:hover .canvas-guides,
  html[data-outer-desktop] .canvas-scene:hover .canvas-guides { stroke: #3f7d7b; }
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  width: 90%;
  max-width: 1120px;
  margin-inline: auto;
  padding-block: 1em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .52em;
}
:focus-visible { outline: 2px solid #8a682e; outline-offset: 3px; }

/* Gentle ink washes stay within the blank canvas; the page itself stays still. */
html[data-build-ambient] :is(.canvas-wash-teal, .canvas-wash-gold) {
  animation-duration: 14s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
html[data-build-ambient="playing"] :is(.canvas-wash-teal, .canvas-wash-gold) { animation-play-state: running; }
html[data-build-ambient] .canvas-wash-teal { animation-name: canvas-cool; }
html[data-build-ambient] .canvas-wash-gold { animation-name: canvas-warm; }
@keyframes canvas-cool {
  0%, 100% { opacity: .72; }
  50% { opacity: .42; }
}
@keyframes canvas-warm {
  0%, 100% { opacity: .62; }
  50% { opacity: .86; }
}

@media (max-width: 420px) {
  body { height: auto; min-height: 100svh; grid-template-rows: auto auto auto; font-size: 13px; }
  .site-header { width: 88%; padding-block: 1em; flex-wrap: wrap; gap: .7em; }
  .brand { font-size: .8em; letter-spacing: .04em; }
  nav { gap: 0; margin-left: auto; font-size: .65em; }
  nav > button:not(:last-child) { display: none; }
  nav > button:last-child { min-height: 34px; padding: .5em .6em; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; gap: 1.4em; padding-block: 1.5em 1em; }
  .hero-copy { text-align: left; }
  .eyebrow { font-size: .67em; }
  h1 { margin-block: .4em .5em; font-size: clamp(25px, 11vw, 34px); line-height: .98; }
  .hero-copy > p:not(.eyebrow, .canvas-note) { max-width: none; margin-bottom: 1.25em; font-size: 1em; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65em; }
  .hero-actions > button { min-height: 40px; width: 100%; padding: .7em .8em; justify-content: space-between; font-size: .9em; }
  .canvas-note { display: none; }
  .content-placeholder { height: auto; max-height: none; }
  .canvas-scene { max-height: 190px; }
  figcaption { padding-top: .8em; font-size: .7em; }
  footer { width: 88%; align-items: start; gap: 1em; padding-block: 1em; font-size: .6em; }
  footer > span:first-child { max-width: 12em; }
  footer > span:last-child { max-width: 22em; text-align: right; }
}
@media (max-height: 340px) and (min-aspect-ratio: 1.1) {
  body { height: 100svh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; font-size: clamp(9px, 1.65vw, 13px); }
  .site-header { width: 90%; padding-block: .6em; flex-wrap: nowrap; }
  .brand { font-size: .83em; }
  nav { font-size: .67em; }
  nav > button:last-child { min-height: 24px; }
  .hero { grid-template-columns: 1.2fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 1em; padding-block: .65em; }
  .eyebrow { font-size: .57em; }
  h1 { margin-block: .28em; font-size: clamp(19px, 4.8vw, 34px); }
  .hero-copy > p:not(.eyebrow, .canvas-note) { margin-bottom: .7em; font-size: .78em; line-height: 1.45; }
  .hero-actions { display: flex; flex-wrap: nowrap; gap: .6em; }
  .hero-actions > button { width: auto; min-height: 24px; padding: .65em .8em; font-size: .69em; gap: .7em; }
  .canvas-note { display: none; }
  .content-placeholder { height: 100%; max-height: 260px; }
  .canvas-scene { max-height: none; }
  figcaption { flex-wrap: wrap; justify-content: center; gap: .3em .8em; padding-top: .5em; }
  footer { width: 90%; padding-block: .6em; font-size: .52em; }
}
@media (max-height: 140px) and (min-aspect-ratio: 1.1) {
  .site-header { min-height: 24px; padding-block: 0; }
  .hero { padding-block: .2em; gap: .6em; }
  .eyebrow, .hero-copy > p:not(.eyebrow, .canvas-note), .hero-actions > .work-link { display: none; }
  h1 { margin-block: .12em; font-size: clamp(14px, 5.4vw, 20px); }
  .hero-actions > button { font-size: 8px; }
  figcaption { padding-top: .3em; font-size: 7px; }
  figcaption > span, footer > span:first-child { display: none; }
  footer { justify-content: end; padding-block: .3em; font-size: 5px; }
  footer > span:last-child { max-width: none; }
}
/* A phone's actual landscape display uses a concise two-column invitation,
   with the open canvas and one clear action fitting the native screen. */
html[data-outer-phone] body { height: 100svh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; font-size: 9px; }
html[data-outer-phone] .site-header { width: 92%; min-height: 24px; padding-block: 3px; flex-wrap: nowrap; gap: 6px; }
html[data-outer-phone] .brand { gap: 4px; font-size: 7px; letter-spacing: .05em; }
html[data-outer-phone] .brand-mark { width: 18px; height: 18px; flex-basis: 18px; }
html[data-outer-phone] nav { gap: 0; margin-left: auto; font-size: 7px; }
html[data-outer-phone] nav > button:not(:last-child) { display: none; }
html[data-outer-phone] nav > button:last-child { width: 26px; min-height: 24px; justify-content: center; padding: 3px; border-color: #b7bda9; white-space: nowrap; }
html[data-outer-phone] .nav-contact-label, html[data-outer-phone] nav .action-arrow { display: none; }
html[data-outer-phone] .nav-menu-icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
html[data-outer-phone] .nav-menu-label { position: absolute; display: block; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-outer-phone] nav > button:last-child:is(:hover, :focus-visible) { color: #172f43; background: #ead7ab; border-color: #a77c36; }
html[data-outer-phone] .hero { width: 92%; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 6px; padding-block: 4px; }
html[data-outer-phone] .eyebrow { display: flex; gap: 5px; margin-top: 4px; font-size: 5.5px; letter-spacing: .1em; }
html[data-outer-phone] .eyebrow::before { width: 12px; }
html[data-outer-phone] h1 { margin-block: 5px; font-size: clamp(16px, 5.6vw, 26px); line-height: 1.03; }
html[data-outer-phone] .hero-copy > p:not(.eyebrow, .canvas-note) { max-width: none; margin-bottom: 7px; font-size: 8px; line-height: 1.4; }
html[data-outer-phone] .hero-actions { display: flex; gap: 0; }
html[data-outer-phone] .hero-actions > button { width: auto; min-height: 22px; padding: 4px 8px; justify-content: center; gap: 8px; font-size: 7px; }
html[data-outer-phone] .hero-actions > .work-link, html[data-outer-phone] .canvas-note { display: none; }
html[data-outer-phone] .content-placeholder { height: 100%; max-height: none; justify-items: center; align-items: center; }
html[data-outer-phone] .canvas-scene { width: 100%; height: 100%; max-height: none; }
/* Balance the rear sheet around the front sheet's center on the smaller screen. */
html[data-outer-phone] .canvas-back { d: path("M48 58 381 69 396 349 63 366Z"); }
html[data-outer-phone] .canvas-shadow { d: path("M51 69 385 81 401 359 66 377Z"); }
html[data-outer-phone] .canvas-wash-teal { cx: 286px; cy: 163px; rx: 130px; ry: 126px; }
html[data-outer-phone] .canvas-wash-gold { cx: 165px; cy: 259px; rx: 135px; ry: 120px; }
html[data-outer-phone] figcaption { width: 100%; justify-content: center; gap: 0; padding: 3px 0 0; font-size: 8px; text-align: center; }
html[data-outer-phone] figcaption > span { display: none; }
html[data-outer-phone] footer { width: 92%; justify-content: end; padding-block: 3px; font-size: 5px; }
html[data-outer-phone] footer > span:first-child { display: none; }
html[data-outer-phone] footer > span:last-child { max-width: none; }
@media (max-height: 150px) {
  html[data-outer-phone] .hero-copy > p:not(.eyebrow, .canvas-note) { display: none; }
}
@media (min-height: 121px) and (max-height: 150px) {
  html[data-outer-phone] .site-header { padding-block: 1px; }
  html[data-outer-phone] .brand { font-size: 7.5px; }
  html[data-outer-phone] .hero { padding-block: 3px; }
  html[data-outer-phone] .eyebrow { display: none; }
  html[data-outer-phone] h1 { margin-block: 2px; font-size: clamp(18px, 6.2vw, 26px); }
  html[data-outer-phone] .hero-copy > p:not(.eyebrow, .canvas-note) { display: block; margin-bottom: 4px; font-size: 7.5px; line-height: 1.2; }
  html[data-outer-phone] .services-full { display: none; }
  html[data-outer-phone] .services-concise { display: inline; }
  html[data-outer-phone] .hero-actions > button { min-height: 26px; padding-inline: 10px; font-size: 8px; }
  html[data-outer-phone] footer { padding-block: 2px; }
}
@media (max-height: 120px) {
  html[data-outer-phone] .hero { padding-block: 3px; }
  html[data-outer-phone] .eyebrow { display: none; }
  html[data-outer-phone] h1 { margin-block: 3px; font-size: clamp(14px, 5.3vw, 20px); }
  html[data-outer-phone] .hero-actions > button { min-height: 20px; }
}
/* The outer tablet receives native readable type and controls in its larger
   dedicated display, independently of the iframe's own width. */
html[data-outer-tablet] body { height: 100svh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; font-size: clamp(12px, 2.2vw, 15px); }
html[data-outer-tablet] .site-header { width: 90%; padding-block: .8em; gap: 1em; flex-wrap: nowrap; }
html[data-outer-tablet] .brand { font-size: .8em; letter-spacing: .04em; }
html[data-outer-tablet] nav { gap: 1em; font-size: .78em; }
html[data-outer-tablet] nav > button { display: inline-flex; min-height: 28px; align-items: center; white-space: nowrap; }
html[data-outer-tablet] nav > button:is(:hover, :focus-visible) { color: #8b692f; }
html[data-outer-tablet] .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: minmax(0, 1fr); gap: 4%; padding-block: 1em; }
html[data-outer-tablet] h1 { font-size: clamp(28px, 5.3vw, 42px); }
html[data-outer-tablet] .hero-copy > p:not(.eyebrow, .canvas-note) { font-size: .9em; line-height: 1.5; }
html[data-outer-tablet] .hero-actions { display: flex; flex-wrap: wrap; gap: .7em; }
html[data-outer-tablet] .hero-actions > button { width: auto; min-height: 34px; justify-content: center; font-size: .76em; }
html[data-outer-tablet] .content-placeholder { height: auto; max-height: none; align-self: center; }
html[data-outer-tablet] .canvas-scene { height: auto; max-height: none; aspect-ratio: 444 / 376; }
html[data-outer-tablet] figcaption { gap: .5em 1em; }
html[data-outer-tablet] footer { padding-block: .8em; font-size: .6em; }
/* The containing Home page owns this mode. A desktop laptop can contain a
   narrow native iframe without becoming the phone/tablet composition. */
html[data-outer-desktop] body { height: 100svh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; font-size: clamp(11px, 1.95vw, 14px); }
html[data-outer-desktop] .site-header { width: 90%; padding-block: .85em; flex-wrap: nowrap; gap: .8em; }
html[data-outer-desktop] .brand { font-size: .8em; letter-spacing: .05em; }
html[data-outer-desktop] .brand:is(:hover, :focus-visible) { color: #8b692f; }
html[data-outer-desktop] nav { gap: .6em; margin-left: auto; font-size: .76em; }
html[data-outer-desktop] nav > button { display: inline-flex; min-height: 28px; align-items: center; padding: .45em .65em; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease; }
html[data-outer-desktop] nav > button:last-child { border-color: var(--ink); }
html[data-outer-desktop] nav > button:is(:hover, :focus-visible) { color: #172f43; background: #ead7ab; border-color: #a77c36; box-shadow: 0 2px 8px #a77c3626; transform: translateY(-1px) scale(1.04); }
html[data-outer-desktop] nav > button:active { transform: scale(.98); }
html[data-outer-desktop] .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 4%; padding-block: 1em; }
html[data-outer-desktop] .eyebrow { display: flex; font-size: .6em; }
html[data-outer-desktop] h1 { margin-block: .34em; font-size: clamp(27px, 5.6vw, 44px); line-height: 1.04; }
html[data-outer-desktop] .hero-copy > p:not(.eyebrow, .canvas-note) { display: block; max-width: none; margin-bottom: .95em; font-size: .95em; line-height: 1.5; }
html[data-outer-desktop] .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
html[data-outer-desktop] .hero-actions > button { display: inline-flex; width: 100%; min-height: 34px; justify-content: center; gap: .65em; padding: .6em .8em; font-size: .76em; }
html[data-outer-desktop] .canvas-note { display: block; margin-top: 1em; font-size: .6em; }
html[data-outer-desktop] .content-placeholder { align-self: center; height: auto; max-height: none; }
html[data-outer-desktop] .canvas-scene { height: auto; max-height: none; aspect-ratio: 444 / 376; }
html[data-outer-desktop] figcaption { flex-wrap: wrap; gap: .4em 1em; padding-top: .65em; }
html[data-outer-desktop] figcaption > span { display: inline; }
html[data-outer-desktop] footer { width: 90%; justify-content: space-between; padding-block: .75em; font-size: .52em; }
html[data-outer-desktop] footer > span { display: inline; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-build-ambient] :is(.canvas-wash-teal, .canvas-wash-gold) { animation: none; }
  html[data-build-flow] :is(.site-header, .hero-copy, .content-placeholder, footer) { opacity: 1; transform: none; }
  .canvas-project, .canvas-back, .canvas-guides,
  .hero-actions > button, .hero-actions .action-arrow { transition: none; }
  .hero-actions > button:is(:hover, :focus-visible) .action-arrow { transform: none; }
  html[data-outer-desktop] nav > button { transition: none; }
  html[data-outer-desktop] nav > button:is(:hover, :focus-visible, :active) { transform: none; }
}
