:root{
  --bg:#ffffff;
  --fg:#0b0b0b;
  --muted:#555;
  --hair:#e7e7e7;
  --panel:#f6f6f6;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--fg);
  background:var(--bg);
  line-height:1.35;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
.wrap{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.topbar{
  border-bottom:1px solid var(--hair);
  font-size:13px;
  background:var(--bg);
}
.topbar .wrap{
  display:flex;
  justify-content:flex-end;
  gap:18px;
  padding:10px 0;
  color:var(--muted);
  flex-wrap:wrap;
}

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--hair);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.2px;
}
.logo{
  width:34px; height:34px;
  border:2px solid var(--fg);
  border-radius:9px;
  display:inline-block;
}
.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu-btn{
  border:1px solid var(--hair);
  background:var(--bg);
  padding:10px 12px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
}
.menu-btn:focus{ outline:2px solid var(--fg); outline-offset:2px; }
.pill{
  border:1px solid var(--fg);
  background:var(--fg);
  color:var(--bg);
  padding:10px 14px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
  font-weight:800;
  white-space:nowrap;
}
.pill.ghost{
  background:var(--bg);
  color:var(--fg);
  border-color:var(--hair);
  font-weight:700;
}
.mega{
  display:none;
  border-top:1px solid var(--hair);
  background:var(--bg);
}
.mega.open{ display:block; }
.mega .grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:26px;
  padding:22px 0 28px;
}
.mega h4{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.mega a{
  display:block;
  padding:8px 0;
  font-size:15px;
}
.featured{
  border:1px solid var(--hair);
  border-radius:var(--radius);
  padding:16px;
  background:linear-gradient(180deg, #fff, #f7f7f7);
  box-shadow: var(--shadow);
}
.featured p{ margin:8px 0 0; color:var(--muted); }

.hero{ padding:64px 0 42px; }
.hero .grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:32px;
  align-items:start;
}
.kicker{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 14px;
}
.h1{
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing:-.03em;
  line-height: .95;
  margin:0 0 16px;
}
.lede{
  font-size:18px;
  color:var(--muted);
  max-width:58ch;
  margin:0 0 22px;
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn{
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--hair);
  background:var(--bg);
  font-weight:800;
}
.btn.primary{
  background:var(--fg);
  color:var(--bg);
  border-color:var(--fg);
}

.card{
  border:1px solid var(--hair);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg);
  box-shadow: var(--shadow);
}
.section{
  padding:40px 0 70px;
  border-top:1px solid var(--hair);
}
.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.section-title h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.02em;
}
.section-title p{ margin:0; color:var(--muted); max-width:60ch; }

.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.thumb{
  height:140px;
  background:
    radial-gradient(120px 80px at 20% 30%, #bbb 0%, transparent 60%),
    linear-gradient(180deg, #111, #444);
  filter: none;
}
.card-body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.card-body h3{ margin:0; font-size:16px; }
.card-body p{ margin:0; color:var(--muted); font-size:14px; }
.card-body .link{ margin-top:8px; font-weight:900; font-size:14px; }

.search-card{
  border:1px solid var(--hair);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  background:var(--bg);
}
.search-card h3{
  margin:0 0 12px;
  font-size:16px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.field{ display:flex; gap:10px; margin-top:10px; }
input[type="text"], input[type="email"], textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--hair);
  font-size:15px;
  font-family:var(--font);
}
textarea{ min-height:140px; resize:vertical; }
input:focus, textarea:focus{ outline:2px solid var(--fg); outline-offset:2px; }
.submit{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--fg);
  background:var(--fg);
  color:var(--bg);
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.hint{ margin:10px 0 0; font-size:13px; color:var(--muted); }

.team-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
.profile-card{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap:14px;
  padding:14px;
}
.profile-card img{
  width:150px; height:150px;
  border-radius:16px;
  object-fit:cover;
  filter: none;
  border:1px solid var(--hair);
}
.profile-meta{ display:flex; flex-direction:column; gap:8px; }
.profile-meta .name{ font-weight:950; font-size:18px; }
.profile-meta .role{ color:var(--muted); font-weight:700; }
.profile-meta .org{ color:var(--muted); }
.profile-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }

.bio{
  color:var(--muted);
  font-size:15px;
  margin:0;
}

footer{
  border-top:1px solid var(--hair);
  padding:26px 0;
  color:var(--muted);
  font-size:13px;
}

@media (max-width: 980px){
  .hero .grid{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .mega .grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .grid-4{ grid-template-columns: 1fr; }
  .field{ flex-direction:column; }
  .submit{ width:100%; }
  .profile-card{ grid-template-columns: 1fr; }
  .profile-card img{ width:100%; height:auto; }
}

/* Rotating property imagery */
.hero-media{
  position:relative;
  border:1px solid var(--hair);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.08));
  pointer-events:none;
}
.hero-media img{
  width:100%;
  height:auto;
  display:block;
  filter: none;
}
.banner{
  padding:22px 0 0;
}
.banner .hero-media{
  border-radius: 22px;
}

/* Header logo image */
.brand-logo-img{
  height:54px;
  width:auto;
  display:block;
  filter: none;
}

/* Subtle watermark in hero images */
.hero-media::before{
  content:"";
  position:absolute;
  right:14px;
  bottom:14px;
  width:160px;
  height:52px;
  background: url("/assets/hdk_logo_transparent.png") no-repeat center / contain;
  opacity:.08;
  filter: none;
  pointer-events:none;
}
@media (max-width: 520px){
  .hero-media::before{ width:120px; height:40px; right:10px; bottom:10px; opacity:.12; }
}

/* Color rotating imagery (used on Services tabs/cards) */
.hero-media.color img{
  filter: none !important;
}
.hero-media.color::after{
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(0,0,0,.05));
}

/* Rotating top banner (color) */
.top-banner{
  border-bottom:1px solid var(--hair);
  background: var(--bg);
}
.top-banner .wrap{
  padding:14px 0 0;
}
.top-banner .hero-media{
  border-radius:22px;
}
.top-banner .hero-media img{
  filter:none !important;
  max-height:340px;
  object-fit:cover;
}
@media (max-width: 980px){
  .top-banner .hero-media img{ max-height:260px; }
}
@media (max-width: 520px){
  .top-banner .wrap{ padding:10px 0 0; }
  .top-banner .hero-media img{ max-height:210px; }
}