/* Shared design tokens, layout and components. */

:root {
  --ink: #192326;
  --muted: #58656b;
  --paper: #fff;
  --surface: #f0f3f6;
  --accent: #244cef;
  --on-accent: #fff;
  --line: #dce2e7;
  --radius: 4px;
  --heading: Arial, sans-serif;
  --measure: 1220px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
}
h1 {
  font-size: clamp(44px, 6.2vw, 90px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
em {
  font-weight: 400;
}
.wrap {
  width: min(var(--measure), 90%);
  margin-inline: auto;
}
.demo-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 20px;
}
.demo-bar a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-bar a[aria-current="true"] {
  font-weight: bold;
}
.header {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1px;
}
.logo span {
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.menu {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}
.btn.outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: bold;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--muted);
}
.intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 570px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.home-hero {
  padding: 65px 0 60px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  align-items: center;
}
.home-hero h1 {
  margin: 24px 0;
}
.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}
.hero-visual figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.hero-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.section {
  padding: 76px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 38px;
}
.section-heading .intro {
  max-width: 390px;
}
.section-heading .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  padding: 30px;
  border-top: 1px solid var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}
.service-card .number {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.service-card p {
  color: var(--muted);
}
.service-card .text-link {
  margin-top: auto;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 28px;
}
.project-card {
  display: block;
}
.project-art {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  padding: 32px;
  overflow: hidden;
}
.project-art strong {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-family: var(--heading);
}
.project-art small {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.project-image {
  position: relative;
  min-height: 270px;
  background: var(--surface);
}
.project-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.project-image small {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  font-size: 12px;
  background: var(--paper);
  color: var(--ink);
}
.project-card:nth-child(2) .project-art {
  background: #e0e9f7;
}
.project-card:nth-child(3) .project-art {
  background: var(--accent);
  color: var(--on-accent);
}
.project-card:nth-child(4) .project-art {
  background: #eceff1;
}
.project-caption {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.project-caption h3 {
  font-size: 23px;
  margin-bottom: 4px;
}
.project-caption p,
.project-caption span {
  font-size: 14px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.copy p {
  color: var(--muted);
  margin-bottom: 20px;
}
.copy h3 {
  margin: 28px 0 15px;
}
.steps {
  counter-reset: steps;
}
.step {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.step:before {
  counter-increment: steps;
  content: "0" counter(steps);
  font-size: 13px;
  color: var(--muted);
}
.step h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
}
.cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta h2 {
  max-width: 680px;
}
.cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  flex-shrink: 0;
}
.footer {
  padding: 40px 0 25px;
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-top .links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 13px;
}
.page-hero {
  padding: 64px 0 45px;
}
.page-hero h1 {
  max-width: 1000px;
  margin: 20px 0 25px;
}
.page-hero .intro {
  max-width: 720px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.deliverables {
  padding: 28px;
  background: var(--surface);
}
.deliverables h3 {
  margin-bottom: 16px;
}
.deliverables ul {
  padding-left: 20px;
}
.deliverables li {
  padding: 8px 0;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 35px;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
.project-lead {
  background: var(--surface);
  padding: 50px;
  margin-bottom: 40px;
}
.project-lead img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}
.project-lead strong {
  font-family: var(--heading);
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: -0.06em;
  display: block;
}
.project-lead figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.project-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 25px 0;
  color: var(--muted);
  font-size: 14px;
}
.journal-card {
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}
.journal-card .text-link {
  margin-top: auto;
}
.journal-card p {
  color: var(--muted);
}
.article {
  max-width: 760px;
}
.article h2 {
  font-size: 34px;
  margin: 35px 0 18px;
}
.article p {
  color: var(--muted);
  margin: 18px 0;
}
.article ul {
  padding-left: 22px;
}
.article li {
  margin: 10px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 7px;
  background: var(--paper);
  color: var(--ink);
}
textarea {
  min-height: 160px;
}
.note {
  font-size: 13px;
  color: var(--muted);
}
.contact-panel {
  padding: 30px;
  background: var(--surface);
}
.contact-panel h3 {
  margin-bottom: 14px;
}
.contact-panel p {
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-panel a {
  text-decoration: underline;
}
.form-note {
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  margin-bottom: 20px;
}
.status {
  margin-top: 20px;
  font-size: 14px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 16px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
/* Theme: creative agency. */
body.agency {
  --accent: #244cef;
  --heading: Arial, sans-serif;
}
.agency .home-hero h1 {
  font-weight: 800;
}
.agency .home-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.agency .hero-visual {
  transform: rotate(2deg);
}
.agency .hero-visual img {
  border-radius: 4px;
}
.agency .project-art strong {
  font-weight: 800;
}
.agency .service-card {
  border-radius: 4px;
}
/* Theme: interiors. */
body.interiors {
  --ink: #28342e;
  --muted: #616c64;
  --paper: #fcfcf8;
  --surface: #eef1eb;
  --accent: #354f40;
  --on-accent: #fff;
  --heading: Georgia, serif;
  --radius: 0;
}
.interiors h1,
.interiors h2,
.interiors h3 {
  font-weight: 400;
  letter-spacing: -0.045em;
}
.interiors .home-hero {
  grid-template-columns: 0.9fr 1.2fr;
  gap: 75px;
  padding-top: 60px;
}
.interiors .home-hero h1 {
  font-size: clamp(50px, 6vw, 86px);
}
.interiors .hero-visual img {
  min-height: 600px;
}
.interiors .service-card {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-left: 0;
  padding-right: 12px;
}
.interiors .service-card .number {
  margin-bottom: 12px;
}
.interiors .project-caption h3 {
  font-size: 28px;
}
.interiors .work-grid {
  gap: 55px 40px;
}
.interiors .project-card:nth-child(even) {
  padding-top: 65px;
}
.interiors .project-art {
  background: #e1e7df;
}
.interiors .cta {
  padding: 65px;
}
.interiors .logo {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
}
/* Theme: renovation. */
body.renovation {
  --ink: #162b3c;
  --muted: #526774;
  --paper: #fff;
  --surface: #edf2f5;
  --accent: #efc14f;
  --on-accent: #162b3c;
  --radius: 3px;
}
.renovation .home-hero {
  background: var(--ink);
  color: white;
  padding: 50px;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 30px;
}
.renovation .home-hero .intro,
.renovation .home-hero .eyebrow,
.renovation .hero-note {
  color: #c8d7e1;
}
.renovation .home-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.renovation .home-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.renovation .home-hero .btn.outline {
  color: white;
  border-color: #667888;
}
.renovation .hero-visual img {
  min-height: 490px;
}
.renovation .hero-visual figcaption {
  color: #c8d7e1;
}
.renovation .hero-note {
  border-color: #526574;
}
.renovation .service-card {
  border-top: 4px solid var(--accent);
}
.renovation .cta {
  background: var(--ink);
  color: white;
}
.renovation .cta .btn {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.renovation .header .btn {
  font-weight: bold;
}
.demo-index {
  padding: 70px 0;
}
.demo-index h1 {
  margin: 20px 0 28px;
}
.demo-index .grid {
  margin-top: 45px;
}
.demo-tile {
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-tile h2 {
  font-size: 35px;
}
.demo-tile p {
  color: var(--muted);
}
.demo-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.demo-tile .btn {
  margin-top: auto;
}
.index-note {
  padding-top: 30px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1000px) {
  nav {
    gap: 16px;
  }
  .home-hero,
  .interiors .home-hero {
    gap: 30px;
  }
  .renovation .home-hero {
    padding: 35px;
    gap: 30px;
  }
  .split {
    gap: 40px;
  }
  .hero-visual img,
  .interiors .hero-visual img {
    min-height: 430px;
  }
  .logo {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .header {
    flex-wrap: wrap;
    min-height: 80px;
    padding: 20px 0;
  }
  .menu {
    display: block;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: 14px;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: start;
    padding: 10px 0;
  }
  nav.open {
    display: flex;
  }
  .home-hero,
  .interiors .home-hero,
  .renovation .home-hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 38px;
  }
  .home-hero h1,
  .interiors .home-hero h1 {
    font-size: clamp(46px, 9vw, 74px);
  }
  .hero-visual {
    min-height: 0;
  }
  .hero-visual img,
  .interiors .hero-visual img,
  .renovation .hero-visual img {
    min-height: 0;
    height: 360px;
  }
  .agency .hero-visual {
    transform: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .service-card .number {
    margin-bottom: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 50px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .work-grid {
    gap: 30px 20px;
  }
  .interiors .project-card:nth-child(even) {
    padding-top: 0;
  }
  .project-image img {
    height: 260px;
  }
  .project-art {
    padding: 22px;
    min-height: 260px;
  }
  .project-art strong {
    font-size: 45px;
  }
  .project-caption {
    flex-direction: column;
    gap: 8px;
  }
  .cta,
  .interiors .cta {
    padding: 35px;
    align-items: start;
    flex-direction: column;
  }
  .page-hero {
    padding-top: 45px;
  }
  .renovation .home-hero {
    padding: 30px;
  }
  .project-lead {
    padding: 25px;
  }
  .demo-tile img {
    height: 260px;
  }
}
@media (max-width: 520px) {
  .wrap {
    width: 90%;
  }
  .demo-bar {
    gap: 12px;
    font-size: 12px;
  }
  .logo,
  .interiors .logo {
    font-size: 23px;
  }
  .home-hero h1,
  .interiors .home-hero h1,
  .renovation .home-hero h1,
  h1 {
    font-size: clamp(40px, 10.6vw, 55px);
  }
  .hero-visual img,
  .interiors .hero-visual img,
  .renovation .hero-visual img {
    height: 290px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .renovation .home-hero {
    width: 100%;
    padding: 30px 5%;
    margin-top: 0;
  }
  .project-meta {
    gap: 15px;
  }
  .project-lead strong {
    font-size: 60px;
  }
  .footer-top {
    flex-direction: column;
  }
  .cta h2 {
    font-size: 36px;
  }
  .demo-index {
    padding-top: 40px;
  }
  .hero-note {
    margin-top: 24px;
  }
  .intro {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .project-card .project-art {
    transition:
      background 0.2s,
      transform 0.2s;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
  .project-card:hover .project-art {
    transform: translateY(-3px);
  }
}
.project-lead strong,
.project-art strong {
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .project-lead strong {
    font-size: clamp(34px, 8vw, 60px);
  }
}
