/* Architecture studio: Field & Lintel, an invented practice. Gallery white, near black and one terracotta accent with Helvetica, large type and quiet grids. The projects are the product. */

.ar-page {
  --ar-canvas: #ffffff;
  --ar-surface: #ffffff;
  --ar-band: #f3f2ef;
  --ar-ink: #111111;
  --ar-muted: #5a5856;
  --ar-line: #e2e0dc;
  --ar-line-strong: #7f7c78;
  --ar-accent: #a8462b;
  --ar-accent-hover: #863720;
  --ar-on-accent: #ffffff;
  --ar-tint: #f5e4de;
  --ar-success: #2b6b3a;
  --ar-danger: #a3241b;
  --ar-focus: #a8462b;
  --ar-sky: #dfe3e6;
  --ar-mass: #b7b2aa;
  --ar-shade: #8f8a82;
  --ar-glass: #5f6f7a;
  --ar-ground: #c9c4bb;
  --ar-scrim: rgba(0, 0, 0, .6);
  --ar-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ar-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ar-r: 0px;

  background: var(--ar-canvas);
  color: var(--ar-ink);
  font-family: var(--ar-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): black gallery walls with a warm terracotta. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .ar-page {
    --ar-canvas: #0d0d0d;
    --ar-surface: #161616;
    --ar-band: #121212;
    --ar-ink: #f2f1ee;
    --ar-muted: #b7b4af;
    --ar-line: #2c2b29;
    --ar-line-strong: #85827d;
    --ar-accent: #f09a7d;
    --ar-accent-hover: #f6b8a3;
    --ar-on-accent: #2e0e04;
    --ar-tint: #33201a;
    --ar-success: #8fd29b;
    --ar-danger: #ff8a80;
    --ar-focus: #f09a7d;
    --ar-sky: #24282c;
    --ar-mass: #4b4843;
    --ar-shade: #6b6760;
    --ar-glass: #8aa0ad;
    --ar-ground: #33312d;
    --ar-scrim: rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

.ar-page [hidden] { display: none !important; }
:where(.ar-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.ar-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.ar-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.ar-page) a { color: var(--ar-accent); }
:where(.ar-page) :is(h1, h2, h3, h4) { color: inherit; }
.ar-page :focus-visible { outline: 3px solid var(--ar-focus); outline-offset: 2px; }
.ar-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--ar-accent); }
html:has(.ar-page) { scroll-behavior: smooth; }
.ar-page section[id] { scroll-margin-top: 72px; }
.ar-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.ar-header { position: sticky; top: 0; z-index: 20; background: var(--ar-canvas); border-bottom: 1px solid var(--ar-line); }
.ar-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.ar-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--ar-head); color: var(--ar-ink) !important; text-decoration: none; }
.ar-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--ar-tint); stroke: var(--ar-accent); stroke-width: 2; stroke-linejoin: round; }
.ar-nav { margin-left: auto; }
.ar-nav ul { display: flex; gap: 22px; }
.ar-nav a { color: var(--ar-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ar-nav a:hover { color: var(--ar-accent); text-decoration: underline; text-underline-offset: 4px; }
.ar-menu-btn { display: none; }
.ar-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ar-line-strong); border-radius: var(--ar-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.ar-theme-btn:hover { background: var(--ar-tint); }

.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--ar-accent); border-radius: var(--ar-r); font: 700 1rem/1.2 var(--ar-head); text-decoration: none; cursor: pointer; text-align: center;
}
.ar-btn--fill { background: var(--ar-accent); color: var(--ar-on-accent) !important; }
.ar-btn--fill:hover { background: var(--ar-accent-hover); border-color: var(--ar-accent-hover); }
.ar-btn--line { background: transparent; color: var(--ar-accent) !important; }
.ar-btn--line:hover { background: var(--ar-tint); }
.ar-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.ar-btn:disabled { background: var(--ar-band); border-color: var(--ar-line-strong); color: var(--ar-muted) !important; cursor: not-allowed; }

.ar-eyebrow { font-weight: 700; color: var(--ar-accent); font-size: .92rem; letter-spacing: .02em; }
.ar-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--ar-head); }
.ar-sub { color: var(--ar-muted); margin-top: 8px; max-width: 64ch; }
.ar-head { margin-bottom: 26px; }
.ar-sec { padding: 72px 0; }
.ar-band { background: var(--ar-band); }
.ar-muted { color: var(--ar-muted); }
.ar-small { font-size: .9rem; color: var(--ar-muted); }

.ar-hero { padding: 64px 0 56px; }
.ar-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.ar-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--ar-head); margin-top: 10px; }
.ar-lede { font-size: 1.15rem; color: var(--ar-muted); margin-top: 16px; max-width: 54ch; }
.ar-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ar-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--ar-muted); font-size: .95rem; }
.ar-facts strong { color: var(--ar-ink); }
.ar-panel { padding: 24px; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: calc(var(--ar-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.ar-panel-title { font: 700 1.1rem var(--ar-head); margin-bottom: 12px; }

.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.ar-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: var(--ar-r); }
.ar-card h3 { font: 700 1.15rem/1.25 var(--ar-head); }
.ar-card p { color: var(--ar-muted); font-size: .96rem; }
.ar-card .ar-btn { margin-top: auto; align-self: flex-start; }
.ar-card.is-on { border: 2px solid var(--ar-accent); }
.ar-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--ar-r) var(--ar-r) 0 0; background: var(--ar-tint); position: relative; overflow: hidden; }
.ar-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--ar-canvas); opacity: .7; }
.ar-price { font: 700 1.5rem var(--ar-head); color: var(--ar-ink); }
.ar-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ar-line-strong); font-size: .82rem; font-weight: 600; color: var(--ar-ink); }
.ar-badge--on { background: var(--ar-tint); border-color: var(--ar-accent); }
.ar-badge--bad { border-color: var(--ar-danger); color: var(--ar-danger); }
.ar-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ar-muted); }

.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ar-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--ar-line-strong); border-radius: 999px; background: var(--ar-surface); color: var(--ar-ink); font: 600 .95rem var(--ar-body); cursor: pointer; }
.ar-chip:hover { border-color: var(--ar-accent); }
.ar-chip[aria-pressed="true"] { background: var(--ar-accent); border-color: var(--ar-accent); color: var(--ar-on-accent); }
.ar-count { font-weight: 600; margin-bottom: 14px; }
.ar-empty { padding: 28px; text-align: center; border: 1px dashed var(--ar-line-strong); border-radius: var(--ar-r); }

.ar-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.ar-steps li { padding: 22px; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: var(--ar-r); counter-increment: st; }
.ar-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--ar-accent); color: var(--ar-on-accent); font-weight: 700; }
.ar-steps h3 { font: 700 1.1rem var(--ar-head); }
.ar-steps p { color: var(--ar-muted); font-size: .95rem; margin-top: 4px; }

.ar-table { width: 100%; border-collapse: collapse; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: var(--ar-r); overflow: hidden; }
.ar-table th, .ar-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ar-line); vertical-align: top; }
.ar-table th { font-size: .88rem; color: var(--ar-muted); background: var(--ar-band); }
.ar-table td.ar-num, .ar-table th.ar-num { text-align: right; font-variant-numeric: tabular-nums; }

.ar-meter { height: 10px; border-radius: 999px; background: var(--ar-line); overflow: hidden; }
.ar-meter span { display: block; height: 100%; background: var(--ar-accent); border-radius: inherit; }
.ar-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.ar-stat strong { display: block; font: 700 2rem/1.1 var(--ar-head); }
.ar-stat span { color: var(--ar-muted); font-size: .92rem; }

.ar-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ar-qs details { border-bottom: 1px solid var(--ar-line); }
.ar-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.ar-qs p { padding: 0 0 16px; color: var(--ar-muted); }

.ar-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: calc(var(--ar-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.ar-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ar-field--full { grid-column: 1 / -1; }
.ar-field label, .ar-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.ar-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ar-line-strong); border-radius: calc(var(--ar-r) - 2px); background: var(--ar-canvas); color: var(--ar-ink); font: 1rem var(--ar-body); }
.ar-field textarea { min-height: 110px; resize: vertical; }
.ar-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--ar-danger); }
.ar-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.ar-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--ar-accent); }
.ar-hint { font-size: .88rem; color: var(--ar-muted); margin-top: 6px; }
.ar-error { color: var(--ar-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.ar-error::before { content: "! "; }
.ar-status { font-weight: 600; }
.ar-status.is-ok { padding: 14px 16px; border-radius: calc(var(--ar-r) - 2px); background: var(--ar-tint); border-left: 4px solid var(--ar-success); }

.ar-footer { padding: 28px 0; border-top: 1px solid var(--ar-line); color: var(--ar-muted); font-size: .92rem; }
.ar-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ar-header-in { flex-wrap: wrap; gap: 10px; }
  .ar-theme-btn { margin-left: auto; }
  .ar-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ar-line-strong); border-radius: var(--ar-r); background: transparent; color: var(--ar-ink); font: 600 .95rem var(--ar-body); cursor: pointer;
  }
  .ar-nav { display: none; order: 5; width: 100%; margin: 0; }
  .ar-nav.is-open { display: block; padding-bottom: 12px; }
  .ar-nav ul { flex-direction: column; gap: 0; }
  .ar-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--ar-line); }
  .ar-header-cta { display: none; }
  .ar-hero-in, .ar-faq-in, .ar-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .ar-sec { padding: 52px 0; }
  .ar-fields { grid-template-columns: minmax(0, 1fr); }
  .ar-form { padding: 20px; }
  .ar-table thead { display: none; }
  .ar-table, .ar-table tbody, .ar-table tr, .ar-table td { display: block; width: 100%; }
  .ar-table tr { border-bottom: 1px solid var(--ar-line-strong); padding: 6px 0; }
  .ar-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .ar-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ar-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ar-page) { scroll-behavior: auto; }
}

@media print {
  .ar-header, .ar-theme-btn, .ar-form { display: none; }
}

/* This template's own sections */
.ar-hero-fig { margin: 0; }
.ar-hero-fig svg, .ar-shot svg, .ar-dlg-fig svg { display: block; width: 100%; height: auto; }
.ar-hero-fig figcaption { margin-top: 8px; color: var(--ar-muted); font-size: .9rem; }
.ar-sky { fill: var(--ar-sky); } .ar-ground { fill: var(--ar-ground); } .ar-mass { fill: var(--ar-mass); } .ar-shade { fill: var(--ar-shade); } .ar-glass { fill: var(--ar-glass); }
.ar-proj-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.ar-view { display: flex; gap: 6px; }
.ar-proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 12px; }
.ar-proj button { all: unset; display: block; width: 100%; cursor: pointer; }
.ar-proj button:focus-visible { outline: 3px solid var(--ar-focus); outline-offset: 4px; }
.ar-proj h3 { font: 700 1.15rem var(--ar-head); margin-top: 10px; }
.ar-proj button:hover h3 { color: var(--ar-accent); text-decoration: underline; }
.ar-proj .ar-pmeta { color: var(--ar-muted); font-size: .92rem; }
.ar-proj.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ar-proj.is-list .ar-shot { display: none; }
.ar-proj.is-list button { display: grid; grid-template-columns: 1fr 160px 80px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ar-line); align-items: baseline; }
.ar-proj.is-list h3 { margin: 0; }
.ar-dlg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: var(--ar-scrim); }
.ar-dlg[hidden] { display: none; }
.ar-dlg-box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.3fr 1fr; background: var(--ar-surface); color: var(--ar-ink); }
.ar-dlg-body { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.ar-dlg-body h2 { font: 700 1.8rem var(--ar-head); }
.ar-dlg-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: var(--ar-surface); color: var(--ar-ink); font-size: 1.6rem; cursor: pointer; z-index: 1; }
.ar-facts-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--ar-line); }
.ar-facts-list dt { color: var(--ar-muted); }
.ar-dlg-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.ar-studio { display: grid; gap: 48px; }
.ar-lead { font-size: 1.3rem; line-height: 1.45; margin: 12px 0; }
.ar-team li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--ar-line); }
.ar-team span { color: var(--ar-muted); }
.ar-awards { margin-top: 40px; }
.ar-awards h3 { font: 700 1.2rem var(--ar-head); margin-bottom: 8px; }
.ar-awards li { padding: 10px 0; border-bottom: 1px solid var(--ar-line); }
.ar-awards span { display: inline-block; width: 64px; color: var(--ar-accent); font-weight: 700; }
@media (max-width: 860px) { .ar-proj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ar-dlg-box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ar-proj { grid-template-columns: minmax(0, 1fr); } .ar-proj.is-list button { grid-template-columns: 1fr auto; } .ar-proj.is-list .ar-pyear { display: none; } }
