:root {
      --bg: #0a0a0a;
      --bg-secondary: #111111;
      --bg-tertiary: #1a1a1a;
      --surface: #1f1f1f;
      --surface-hover: #2a2a2a;
      --ink: #ffffff;
      --ink-secondary: #e5e5e5;
      --ink-soft: #a0a0a0;
      --ink-muted: #6b6b6b;
      --copper: #d4a574;
      --copper-light: #e8c49b;
      --copper-deep: #b8956a;
      --volt: #f4c969;
      --volt-light: #f7d98b;
      --line: #2a2a2a;
      --line-light: #3a3a3a;
      --success: #4ade80;
      --success-dark: #22c55e;
      --error: #f87171;
      --error-dark: #ef4444;
      --warning: #fbbf24;
      --warning-dark: #f59e0b;
      --gradient-copper: linear-gradient(135deg, var(--copper) 0%, var(--copper-deep) 100%);
      --gradient-dark: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
      --shadow-copper: 0 4px 14px rgba(212, 165, 116, 0.3);
      --shadow-glow: 0 0 20px rgba(212, 165, 116, 0.15);
      box-sizing: border-box;
      padding-top: env(safe-area-inset-top, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }

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

    html {
      scroll-behavior: smooth;
      scroll-padding-top: env(safe-area-inset-top, 0px);
    }

    body {
      background: var(--bg);
      color: var(--ink);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5, h6, .mark {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
    }

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

    img {
      max-width: 100%;
      height: auto;
    }

    .wrap {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
    }

    /* Header */
    header.site {
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      z-index: 1000;
      padding-top: env(safe-area-inset-top, 0px);
      box-shadow: var(--shadow-md);
    }

    .header-layout {
      display: grid;
      grid-template-columns: 144px minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: 28px;
      align-items: center;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .brand {
      display: contents;
    }

    .brand .logo-link, .brand img {
      grid-column: 1;
      grid-row: 1 / 3;
      display: block;
      width: 144px;
      height: 144px;
      object-fit: contain;
    }

    .brand > div {
      grid-column: 2;
      min-width: 0;
      align-self: end;
      padding-bottom: 12px;
    }

    .brand .name {
      font-size: clamp(1.1rem, 2vw, 1.5rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.25;
      color: var(--ink);
    }

    .brand .sub {
      font-size: 0.8rem;
      color: var(--ink-soft);
      margin-top: 5px;
      line-height: 1.5;
    }

    nav.tabs a { text-decoration: none; display: inline-flex; align-items: center; }
    nav.tabs {
      grid-column: 2;
      align-self: start;
      display: flex;
      gap: 4px;
      min-width: 0;
      overflow-x: auto;
      border-top: 1px solid var(--line);
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    nav.tabs::-webkit-scrollbar {
      display: none;
    }

    nav.tabs :is(button, a) {
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--ink-soft);
      background: none;
      border: none;
      padding: 16px 20px;
      cursor: pointer;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    nav.tabs :is(button, a)::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--copper);
      transform: scaleX(0);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.tabs :is(button, a):hover {
      color: var(--ink);
      background: var(--surface-hover);
    }

    nav.tabs :is(button, a):hover::after {
      transform: scaleX(1);
    }

    nav.tabs :is(button, a).active {
      color: var(--ink);
      font-weight: 600;
    }

    nav.tabs :is(button, a).active::after {
      transform: scaleX(1);
    }

    nav.tabs :is(button, a):focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
      outline: 2px solid var(--copper);
      outline-offset: 2px;
    }

    /* Main Content */
    main {
      padding: 80px 0 120px;
      min-height: calc(100vh - 300px);
    }

    section {
      display: none;
    }

    section.active {
      display: block;
      animation: fade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Hero Section */
    .hero {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 80px;
      align-items: center;
      margin-bottom: 80px;
    }

    .hero-content {
      position: relative;
    }

    .hero-content::before {
      content: '';
      position: absolute;
      top: -20px;
      left: -20px;
      right: -20px;
      bottom: -20px;
      background: var(--gradient-copper);
      opacity: 0.05;
      border-radius: 16px;
      z-index: -1;
    }

    .hero h1 {
      font-size: 3.5rem;
      line-height: 1.05;
      margin: 0 0 28px;
      font-weight: 700;
      max-width: 18ch;
      letter-spacing: -0.03em;
      background: linear-gradient(135deg, var(--ink) 0%, var(--ink-secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero p.lead {
      font-size: 1.2rem;
      color: var(--ink-soft);
      max-width: 52ch;
      margin: 0 0 36px;
      line-height: 1.75;
      font-weight: 400;
    }

    .trustline {
      font-size: 0.875rem;
      color: var(--ink-soft);
      margin-top: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      font-weight: 500;
    }

    .trustline::before {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--copper);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--copper);
    }

    .cta-group {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--gradient-copper);
      color: #0a0a0a;
      padding: 16px 32px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1rem;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: var(--shadow-copper);
      position: relative;
      overflow: hidden;
    }

    .cta::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s;
    }

    .cta:hover::before {
      left: 100%;
    }

    .cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    }

    .cta.ghost {
      background: transparent;
      border: 2px solid var(--line);
      color: var(--ink);
      box-shadow: none;
    }

    .cta.ghost:hover {
      border-color: var(--copper);
      background: var(--surface);
      transform: translateY(-2px);
    }

    .cta.emergency {
      background: linear-gradient(135deg, var(--volt) 0%, var(--warning) 100%);
      color: #0a0a0a;
      box-shadow: 0 4px 14px rgba(244, 201, 105, 0.3);
    }

    .cta.emergency:hover {
      box-shadow: 0 6px 20px rgba(244, 201, 105, 0.4);
    }

    /* Hero Visual */
    .hero-visual {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }

    .hero-visual img {
      display: block;
      width: 100%;
      height: clamp(320px, 42vw, 540px);
      object-fit: cover;
      object-position: center 58%;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 0.1; }
      50% { transform: scale(1.1); opacity: 0.15; }
    }

    /* How It Works Strip */
    .strip {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      border-top: 1px solid var(--line);
      margin-top: 80px;
    }

    .strip .item {
      flex: 1 1 240px;
      padding: 32px 28px;
      border-bottom: 1px solid var(--line);
      border-right: 1px solid var(--line);
      transition: background 0.3s ease;
    }

    .strip .item:hover {
      background: var(--surface);
    }

    .strip .item:last-child {
      border-right: none;
    }

    .node {
      width: 12px;
      height: 12px;
      background: var(--gradient-copper);
      display: inline-block;
      margin-bottom: 16px;
      border-radius: 3px;
      box-shadow: 0 0 12px var(--copper);
    }

    .strip .item h3 {
      font-size: 1.1rem;
      margin: 0 0 12px;
      font-weight: 600;
      color: var(--ink);
    }

    .strip .item p {
      margin: 0;
      font-size: 0.95rem;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    /* Section Headers */
    h2.head {
      font-size: 2.5rem;
      font-weight: 700;
      margin: 0 0 16px;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, var(--ink) 0%, var(--ink-secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    p.deck {
      color: var(--ink-soft);
      max-width: 68ch;
      margin: 0 0 48px;
      font-size: 1.1rem;
      line-height: 1.75;
      font-weight: 400;
    }

    /* About Section */
    .about-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 64px;
    }

    .about-grid p {
      margin-bottom: 24px;
      line-height: 1.75;
      color: var(--ink-soft);
    }

    .values {
      border-top: 1px solid var(--line);
    }

    .values .val {
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
      padding-left: 24px;
      border-left: 3px solid var(--copper);
      transition: all 0.3s ease;
    }

    .values .val:hover {
      border-left-color: var(--copper-light);
      padding-left: 28px;
      background: var(--surface);
    }

    .values .val h3 {
      margin: 0 0 8px;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--ink);
    }

    .values .val p {
      margin: 0;
      font-size: 0.95rem;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    .about-extra {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      margin-top: 64px;
      border-top: 1px solid var(--line);
      padding-top: 48px;
    }

    .about-extra h3 {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--copper);
      font-weight: 600;
      margin: 0 0 20px;
    }

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

    .about-extra li {
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--ink-soft);
      transition: all 0.3s ease;
    }

    .about-extra li:hover {
      color: var(--ink);
      padding-left: 8px;
    }

    .about-extra li::before {
      content: '→';
      color: var(--copper);
      font-size: 0.9rem;
      font-weight: 600;
    }

    /* Areas Section */
    .areas-wrap {
      display: grid;
      grid-template-columns: 1fr;
      gap: 56px;
      max-width: 550px;
    }

    .area-group h3 {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--copper);
      font-weight: 600;
      margin: 0 0 20px;
    }

    .area-group ul {
      list-style: none;
      margin: 0 0 36px;
      padding: 0;
      column-count: 1;
    }

    .area-group li {
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--ink-soft);
      transition: all 0.3s ease;
    }

    .area-group li:hover {
      color: var(--ink);
      padding-left: 8px;
    }

    .area-group li::before {
      content: '';
      display: block;
      flex: 0 0 22px;
      width: 22px;
      height: 28px;
      background-color: var(--copper);
      -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2028%22%3E%3Cpath%20d%3D%22M21%2010c0%207-9%2015-9%2015S3%2017%203%2010a9%209%200%201%201%2018%200Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22m13%204-6%208h4l-1%206%207-9h-4l1-5Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2028%22%3E%3Cpath%20d%3D%22M21%2010c0%207-9%2015-9%2015S3%2017%203%2010a9%209%200%201%201%2018%200Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22m13%204-6%208h4l-1%206%207-9h-4l1-5Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    }

    .postcode-note {
      font-size: 0.95rem;
      color: var(--ink-soft);
      border-left: 3px solid var(--copper);
      padding-left: 20px;
      background: var(--surface);
      padding: 20px;
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }

    .areas-container {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 48px;
      align-items: start;
    }

    .map-container {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      height: 400px;
    }

    #coverage-map {
      width: 100%;
      height: 100%;
    }

    .map-legend {
      display: flex;
      gap: 20px;
      padding: 16px;
      background: var(--bg-secondary);
      border-top: 1px solid var(--line);
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: var(--ink-soft);
    }

    .legend-color {
      width: 16px;
      height: 16px;
      border-radius: 3px;
    }

    .legend-color.covered {
      background: var(--copper);
    }

    .legend-color.base {
      background: var(--volt);
    }

    /* Review Form */
    .review-form {
      margin-top: 32px;
      padding: 32px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 12px;
    }

    .review-form h3 {
      font-size: 1.25rem;
      color: var(--ink);
      margin: 0 0 24px;
    }

    .review {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 24px;
      margin-bottom: 16px;
    }

    .rv-name {
      font-weight: 600;
      color: var(--ink);
    }

    .rv-stars {
      color: var(--copper);
      font-size: 1.1rem;
    }

    .review p {
      margin: 12px 0 0;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    /* Responsive for Areas Section */
    @media (max-width: 1024px) {
      .areas-container {
        grid-template-columns: 1fr;
      }

      .map-container {
        height: 300px;
      }
    }

    /* Services Section */
    .svc-list {
      border-top: 1px solid var(--line);
    }

    .svc {
      display: grid;
      grid-template-columns: 2fr 3fr;
      gap: 40px;
      padding: 32px 0;
      border-bottom: 1px solid var(--line);
      transition: all 0.3s ease;
    }

    .svc:hover {
      background: var(--surface);
      padding-left: 24px;
      padding-right: 24px;
      margin-left: -24px;
      margin-right: -24px;
      border-bottom-color: var(--line-light);
    }

    .svc .service-request {
      margin-top: 20px;
      padding: 11px 18px;
      min-height: 44px;
      gap: 10px;
      font-size: 0.85rem;
    }

    .svc h3 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--ink);
    }

    .svc p {
      margin: 0;
      font-size: 1rem;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    /* Portfolio Section */
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 24px;
      margin-bottom: 48px;
    }

    .portfolio-item {
      background: var(--surface);
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--line);
      transition: all 0.3s ease;
    }

    .portfolio-item:hover {
      border-color: var(--copper);
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }

    .portfolio-image {
      position: relative;
      width: 100%;
      height: 250px;
      overflow: hidden;
    }

    .portfolio-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .portfolio-item:hover .portfolio-image img {
      transform: scale(1.05);
    }

    .portfolio-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
      padding: 20px;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .portfolio-item:hover .portfolio-overlay {
      opacity: 1;
    }

    .portfolio-overlay h3 {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--ink);
      margin: 0 0 8px;
    }

    .portfolio-overlay p {
      font-size: 0.9rem;
      color: var(--ink-soft);
      margin: 0;
      line-height: 1.4;
    }

    .portfolio-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      background: var(--bg-secondary);
      border-top: 1px solid var(--line);
    }

    .portfolio-info .jobno {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      color: var(--copper);
      font-size: 0.85rem;
      letter-spacing: 0.05em;
    }

    .portfolio-info .loc {
      font-size: 0.85rem;
      color: var(--ink-soft);
      font-weight: 500;
    }

    .jobsheet {
      border: 1px solid var(--line);
      margin-bottom: 20px;
      background: var(--surface);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .jobsheet:hover {
      border-color: var(--copper);
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }

    .jobsheet .row {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      padding: 20px 28px;
      flex-wrap: wrap;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--line);
    }

    .jobsheet .jobno {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      color: var(--copper);
      font-size: 0.95rem;
      letter-spacing: 0.05em;
    }

    .jobsheet .loc {
      font-size: 0.9rem;
      color: var(--ink-soft);
      font-weight: 500;
    }

    .jobsheet p {
      margin: 0 28px 20px;
      font-size: 1rem;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    /* Reviews Section */
    .review {
      border: 1px solid var(--line);
      background: var(--surface);
      padding: 24px 28px;
      margin-bottom: 20px;
      border-radius: 12px;
      transition: all 0.3s ease;
    }

    .review:hover {
      border-color: var(--line-light);
      box-shadow: var(--shadow-md);
    }

    .review .row {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      align-items: baseline;
    }

    .review .rv-name {
      font-weight: 600;
      font-size: 1rem;
      color: var(--ink);
    }

    .review .rv-stars {
      color: var(--volt);
      font-size: 1.1rem;
      letter-spacing: 3px;
    }

    .review p {
      margin: 16px 0 0;
      font-size: 1rem;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    .no-reviews {
      font-size: 0.95rem;
      color: var(--ink-soft);
      font-style: italic;
    }

    .checkatrade-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-bottom: 28px; }
    .checkatrade-reviews .review { margin-bottom: 0; }
    .checkatrade-reviews h3 { margin: 0; }
    .checkatrade-reviews .review-source { font-size: 0.8rem; }
    .review-source a { color: var(--copper); }

    .review-form {
      margin-top: 40px;
      max-width: 560px;
    }

    .review-form select {
      width: 100%;
      padding: 14px 18px;
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .review-form select:focus {
      outline: none;
      border-color: var(--copper);
      box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    }

    /* Contact Section */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 64px;
    }

    .contact-info .line {
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
    }

    .contact-info .line span {
      display: block;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--ink-soft);
      margin-bottom: 8px;
      font-weight: 600;
    }

    .contact-info .line a {
      color: var(--ink);
      font-size: 1.1rem;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .contact-info .line a:hover {
      color: var(--copper);
    }

    .emergency {
      margin-top: 32px;
      border-left: 3px solid var(--volt);
      padding-left: 24px;
      font-size: 1rem;
      background: var(--surface);
      padding: 24px;
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }

    .emergency strong {
      color: var(--volt);
      font-weight: 600;
    }

    form.contact {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    form.contact label {
      font-size: 0.875rem;
      color: var(--ink-soft);
      margin-bottom: 8px;
      display: block;
      font-weight: 500;
    }

    form.contact input,
    form.contact textarea,
    form.contact select {
      width: 100%;
      padding: 14px 18px;
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      border-radius: 8px;
      transition: all 0.3s ease;
    }

    form.contact input:focus,
    form.contact textarea:focus,
    form.contact select:focus {
      outline: none;
      border-color: var(--copper);
      box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    }

    form.contact textarea {
      resize: vertical;
      min-height: 140px;
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--line);
      padding: 48px 0;
      font-size: 0.875rem;
      color: var(--ink-soft);
      background: var(--bg-secondary);
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 32px;
    }

    .footer-certifications {
      display: flex;
      gap: 24px;
      align-items: center;
      flex-wrap: wrap;
    }

    .cert-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 20px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .cert-badge:hover {
      border-color: var(--copper);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .cert-badge svg {
      width: 22px;
      height: 22px;
    }

    .cert-image {
      max-height: 60px;
      width: auto;
      border-radius: 8px;
      border: 1px solid var(--line);
      padding: 8px;
      background: var(--surface);
      transition: all 0.3s ease;
    }

    .cert-image:hover {
      border-color: var(--copper);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .footer-links {
      display: flex;
      gap: 32px;
    }

    .footer-links a {
      transition: color 0.3s ease;
      font-weight: 500;
    }

    .footer-links a:hover {
      color: var(--copper);
    }

    /* Status Messages */
    .status-message {
      padding: 16px 20px;
      border-radius: 8px;
      font-size: 0.95rem;
      margin-top: 16px;
      display: none;
      font-weight: 500;
    }

    .status-message.success {
      display: block;
      background: rgba(74, 222, 128, 0.1);
      color: var(--success);
      border: 1px solid var(--success);
    }

    .status-message.error {
      display: block;
      background: rgba(248, 113, 113, 0.1);
      color: var(--error);
      border: 1px solid var(--error);
    }

    .status-message.warning {
      display: block;
      background: rgba(251, 191, 36, 0.1);
      color: var(--warning);
      border: 1px solid var(--warning);
    }

    /* Rate Limit Warning */
    .rate-limit-warning {
      display: none;
      background: rgba(251, 191, 36, 0.1);
      color: var(--warning);
      border: 1px solid var(--warning);
      padding: 16px 20px;
      border-radius: 8px;
      font-size: 0.95rem;
      margin-top: 16px;
      font-weight: 500;
    }

    /* Django Messages */
    .django-messages {
      margin-bottom: 24px;
    }

    .django-messages .message {
      padding: 16px 20px;
      border-radius: 8px;
      margin-bottom: 12px;
      font-weight: 500;
    }

    .django-messages .message.success {
      background: rgba(74, 222, 128, 0.1);
      color: var(--success);
      border: 1px solid var(--success);
    }

    .django-messages .message.error {
      background: rgba(248, 113, 113, 0.1);
      color: var(--error);
      border: 1px solid var(--error);
    }

    .django-messages .message.warning {
      background: rgba(251, 191, 36, 0.1);
      color: var(--warning);
      border: 1px solid var(--warning);
    }

    .django-messages .message.info {
      background: rgba(212, 165, 116, 0.1);
      color: var(--copper);
      border: 1px solid var(--copper);
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .hero {
        grid-template-columns: 1fr;
        gap: 48px;
      }

      .hero h1 {
        font-size: 2.75rem;
      }

      .about-grid,
      .areas-wrap,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .svc {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .about-extra {
        grid-template-columns: 1fr;
      }

      .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      }

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

    @media (max-width: 768px) {
      .wrap {
        padding: 0 24px;
      }

      .hero h1 {
        font-size: 2.25rem;
      }



      .brand .name {
        font-size: 1.15rem;
      }

      .strip .item {
        flex: 1 1 100%;
        border-right: none;
      }

      nav.tabs :is(button, a) {
        padding: 14px 16px;
        font-size: 0.85rem;
      }

      .cta-group {
        flex-direction: column;
      }

      .cta {
        width: 100%;
      }

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

      .portfolio-image {
        height: 200px;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 1.75rem;
      }

      .hero p.lead {
        font-size: 1rem;
      }

      .footer-certifications {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    @media (max-width: 768px) {
      .header-layout {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 8px;
        padding: 10px 20px 0;
      }

      .brand .logo-link, .brand img {
        grid-row: 1;
        width: 96px;
        height: 96px;
      }

      .brand > div {
        align-self: center;
        padding-bottom: 0;
      }

      .brand .name {
        font-size: 1rem;
      }

      .brand .sub {
        font-size: 0.72rem;
      }

      nav.tabs {
        grid-column: 1 / -1;
        width: 100%;
      }

      nav.tabs :is(button, a) {
        flex: 0 0 auto;
        padding: 12px 14px;
        font-size: 0.8rem;
      }
    }
