/*
  FUH Architecture Beta
  Pixel Typography Version 2 — Compact Spacing
  Generated: 2026-08-02

  Expected desktop heading variables:
  --h1-size: 42px;
  --h2-size: 32px;
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap");

:root {
  --charcoal: #222831;
  --charcoal-soft: #303842;
  --gold: #d6b028;
  --gold-light: #eadb8d;
  --paper: #f4f2ec;
  --white: #ffffff;
  --muted: #646464;
  --line: #d9d6ce;
  --content-width: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Explicit typography sizes */
  --h1-size: 42px;
  --h2-size: 32px;
  --h3-size: 22px;
  --lead-size: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--charcoal);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(34, 34, 34, 0.14);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: block;
  flex: 0 1 340px;
  min-width: 280px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 100%;
  aspect-ratio: 1100 / 240;
  background-image:
    url("../img/brand/fuh-logo-horizontal-transparent-tight.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.brand-copy {
  display: none;
}

.brand-tagline {
  margin-top: 3px;
  color: #40464d;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.site-nav a {
  position: relative;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  padding: 8px 0;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Type */

h1,
h2,
h3 {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 24px;
  font-size: var(--h1-size);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

h2 {
  margin-bottom: 24px;
  font-size: var(--h2-size);
  line-height: 1.12;
  letter-spacing: -0.6px;
}

h3 {
  margin-bottom: 14px;
  font-size: var(--h3-size);
  line-height: 1.24;
}

.eyebrow,
.footer-label {
  margin-bottom: 22px;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--lead-size);
  line-height: 1.65;
}

.section-number {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Buttons and links */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--charcoal);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
}

.button-primary:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--gold);
  color: #9a7910;
}

.button-light {
  border-color: var(--white);
  color: var(--white);
}

.button-light:hover {
  background: var(--white);
  color: var(--charcoal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--charcoal);
  text-decoration: none;
  font-weight: 700;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

/* Hero */

.hero {
  overflow: hidden;
  padding: 44px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-graphic {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  background-color: var(--charcoal);
  background-image: url("../img/brand/fuh-logo-stacked-dark.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82% auto;
}

.hero-graphic::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(214, 176, 40, 0.32);
  pointer-events: none;
}

.hero-graphic::after,
.hero-graphic-label,
.hero-graphic-line,
.hero-graphic-copy {
  display: none;
}

/* Sections */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding-top: 0;
}

.section-dark {
  border-color: var(--charcoal-soft);
  background: var(--charcoal);
  color: var(--white);
}

.section-muted {
  background: var(--paper);
}

.intro-grid,
.section-heading-grid,
.page-hero-grid,
.principal-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(40px, 8vw, 120px);
}

/* .intro-grid {
  align-items: end;
  margin-bottom: 52px;
} */

.intro-grid {
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  margin-bottom: 52px;
}

.intro-grid h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.eyebrow-light {
  color: var(--gold-light);
}

.lead-light {
  color: rgba(255, 255, 255, 0.72);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pillar {
  min-height: 250px;
  padding: 34px 34px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  border-right: 0;
}

.pillar p {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading-grid {
  margin-bottom: 48px;
}

.section-heading-grid h2 {
  max-width: 850px;
}

.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service-preview {
  min-height: 240px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-preview:nth-child(3n + 1) {
  padding-left: 0;
}

.service-preview:nth-child(3n) {
  border-right: 0;
}

.service-preview p {
  color: var(--muted);
}

.section-action {
  margin-top: 34px;
}

.experience-callout,
.contact-band-inner,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(50px, 9vw, 130px);
}

.experience-callout h2 {
  margin-bottom: 0;
}

.experience-callout .text-link {
  margin-top: 34px;
}

.contact-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  background: var(--gold);
}

.contact-band > .container {
  position: relative;
  z-index: 1;
}

.contact-band::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-80px, 2vw, 30px);
  z-index: 0;
  width: clamp(240px, 28vw, 430px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  background-image: url("../img/brand/fuh-round-stamp.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.contact-band-inner h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-band .eyebrow {
  color: var(--charcoal);
}

.contact-band p:not(.eyebrow) {
  max-width: 670px;
}

/* Internal pages */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 72px;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-90px, -5vw, -20px);
  z-index: 0;
  width: clamp(280px, 34vw, 520px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background-image: url("../img/brand/fuh-monogram.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.045;
  pointer-events: none;
}

.page-hero-grid {
  align-items: start;
}

.page-hero h1 {
  max-width: 950px;
}

.services-list,
.experience-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 9vw, 130px);
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.service-row-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.service-row-heading p {
  max-width: 570px;
  color: var(--muted);
}

.service-items,
.contact-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-items li,
.contact-checklist li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
}

.service-items li::before,
.contact-checklist li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.experience-group {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.experience-group h2 {
  margin-bottom: 24px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.experience-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.4fr) minmax(210px, 0.8fr);
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.experience-project {
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.experience-client {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.experience-year {
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
}

.role-line {
  margin-bottom: 46px;
  color: var(--gold);
  font-weight: 700;
}

.principal-grid h2 {
  margin-bottom: 12px;
}

.principal-grid h3 {
  margin-bottom: 18px;
}

.contact-hero .button {
  margin-top: 42px;
}

.contact-grid {
  align-items: start;
}

.contact-detail {
  padding: 34px;
  background: var(--charcoal);
  color: var(--white);
}

.contact-detail .footer-label {
  color: var(--gold-light);
}

.contact-email {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.error-page {
  min-height: 70vh;
}

/* Footer */

.site-footer {
  padding: 72px 0 30px;
  background: var(--charcoal);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.8fr;
  gap: 50px;
  padding-bottom: 58px;
}

.footer-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a {
  text-underline-offset: 4px;
}

.footer-brand {
  color: var(--white) !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-label {
  margin-bottom: 12px !important;
  color: var(--gold-light) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin-bottom: 0;
}


/* =========================================================
   HOMEPAGE WORK GALLERY
   ========================================================= */

   .work-gallery-section {
    padding-top: 56px;
    padding-bottom: 56px;
    background: var(--warm-white);
  }
  
  .work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  
  .work-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: var(--charcoal);
  }
  
  .work-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
  }
  
  .work-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
      transform 250ms ease,
      opacity 250ms ease;
  }
  
  .work-gallery-link:hover img {
    transform: scale(1.025);
    opacity: 0.92;
  }
  .work-lightbox {
    width: min(94vw, 1400px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: transparent;
  }
  
  .work-lightbox::backdrop {
    background: rgba(10, 12, 15, 0.9);
  }
  
  .work-lightbox-inner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
  }
  
  .work-lightbox-image {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    background: var(--charcoal);
  }
  
  .work-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(23, 27, 32, 0.85);
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }
  
  .work-lightbox-close:hover {
    background: var(--gold);
    color: var(--charcoal);
  }
  .work-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 64px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(23, 27, 32, 0.82);
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
  }
  
  .work-lightbox-prev {
    left: 22px;
  }
  
  .work-lightbox-next {
    right: 22px;
  }
  
  .work-lightbox-nav:hover,
  .work-lightbox-nav:focus-visible {
    background: var(--gold);
    color: var(--charcoal);
  }
  
  .work-lightbox-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    z-index: 2;
    margin: 0;
    padding: 6px 12px;
    transform: translateX(-50%);
    background: rgba(23, 27, 32, 0.78);
    color: var(--white);
    font-size: 14px;
  }

/* Responsive */
/* Narrow desktop and tablet */
@media (max-width: 980px) {
  :root {
    --h1-size: 38px;
    --h2-size: 30px;
    --h3-size: 21px;
    --lead-size: 17px;
  }

  .header-inner {
    min-height: 78px;
    gap: 22px;
  }

  .brand {
    flex: 0 0 58px;
    min-width: 58px;
  }

  .brand-mark {
    width: 58px;
    aspect-ratio: 1;
    background-image:
      url("../img/brand/fuh-monogram-dark.png");
    background-position: center;
    background-size: contain;
  }

  .site-nav {
    gap: clamp(14px, 2vw, 22px);
  }

  .site-nav a {
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    gap: 38px;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 54px 0 60px;
  }

  .hero-graphic {
    min-height: 310px;
  }

  .intro-grid,
  .section-heading-grid,
  .page-hero-grid,
  .principal-grid,
  .service-row,
  .experience-callout,
  .contact-band-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .service-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experience-row {
    grid-template-columns: 100px 1fr;
  }

  .experience-client {
    grid-column: 2;
  }

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

  .work-gallery-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compact layout */
@media (max-width: 760px) {
  :root {
    --h1-size: 34px;
    --h2-size: 28px;
    --h3-size: 20px;
    --lead-size: 17px;
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .brand {
    width: 220px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

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

  .hero-graphic {
    min-height: 300px;
    background-size: min(84%, 350px) auto;
  }

  .pillars-grid,
  .service-preview-grid {
    grid-template-columns: 1fr;
  }

  .pillar,
  .service-preview,
  .service-preview:nth-child(3n + 1) {
    min-height: auto;
    padding: 32px 0;
    border-right: 0;
  }
}

/* Mobile */
@media (max-width: 520px) {
  :root {
    --gutter: 18px;
    --h1-size: 30px;
    --h2-size: 26px;
    --h3-size: 19px;
    --lead-size: 16px;
  }

  .brand {
    width: 56px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    background-image: url("../img/brand/fuh-monogram-dark.png");
    background-position: center;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 0.64rem;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 44px 0 50px;
  }

  .hero-graphic {
    min-height: 270px;
    background-size: min(88%, 260px) auto;
  }

  .page-hero::after {
    right: -150px;
    width: 320px;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .experience-client {
    grid-column: auto;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-band::after {
    right: -150px;
    width: 320px;
    opacity: 0.08;
  }

  .work-gallery-heading {
    margin-bottom: 30px;
  }

  .work-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-gallery-item img {
    aspect-ratio: 4 / 3;
  }  

  .work-lightbox-nav {
    width: 42px;
    height: 54px;
    font-size: 34px;
  }

  .work-lightbox-prev {
    left: 8px;
  }

  .work-lightbox-next {
    right: 8px;
  }

  .work-lightbox-close {
    top: 10px;
    right: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Contact form */

.contact-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}


.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    color: var(--charcoal, #343a40);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background: #fff;
    color: #222;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #d6b028;
    box-shadow: 0 0 0 2px rgba(214, 176, 40, 0.16);
}

.form-field textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form .button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.contact-sidebar {
    border-left: 3px solid #d6b028;
    padding-left: 1.5rem;
}

.contact-note {
    margin-top: 2.5rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success,
.form-error {
    background: #ffffff;
    padding: 2rem;
    border-left: 3px solid #d6b028;
}

.form-success h2 {
    margin: 0.4rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #222;
}

.form-success p:last-child,
.form-error p {
    max-width: 34rem;
    color: #555;
}

.form-error {
    border-left-color: #9b3a32;
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.contact-form[hidden],
.form-success[hidden],
.form-error[hidden] {
    display: none !important;
}

@media (max-width: 780px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-sidebar {
        border-left: 0;
        border-top: 3px solid #d6b028;
        padding-left: 0;
        padding-top: 1.5rem;
    }
}