/* ================================================================
   Design Associates Group
   Site-wide styles
   ================================================================ */

/* Fonts ---------------------------------------------------------- */

@font-face {
  font-family: "DAG Sans";
  src: url("/fonts/NimbusSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DAG Sans";
  src: url("/fonts/NimbusSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DAG Condensed";
  src: url("/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Variables ------------------------------------------------------ */

:root {
  --ink: #111;
  --paper: #fff;
  --red: #e7224f;
  --rule: #777;
  --soft: #f1f0ed;
  --content-width: 89.7%;
  --content-left: 5%;
}

/* Reset and global elements ------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DAG Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding-top: 24px;
}

/* Shared content grid ------------------------------------------- */

.philosophy-preview,
.footer,
.interior-hero,
.manifesto,
.principles,
.interior-cta,
.studio-intro,
.studio-grid,
.contact-layout,
.thank-you,
.case-study {
  width: var(--content-width);
  margin-left: var(--content-left);
}

/* Header and primary navigation --------------------------------- */

.header {
  display: grid;
  grid-template-columns: 27px 1fr;
  column-gap: 10px;
  align-items: end;
  width: 91.7%;
  margin-left: 4.1%;
}

.dag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 43px;
}

.dag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 45px;
  border-bottom: 1px solid var(--rule);
}

.header nav {
  display: flex;
  gap: clamp(25px, 4.2vw, 52px);
  padding-right: 2%;
  transform: translateY(-3px);
}

.header nav a {
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.header nav a:hover,
.header nav a:active,
.header nav a[aria-current="page"],
.footer a:hover,
.text-link:hover {
  color: var(--red);
}

/* Mobile-menu button is enabled in the 800px media query. */
.menu-toggle {
  display: none;
  appearance: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    color 140ms ease;
}

.menu-toggle:hover,
.menu-toggle:active {
  color: var(--red);
}

/* Shared type treatments ---------------------------------------- */

.hero h1,
.interior-hero h1,
.contact-intro h1,
.thank-you h1 {
  margin: 0;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.kicker::after {
  content: "";
  display: block;
  width: 21px;
  margin-top: 9px;
  border-top: 1.5px solid var(--ink);
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.text-link span {
  color: var(--red);
  font-size: 20px;
  line-height: 0;
}

/* Footer --------------------------------------------------------- */

.footer {
  padding: 15px 4px 18px;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: flex;
  gap: 35px;
  align-items: center;
}

.footer .dag {
  width: 27px;
  height: 43px;
}

.footer-top p,
.footer-top a {
  font-size: 14px;
}

.footer-top p {
  margin: 0;
}

.copyright {
  margin: 15px 0 0;
  font-size: 10px;
  text-transform: uppercase;
}

.interior-page .footer {
  margin-top: 72px;
}

/* Home page ------------------------------------------------------ */

.hero {
  margin: 47px 0 0 4.1%;
  text-transform: uppercase;
}

.hero p {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.65vw, 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(52px, 7.65vw, 84px);
  white-space: nowrap;
}

.process {
  width: 100%;
  aspect-ratio: 2048 / 277;
  margin-top: 80px;
  overflow: hidden;
}

.process img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.philosophy-preview {
  margin-top: 80px;
  padding-bottom: 38px;
}

.philosophy-content {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

.philosophy-content h2 {
  margin: 0;
  font-size: clamp(25px, 3.35vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.preview-copy {
  min-height: 108px;
  padding: 5px 0 0 7.5%;
  border-left: 1px solid #aaa;
}

.preview-copy p {
  max-width: 530px;
  margin: 0 0 18px;
  font-size: clamp(15px, 2vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Shared interior-page hero ------------------------------------- */

.interior-hero {
  display: grid;
  grid-template-columns: 1fr 38%;
  column-gap: 7%;
  align-items: end;
  margin-top: 66px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--rule);
}

.interior-hero .kicker {
  grid-column: 1 / -1;
}

.interior-hero h1 {
  font-size: clamp(55px, 7.7vw, 108px);
}

.interior-hero .lead {
  margin: 0 0 5px;
  font-size: clamp(18px, 2.05vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.interior-cta {
  margin-top: 64px;
}

.interior-cta h2 {
  margin: 0 0 28px;
  font-size: clamp(35px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

/* Philosophy page ----------------------------------------------- */

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  padding: 56px 0;
}

.manifesto p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.manifesto .manifesto-large {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.principle {
  min-height: 290px;
  padding: 28px 26px 30px 0;
}

.principle + .principle {
  padding-left: 26px;
  border-left: 1px solid #bbb;
}

.principle-number {
  margin: 0 0 50px;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
}

.principle h2 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.05;
}

.principle > p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Studio page ---------------------------------------------------- */

.studio-intro {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 8%;
  padding: 52px 0;
}

.studio-intro > div {
  border-right: 1px solid #aaa;
}

.fact {
  margin: 0 0 10px;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-intro > p {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.founder,
.capabilities {
  padding: 48px 7% 52px 0;
}

.capabilities {
  padding-left: 8%;
  border-left: 1px solid #aaa;
}

.founder h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.role {
  margin: 10px 0 30px;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.founder > p:last-child {
  max-width: 590px;
  font-size: 16px;
  line-height: 1.5;
}

.capabilities ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities li {
  padding: 12px 0;
  border-bottom: 1px solid #bbb;
  font-size: 17px;
}

/* Contact page --------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 39% 1fr;
  gap: 9%;
  margin-top: 70px;
}

.contact-intro h1,
.thank-you h1 {
  font-size: clamp(58px, 7vw, 96px);
}

.contact-intro > p:not(.kicker) {
  max-width: 420px;
  margin: 33px 0 26px;
  font-size: 20px;
  line-height: 1.4;
}

.contact-form {
  padding-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-form label {
  display: block;
  margin-bottom: 26px;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #777;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 17px "DAG Sans", Arial, sans-serif;
}

.contact-form textarea {
  padding: 13px;
  border: 1px solid #777;
  resize: vertical;
}

.contact-form button {
  padding: 15px 20px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button span {
  margin-left: 18px;
  color: var(--red);
  font-size: 18px;
}

/* Thank-you and 404 pages --------------------------------------- */

.thank-you-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thank-you {
  margin-top: 92px;
  margin-bottom: 120px;
}

.thank-you p:not(.kicker) {
  margin: 30px 0 28px;
  font-size: 22px;
}

.thank-you-page .footer {
  margin-top: auto;
}

/* Work case study ----------------------------------------------- */

.case-study {
  margin-top: 66px;
}

.case-study-intro {
  padding: 0 0 26px;
}

.case-study-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}

.case-study-heading h1 {
  margin: 0;
  font-family: "DAG Sans", Arial, sans-serif;
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.case-study-heading h1 span,
.case-study-approach h2 span {
  display: block;
}

.case-study-heading > p {
  max-width: 690px;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.case-study-artwork {
  width: 100%;
  margin: 0;
  background: var(--paper);
}

.case-study-artwork img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-study-approach {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 8%;
  margin-top: 64px;
  padding: 46px 0 52px;
  border-top: 1px solid var(--rule);
}

.case-study-approach h2 {
  margin: 0;
  padding-right: 8%;
  border-right: 1px solid #aaa;
  font-family: "DAG Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(19px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.case-study-approach h2 span {
  white-space: nowrap;
}

.case-study-copy {
  max-width: 860px;
}

.case-study-copy p {
  margin: 0;
  font-size: clamp(18px, 1.85vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.case-study-copy p + p {
  margin-top: 24px;
}

.work-page .footer {
  margin-top: 0;
}

/* Large screens ------------------------------------------------- */

@media (min-width: 1501px) {
  .page {
    max-width: 1500px;
    margin-inline: auto;
  }
}

/* Tablet and mobile --------------------------------------------- */

@media (max-width: 800px) {
  :root {
    --content-width: 90%;
  }

  .page {
    padding-top: 17px;
  }

  .header {
    grid-template-columns: 24px 1fr;
    width: 90%;
    margin-left: 5%;
  }

  .dag {
    width: 24px;
    height: 37px;
  }

  .header-line {
    position: relative;
    min-height: 40px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    transform: translateY(-2px);
  }

  .header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    z-index: 100;
    display: none;
    min-width: 190px;
    gap: 0;
    padding: 10px 0;
    border: 1px solid var(--rule);
    border-top: 0;
    background: var(--paper);
    box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
    transform: none;
  }

  .header-line.menu-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header nav a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-size: 15px;
    line-height: 1;
    text-align: right;
  }

  .header-line.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header-line.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header-line.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    margin: 42px 5% 0;
  }

  .hero p {
    font-size: clamp(12px, 3.8vw, 16px);
  }

  .hero h1 {
    font-size: clamp(47px, 13.5vw, 76px);
    white-space: normal;
  }

  .process {
    width: 100%;
    aspect-ratio: 1000 / 320;
    margin-top: 30px;
    margin-left: 0;
    overflow: hidden;
  }

  .process picture,
  .process img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .process img {
    object-fit: fill;
  }

  .philosophy-preview {
    margin-top: 50px;
  }

  .philosophy-content,
  .interior-hero,
  .manifesto,
  .studio-intro,
  .studio-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .philosophy-content {
    gap: 25px;
  }

  .philosophy-content h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .preview-copy {
    min-height: 0;
    padding: 20px 0 0;
    border-top: 1px solid #aaa;
    border-left: 0;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 18px;
  }

  .interior-hero {
    gap: 28px;
    margin-top: 52px;
  }

  .interior-hero h1 {
    font-size: clamp(52px, 14vw, 78px);
  }

  .manifesto {
    gap: 30px;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .principle:nth-child(3) {
    border-top: 1px solid #bbb;
    border-left: 0;
  }

  .principle:nth-child(4) {
    border-top: 1px solid #bbb;
  }

  .studio-intro {
    gap: 30px;
  }

  .studio-intro > div {
    padding-bottom: 25px;
    border-right: 0;
    border-bottom: 1px solid #aaa;
  }

  .founder,
  .capabilities {
    padding: 38px 0;
  }

  .capabilities {
    border-top: 1px solid #aaa;
    border-left: 0;
  }

  .contact-layout {
    gap: 42px;
    margin-top: 52px;
  }

  .case-study {
    margin-top: 52px;
  }

  .case-study-intro {
    padding-bottom: 28px;
  }

  .case-study-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-study-heading h1 {
    font-size: clamp(19px, 5vw, 25px);
  }

  .case-study-heading > p {
    font-size: clamp(15px, 4vw, 19px);
  }

  .case-study-artwork {
    width: 111.1%;
    margin-left: -5.55%;
  }

  .case-study-approach {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 42px;
    padding: 34px 0 38px;
  }

  .case-study-approach h2 {
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid #aaa;
    font-size: clamp(21px, 6vw, 31px);
    line-height: 1.55;
  }

  .case-study-approach h2 span {
    white-space: normal;
  }

  .case-study-copy p {
    font-size: clamp(17px, 4.7vw, 23px);
  }
}

/* Small mobile -------------------------------------------------- */

@media (max-width: 500px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    min-height: 0;
    padding: 25px 0;
    border-top: 1px solid #bbb;
    border-left: 0;
  }

  .principle:first-child {
    border-top: 0;
  }

  .principle-number {
    margin-bottom: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-intro h1,
  .thank-you h1 {
    font-size: 16vw;
  }
}

/* Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span {
    transition: none;
  }
}
