/* ============================================================
   HADLEY & CO. — editorial site
   Palette: hunter green / oxblood / brass / bone
   ============================================================ */

:root {
  --bone:        #F2EADB;
  --bone-soft:   #E8DEC9;
  --paper:       #F7F1E4;
  --ink:         #1A1714;
  --graphite:    #3A332D;

  --forest:      #1E3A2F;     /* primary brand */
  --forest-deep: #152820;
  --moss:        #4A6B54;

  --ox:          #7A2E3B;
  --ox-deep:     #5A1F2A;
  --terra:       #B85042;

  --brass:       #B8935A;
  --brass-light: #D4B07C;
  --gold-line:   #A88A5A;

  --line:        #C8BB9F;

  --serif:  "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Subtle paper-grain on cream sections */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  background: var(--forest);
  color: var(--bone);
  z-index: 50;
  border-bottom: 1px solid rgba(184, 147, 90, 0.25);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.nav-left, .nav-right {
  display: flex;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  color: var(--bone);
  opacity: 0.75;
  transition: all 0.2s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-left a:hover, .nav-right a:hover,
.nav-left a.active, .nav-right a.active {
  opacity: 1;
  color: var(--brass-light);
  border-bottom-color: var(--brass-light);
}
.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  color: var(--bone);
  letter-spacing: 0.5px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--forest-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* CSS-built artwork — always renders */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 40, 32, 0.6) 0%,
    rgba(21, 40, 32, 0.15) 50%,
    rgba(122, 46, 59, 0.25) 100%
  );
}
.hero-art-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--ox) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, var(--moss) 0%, transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
}

.hero-content {
  position: relative;
  padding: 80px 80px;
  max-width: 780px;
  z-index: 2;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-kicker::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--brass);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -2px;
  color: var(--bone);
  margin-bottom: 40px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-light);
}
.hero-lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: rgba(242, 234, 219, 0.85);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-cta-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ox);
  color: var(--bone);
}
.btn-primary:hover { background: var(--terra); }
.btn-ghost {
  border-color: var(--brass);
  color: var(--brass-light);
  background: transparent;
}
.btn-ghost:hover { background: var(--brass); color: var(--forest-deep); }

/* ============================================================
   SECTION SHELLS
   ============================================================ */
section { padding: 120px 48px; position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ox);
  font-weight: 600;
  margin-bottom: 28px;
}
.kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--ox);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 32px;
}
.section-title em { font-style: italic; color: var(--ox); }
.section-lede {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--graphite);
  max-width: 760px;
  margin-bottom: 72px;
  font-weight: 300;
}

/* ============================================================
   ETHOS — cream with drop-cap pull quote
   ============================================================ */
.ethos {
  background: var(--bone);
  padding: 160px 48px;
  text-align: center;
  position: relative;
}
.ethos .ornament {
  width: 80px;
  height: 1px;
  background: var(--ox);
  margin: 0 auto 40px;
  position: relative;
}
.ethos .ornament::before,
.ethos .ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--ox);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ethos .ornament::before { left: -16px; }
.ethos .ornament::after { right: -16px; }

.ethos p.pull {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  max-width: 960px;
  margin: 0 auto;
  letter-spacing: -0.5px;
}
.ethos p.pull em { font-style: italic; color: var(--ox); }
.ethos .dropcap {
  font-family: var(--serif);
  float: left;
  font-size: 92px;
  line-height: 0.85;
  padding: 4px 14px 0 0;
  color: var(--ox);
  font-weight: 400;
  font-style: italic;
}
.ethos .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--brass);
  margin-top: 48px;
  letter-spacing: 1.5px;
}

/* ============================================================
   SERVICES — dark hunter green section
   ============================================================ */
.services {
  background: var(--forest);
  color: var(--bone);
}
.services .section-title { color: var(--bone); }
.services .section-title em { color: var(--brass-light); }
.services .section-lede { color: rgba(242, 234, 219, 0.7); }
.services .kicker { color: var(--brass-light); }
.services .kicker::before { background: var(--brass); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(184, 147, 90, 0.2);
  border: 1px solid rgba(184, 147, 90, 0.2);
}
.service {
  background: var(--forest);
  padding: 56px 40px 48px;
  position: relative;
  transition: background 0.3s;
}
.service:hover { background: var(--forest-deep); }
.service-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 32px;
  opacity: 0.7;
}
.service h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.service p {
  color: rgba(242, 234, 219, 0.75);
  font-size: 14px;
  line-height: 1.75;
  max-width: 340px;
}
.service .meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 147, 90, 0.3);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 600;
}

/* ============================================================
   FEATURED WORK
   ============================================================ */
.featured { background: var(--paper); }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.featured-col { display: flex; flex-direction: column; gap: 48px; }
.featured-col.offset { margin-top: 80px; }

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--forest);
}
.project-card .frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.project-card.landscape .frame { aspect-ratio: 16/11; }
.project-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .frame img { transform: scale(1.05); }
.project-card .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(21, 40, 32, 0.55) 100%);
  pointer-events: none;
}
/* Fallback tint if image fails */
.project-card .frame.tint-1 { background: linear-gradient(135deg, #3A4A3E, #6B4A3E); }
.project-card .frame.tint-2 { background: linear-gradient(135deg, #5A3A4E, #8A6A4A); }
.project-card .frame.tint-3 { background: linear-gradient(135deg, #4A5E4A, #7A5C3E); }
.project-card .frame.tint-4 { background: linear-gradient(135deg, #6B2737, #A88A5A); }

.project-card .caption {
  padding: 28px 4px 12px;
}
.project-card .caption .place {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-card .caption .title {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

.featured-end { text-align: center; margin-top: 96px; }
.text-link {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ox);
  border-bottom: 1px solid var(--ox);
  padding-bottom: 6px;
  font-weight: 600;
  transition: all 0.2s;
}
.text-link:hover { color: var(--terra); border-bottom-color: var(--terra); }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-header {
  background: var(--forest);
  color: var(--bone);
  padding: 140px 48px 120px;
  text-align: center;
}
.portfolio-header .kicker { color: var(--brass-light); justify-content: center; display: inline-flex; }
.portfolio-header .kicker::before { background: var(--brass); }
.portfolio-header .section-title { color: var(--bone); margin: 0 auto 24px; }
.portfolio-header .section-title em { color: var(--brass-light); }
.portfolio-header .section-lede { color: rgba(242, 234, 219, 0.7); margin: 0 auto; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 12px;
  max-width: 1720px;
  margin: 0 auto;
  background: var(--ink);
}
.port-item {
  position: relative;
  overflow: hidden;
  background: var(--forest);
}
.port-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.port-item:hover img { transform: scale(1.06); }
.port-item .port-label {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  color: var(--bone);
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.port-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.port-item .place {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 600;
  margin-bottom: 6px;
}
.port-item .title {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
}

.port-item.a { grid-column: span 7; aspect-ratio: 16/10; }
.port-item.b { grid-column: span 5; aspect-ratio: 4/5; }
.port-item.c { grid-column: span 4; aspect-ratio: 4/5; }
.port-item.d { grid-column: span 4; aspect-ratio: 4/5; }
.port-item.e { grid-column: span 4; aspect-ratio: 4/5; }
.port-item.f { grid-column: span 5; aspect-ratio: 4/5; }
.port-item.g { grid-column: span 7; aspect-ratio: 16/10; }
.port-item.h { grid-column: span 6; aspect-ratio: 16/11; }
.port-item.i { grid-column: span 6; aspect-ratio: 16/11; }

/* Gradient fallbacks */
.port-item.tint-1 { background: linear-gradient(135deg, #1E3A2F, #4A6B54); }
.port-item.tint-2 { background: linear-gradient(135deg, #7A2E3B, #B85042); }
.port-item.tint-3 { background: linear-gradient(135deg, #3A332D, #B8935A); }
.port-item.tint-4 { background: linear-gradient(135deg, #4A6B54, #A88A5A); }
.port-item.tint-5 { background: linear-gradient(135deg, #5A1F2A, #3A332D); }
.port-item.tint-6 { background: linear-gradient(135deg, #1E3A2F, #7A2E3B); }
.port-item.tint-7 { background: linear-gradient(135deg, #B85042, #B8935A); }
.port-item.tint-8 { background: linear-gradient(135deg, #152820, #4A6B54); }
.port-item.tint-9 { background: linear-gradient(135deg, #7A2E3B, #3A332D); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero {
  background: var(--forest);
  color: var(--bone);
  padding: 120px 48px 100px;
  text-align: center;
}
.contact-hero .kicker { color: var(--brass-light); justify-content: center; display: inline-flex; }
.contact-hero .kicker::before { background: var(--brass); }
.contact-hero .section-title { color: var(--bone); margin: 0 auto 24px; max-width: 900px; }
.contact-hero .section-title em { color: var(--brass-light); }
.contact-hero .section-lede { color: rgba(242, 234, 219, 0.8); margin: 0 auto; max-width: 680px; }

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 48px 120px;
}
.contact-intro {
  padding-right: 32px;
}
.contact-intro h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  color: var(--ink);
}
.contact-intro h2 em { font-style: italic; color: var(--ox); }
.contact-intro p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--graphite);
  margin-bottom: 20px;
  font-weight: 300;
}
.contact-details {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.detail-row { margin-bottom: 26px; display: flex; gap: 20px; }
.detail-row .label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  width: 72px;
  flex-shrink: 0;
  padding-top: 6px;
}
.detail-row .value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

/* Form */
.form-card {
  background: var(--bone);
  padding: 64px 56px;
  position: relative;
  border: 1px solid var(--line);
}
.form-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--ox);
  border-left: 2px solid var(--ox);
}
.form-card::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--ox);
  border-right: 2px solid var(--ox);
}
.form-card h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.form-card h2 em { font-style: italic; color: var(--ox); }
.form-card .sub {
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 44px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: span 2; }
.field label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 10px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input::placeholder { color: rgba(58, 51, 45, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ox); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A2E3B' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
  color: var(--ink);
}
.btn-submit {
  grid-column: span 2;
  margin-top: 20px;
  padding: 20px 40px;
  background: var(--ox);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--terra); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  grid-column: span 2;
  margin-top: 16px;
  padding: 20px 24px;
  font-size: 14px;
  font-family: var(--serif);
  font-style: italic;
  display: none;
  line-height: 1.5;
}
.form-status.success {
  display: block;
  background: var(--forest);
  color: var(--bone);
  border-left: 3px solid var(--brass);
}
.form-status.error {
  display: block;
  background: #F5DAD5;
  color: var(--ox-deep);
  border-left: 3px solid var(--ox);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--forest-deep);
  color: var(--bone-soft);
  padding: 100px 48px 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.footer-ornament {
  width: 40px;
  height: 1px;
  background: var(--brass);
  margin: 16px 0 20px;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: rgba(242, 234, 219, 0.6);
  max-width: 320px;
  line-height: 1.6;
  font-weight: 300;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(242, 234, 219, 0.75);
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  max-width: 1400px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(242, 234, 219, 0.45);
  letter-spacing: 1.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 18px 20px; }
  .nav-left, .nav-right { justify-content: center; gap: 20px; font-size: 10px; }
  .brand { font-size: 26px; }
  .hero { min-height: auto; padding: 60px 0; flex-direction: column; }
  .hero-art { position: relative; width: 100%; height: 320px; }
  .hero-content { padding: 48px 28px; }
  section { padding: 72px 24px; }
  .ethos { padding: 96px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-col.offset { margin-top: 0; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); padding: 8px; gap: 8px; }
  .port-item.a, .port-item.b, .port-item.c, .port-item.d,
  .port-item.e, .port-item.f, .port-item.g, .port-item.h, .port-item.i {
    grid-column: span 2;
    aspect-ratio: 4/3;
  }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; padding: 72px 24px; }
  .contact-intro { padding-right: 0; }
  .form-card { padding: 40px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .btn-submit, .form-status { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
